diff --git a/CHANGELOG.md b/CHANGELOG.md index 61c3301..f78c8e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,23 @@ +## [1.9.0](https://github.com/RomRider/apexcharts-card/compare/v1.8.2...v1.9.0) (2021-05-24) + + +### Features + +* make datagenerator async ([#157](https://github.com/RomRider/apexcharts-card/issues/157)) ([b9049fc](https://github.com/RomRider/apexcharts-card/commit/b9049fcd70ba633575127a86de6982d6f46d8831)) +* Native multi y-axis support with auto-scale ([#160](https://github.com/RomRider/apexcharts-card/issues/160)) ([e08aa14](https://github.com/RomRider/apexcharts-card/commit/e08aa14416fd1724fc379a7b0d991e6ed53cdc03)), closes [#158](https://github.com/RomRider/apexcharts-card/issues/158) +* soft bounds and extended bounds for yaxis min/max ([#161](https://github.com/RomRider/apexcharts-card/issues/161)) ([c57278b](https://github.com/RomRider/apexcharts-card/commit/c57278b59becef474264d2e0bf76a18a312a377f)) +* **apex_config:** Support for functions in `apex_config` ([cebc03b](https://github.com/RomRider/apexcharts-card/commit/cebc03b53a0bbf3131076422dd11660d440209dd)), closes [#81](https://github.com/RomRider/apexcharts-card/issues/81) + + +### Bug Fixes + +* always get all state changes, not only significant ones ([3b2f9c8](https://github.com/RomRider/apexcharts-card/commit/3b2f9c8670d55324019901556d1c50775807f505)) +* graph might be wrong when using `attributes` if value was 0 ([e200323](https://github.com/RomRider/apexcharts-card/commit/e2003234f0b5a620c60a4a3e197c3b9577fd51ba)) +* Support for custom views config parameters (`view_layout`) ([76a8023](https://github.com/RomRider/apexcharts-card/commit/76a8023a12fbdf920309ed1751e1e8d488e90ca1)) +* yaxis would always start at 0 ([50ef9e4](https://github.com/RomRider/apexcharts-card/commit/50ef9e41d563d981b408382615c0939b7f330469)), closes [#158](https://github.com/RomRider/apexcharts-card/issues/158) +* **group_by:** `group_by` reporting erronerous values for the first bucket of data ([8303b84](https://github.com/RomRider/apexcharts-card/commit/8303b84a935ed3f1a7c72642777052c487003e0f)), closes [#110](https://github.com/RomRider/apexcharts-card/issues/110) +* **group_by:** When group_by was used with lines, the end of the chart was showing an empty slot (display bug only) ([0163f9e](https://github.com/RomRider/apexcharts-card/commit/0163f9ebbf511c809573c4f567a4e67750a99e38)) + ## [1.9.0-dev.4](https://github.com/RomRider/apexcharts-card/compare/v1.9.0-dev.3...v1.9.0-dev.4) (2021-05-24) diff --git a/README.md b/README.md index 41ced7a..aceabef 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,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.8.2/apexcharts-card.js +$ wget https://github.com/RomRider/apexcharts-card/releases/download/v1.9.0/apexcharts-card.js ``` 3. Add the resource reference as decribed below. @@ -95,7 +95,7 @@ If you configure Lovelace via YAML, add a reference to `apexcharts-card.js` insi ```yaml resources: - - url: /local/apexcharts-card.js?v=1.8.2 + - url: /local/apexcharts-card.js?v=1.9.0 type: module ``` @@ -143,7 +143,7 @@ The card stricly validates all the options available (but not for the `apex_conf | `header` | object | | v1.0.0 | See [header](#header-options) | | `now` | object | | v1.5.0 | See [now](#now-options) | | `y_axis_precision` | number | `1` | v1.2.0 | The float precision used to display numbers on the Y axis. Only works if `yaxis` is undefined. | -| `yaxis` | array | | NEXT_VERSION | See [yaxis](#yaxis-options-multi-y-axis) | +| `yaxis` | array | | v1.9.0 | See [yaxis](#yaxis-options-multi-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) | | `experimental` | object | | v1.6.0 | See [experimental](#experimental-features) | | `locale` | string | | v1.7.0 | Default is to inherit from Home-Assistant's user configuration. This overrides it and forces the locale. Eg: `en`, or `fr`. Reverts to `en` if locale is unknown. | @@ -175,7 +175,7 @@ The card stricly validates all the options available (but not for the `apex_conf | `min` | number | `0` | v1.4.0 | Only used when `chart_type = radialBar`, see [chart_type](#chart_type-options). Used to convert the value into a percentage. Minimum value of the sensor | | `max` | number | `100` | v1.4.0 | Only used when `chart_type = radialBar`, see [chart_type](#chart_type-options). Used to convert the value into a percentage. Maximum value of the sensor | | `color_threshold` | object | | v1.6.0 | See [experimental](#experimental-features) | -| `yaxis_id` | string | | NEXT_VERSION | The identification name of the y-axis which this serie should be associated to. See [yaxis](#yaxis-options-multi-y-axis) | +| `yaxis_id` | string | | v1.9.0 | The identification name of the y-axis which this serie should be associated to. See [yaxis](#yaxis-options-multi-y-axis) | | `show` | object | | v1.3.0 | See [serie's show options](#series-show-options) | ### series' `show` Options @@ -433,12 +433,12 @@ You can have as many y-axis as there are series defined in your configuration or | Name | Type | Default | Since | Description | | ---- | :--: | :-----: | :---: | ----------- | -| :white_check_mark: `id` | string | | NEXT_VERSION | The identification name of the yaxis used to map it to a serie. Needs to be unique. | -| `show` | boolean | `true` | NEXT_VERSION | Whether to show or not the axis on the chart | -| `opposite` | boolean | `false` | NEXT_VERSION | If `true`, the axis will be shown on the right side of the chart | -| `min` | `auto`, number or string | `auto` | NEXT_VERSION | If undefined or `auto`, the `min` of the yaxis will be automatically calculated based on the min value of all the series associated to this axis. See [below](#minmax-format) for other formats. | -| `max` | `auto`, number or string | `auto` | NEXT_VERSION | If undefined or `auto`, the `min` of the yaxis will be automatically calculated based on the max value of all the series associated to this axis. See [below](#minmax-format) for other formats. | -| `apex_config` | object | | NEXT_VERSION | Any configuration from https://apexcharts.com/docs/options/yaxis/, except `min`, `max`, `show` and `opposite` | +| :white_check_mark: `id` | string | | v1.9.0 | The identification name of the yaxis used to map it to a serie. Needs to be unique. | +| `show` | boolean | `true` | v1.9.0 | Whether to show or not the axis on the chart | +| `opposite` | boolean | `false` | v1.9.0 | If `true`, the axis will be shown on the right side of the chart | +| `min` | `auto`, number or string | `auto` | v1.9.0 | If undefined or `auto`, the `min` of the yaxis will be automatically calculated based on the min value of all the series associated to this axis. See [below](#minmax-format) for other formats. | +| `max` | `auto`, number or string | `auto` | v1.9.0 | If undefined or `auto`, the `min` of the yaxis will be automatically calculated based on the max value of all the series associated to this axis. See [below](#minmax-format) for other formats. | +| `apex_config` | object | | v1.9.0 | Any configuration from https://apexcharts.com/docs/options/yaxis/, except `min`, `max`, `show` and `opposite` | #### Min/Max Format diff --git a/package-lock.json b/package-lock.json index 5c8dda4..f1a42f7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "apexcharts-card", - "version": "1.9.0-dev.4", + "version": "1.9.0", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 300811f..f5f0fb7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "apexcharts-card", - "version": "1.9.0-dev.4", + "version": "1.9.0", "description": "A Home Assistant Lovelace card using ApexCharts to render graphs", "main": "src/apexcharts-card.ts", "scripts": {