diff --git a/CHANGELOG.md b/CHANGELOG.md index e58f0c1..5f6ed49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,26 @@ +## [1.2.0](https://github.com/RomRider/apexcharts-card/compare/v1.1.0...v1.2.0) (2021-01-28) + + +### Features + +* Define your own float precision for legend, tooltip and Y axis ([7b0f30f](https://github.com/RomRider/apexcharts-card/commit/7b0f30f7456ecf6ac7d2dab6b80e8533029bc316)) +* **cache:** Invalidate cache on every new card version ([#12](https://github.com/RomRider/apexcharts-card/issues/12)) ([b1799d9](https://github.com/RomRider/apexcharts-card/commit/b1799d96af2f7d1e5efb6fed6c0a2d8686164386)) +* **data_generator:** Build your own data based on the last state and attributes of your entity ([#14](https://github.com/RomRider/apexcharts-card/issues/14)) ([18284b5](https://github.com/RomRider/apexcharts-card/commit/18284b5d6d6b8ec4598f02926ed6b3cae6fcd2f4)), closes [#6](https://github.com/RomRider/apexcharts-card/issues/6) +* **invert:** Negates/Inverts the data for a serie ([#13](https://github.com/RomRider/apexcharts-card/issues/13)) ([ab793c5](https://github.com/RomRider/apexcharts-card/commit/ab793c5073902f7a88b6aa18c133d43a0afdcf4e)) +* **span:** Add `end` as an option to end the graph at the end of the day, minute, etc... ([#11](https://github.com/RomRider/apexcharts-card/issues/11)) ([1d0aca8](https://github.com/RomRider/apexcharts-card/commit/1d0aca8c11eb602385c6a855ddc52b2f2c2b8367)) +* **span:** Display the graph from the start of the hour, day, month,… with an offset or not ([#10](https://github.com/RomRider/apexcharts-card/issues/10)) ([bb6e88c](https://github.com/RomRider/apexcharts-card/commit/bb6e88c6766262b96d7b66414db26d6f9f83b1c8)) + + +### Bug Fixes + +* **xasis:** Better handling of graph end time if everything is `column` and `group_by` is enabled ([b5b85a6](https://github.com/RomRider/apexcharts-card/commit/b5b85a63140ddef6810abbdb3060b8f9f2f26980)) +* **yaxis:** apex_config.yaxis was not taken into account properly ([ce04230](https://github.com/RomRider/apexcharts-card/commit/ce04230acb84dc10cdfe754dde0e642e8911c577)) +* Sometimes the graph was empty when changing tabs ([9232044](https://github.com/RomRider/apexcharts-card/commit/923204499466045f5245b90e5c189309ba403533)) +* **legend:** undefined was displayed for a hidden serie ([352c016](https://github.com/RomRider/apexcharts-card/commit/352c016d2606dd9c75ec1b2bc3c1a265b1f24fef)) +* Get rid of the initial load delay ([69f151b](https://github.com/RomRider/apexcharts-card/commit/69f151b7e603ba47574dc7af33c3030f38e9b59c)) +* **colorize_states:** Parameter was not applied ([28bb2e2](https://github.com/RomRider/apexcharts-card/commit/28bb2e268c6b3eacde6e3f397bc57724fc13c174)) +* **datalabels:** Truncate floats to 1 digit after the decimal point ([f5f744f](https://github.com/RomRider/apexcharts-card/commit/f5f744f88e8c7a7b67971b884ef6f805070da21b)) + ## [1.2.0-dev.6](https://github.com/RomRider/apexcharts-card/compare/v1.2.0-dev.5...v1.2.0-dev.6) (2021-01-28) diff --git a/README.md b/README.md index d71fbd1..ef1eace 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ This card is available in [HACS](https://hacs.xyz/) (Home Assistant Community St 2. Grab `apexcharts-card.js`: ``` -$ wget https://github.com/RomRider/apexcharts-card/releases/download/v1.1.0/apexcharts-card.js +$ wget https://github.com/RomRider/apexcharts-card/releases/download/v1.2.0/apexcharts-card.js ``` 3. Add the resource reference as decribed below. @@ -67,7 +67,7 @@ If you configure Lovelace via YAML, add a reference to `apexcharts-card.js` insi ```yaml resources: - - url: /local/apexcharts-card.js?v=1.1.0 + - url: /local/apexcharts-card.js?v=1.2.0 type: module ``` @@ -95,13 +95,13 @@ The card stricly validates all the options available (but not for the `apex_conf | :white_check_mark: `series` | array | | v1.0.0 | See [series](#series-options) | | `update_interval` | string | | v1.1.0 | By default the card updates on every state change. Setting this overrides the behaviour. Valid values are any time string, eg: `1h`, `12min`, `1d`, `1h25`, `10sec`, ... | | `graph_span` | string | `24h` | v1.1.0 | The span of the graph as a time interval. Valid values are any time string, eg: `1h`, `12min`, `1d`, `1h25`, `10sec`, ... | -| `span` | object | | NEXT_VERSION | See [span](#span-options) | +| `span` | object | | v1.2.0 | See [span](#span-options) | | `show` | object | | v1.0.0 | See [show](#show-options) | | `cache` | boolean | `true` | v1.0.0 | Use in-browser data caching to reduce the load on Home Assistant's server | | `stacked` | boolean | `false` | v1.0.0 | Enable if you want the data to be stacked on the graph | | `layout` | string | | v1.0.0 | See [layouts](#layouts) | | `header` | string | | v1.0.0 | See [header](#header-options) | -| `y_axis_precision` | numnber | `1` | NEXT_VERSION | The float precision used to display numbers on the Y axis | +| `y_axis_precision` | numnber | `1` | v1.2.0 | The float precision used to display numbers on the Y axis | | `apex_config`| object | | v1.0.0 | Apexcharts API 1:1 mapping. You call see all the options [here](https://apexcharts.com/docs/installation/) --> `Options (Reference)` in the Menu. See [Apex Charts](#apex-charts-options-example) | @@ -117,10 +117,10 @@ The card stricly validates all the options available (but not for the `apex_conf | `curve` | string | `smooth` | v1.0.0 | `smooth` (nice curve), `straight` (direct line between points) or `stepline` (flat line until next point then straight up or down) | | `extend_to_end` | boolean | `true` | v1.0.0 | If the last data is older than the end time displayed on the graph, setting to true will extend the value until the end of the timeline. Only works for `line` and `area` types. | | `unit` | string | | v1.0.0 | Override the unit of the sensor | -| `float_precision` | number | `1` | NEXT_VERSION | The precision used to display data in the legend and the tooltip. It doesn't impact how the data is displayed on the graph | +| `float_precision` | number | `1` | v1.2.0 | The precision used to display data in the legend and the tooltip. It doesn't impact how the data is displayed on the graph | | `group_by` | object | | v1.0.0 | See [group_by](#group_by-options) | -| `invert` | boolean | `false` | NEXT_VERSION | Negates the data (`1` -> `-1`). Usefull to display opposites values like network in (standard)/out (inverted) | -| `data_generator` | string | | NEXT_VERSION | See [data_generator](#data_generator-option) | +| `invert` | boolean | `false` | v1.2.0 | Negates the data (`1` -> `-1`). Usefull to display opposites values like network in (standard)/out (inverted) | +| `data_generator` | string | | v1.2.0 | See [data_generator](#data_generator-option) | ### `show` Options @@ -164,9 +164,9 @@ The card stricly validates all the options available (but not for the `apex_conf | Name | Since | Description | | ---- | :---: | ----------- | -| `start` | NEXT_VERSION | Display the graph from the begining of the `minute`, `day`, `hour`, `week`, `month`, `year` | -| `end` | NEXT_VERSION | Display the graph from the end of the `minute`, `day`, `hour`, `week`, `month`, `year` | -| `offset` | NEXT_VERSION | Offset the graph by an amount of time. To offset in the past, start with `-`. Eg. of valid values: `-1day`, `-12h`, `12h`, `30min`, ... | +| `start` | v1.2.0 | Display the graph from the begining of the `minute`, `day`, `hour`, `week`, `month`, `year` | +| `end` | v1.2.0 | Display the graph from the end of the `minute`, `day`, `hour`, `week`, `month`, `year` | +| `offset` | v1.2.0 | Offset the graph by an amount of time. To offset in the past, start with `-`. Eg. of valid values: `-1day`, `-12h`, `12h`, `30min`, ... | Span enables you to: * Offset the graph by an amount of time diff --git a/package-lock.json b/package-lock.json index 8a9dafe..9a3c631 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "apexcharts-card", - "version": "1.2.0-dev.6", + "version": "1.2.0", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index ba483e7..238f447 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "apexcharts-card", - "version": "1.2.0-dev.6", + "version": "1.2.0", "description": "A Home Assistant Lovelace card using ApexCharts to render graphs", "main": "src/apexcharts-card.ts", "scripts": {