Skip to content

Commit 4d72937

Browse files
chore(release): 1.10.0 [skip ci]
## [1.10.0](v1.9.0...v1.10.0) (2021-10-24) ### Features * uses the time format defined in Home Assistant user profile ([78df800](78df800)), closes [#213](#213) * **yaxis:** Align the extremas to the closest `align_to` value. ([a46c812](a46c812)), closes [#170](#170) * pie/donut now shows the value of the serie instead of the percentage. Old behavior with `datalabels: percent` ([7591aba](7591aba)) * **actions:** `header_actions` support for actions in header ([#171](#171)) ([bd6a497](bd6a497)), closes [#61](#61) * display the chart's last update time using `last_updated` ([2dd84ff](2dd84ff)) * **yaxis:** Set the number of decimals shown on the yaxis. Deprecate `y_axis_precision`. ([33fc474](33fc474)), closes [#164](#164) * update from lit-html/lit-element to lit ([5a7d944](5a7d944)) * **yaxis:** `id` and `yaxis_id` no longer needed with only 1 yaxis defined ([e5e8904](e5e8904)) ### Bug Fixes * color_threshold would sometimes render weirdly ([d7063a5](d7063a5)), closes [#177](#177) * extremas would not display with offset applied on series ([4d7d77a](4d7d77a)), closes [#177](#177) * Floats were not truncated properly for radialBar ([0c789ff](0c789ff)), closes [#174](#174) * history data could be modified in some rare cases ([d38fd6e](d38fd6e)) * Ignore recorder when not required ([c28a7a6](c28a7a6)), closes [#169](#169) * the hass object could sometimes be null ([ff27baf](ff27baf)), closes [#191](#191) * When recorder was skipped, attributes were ignored ([15e5372](15e5372)) * **yaxis:** auto scale was not taking the serie's offset into account ([f82f7e0](f82f7e0)), closes [#172](#172) * **yaxis:** Fixed + unfixed bounds on the same yaxis is now working ([f7e4668](f7e4668)) ### Documentation * `align_to` description update ([4471469](4471469)) * Missing doc for `last_updated` ([93ae54a](93ae54a))
1 parent 5fa3cda commit 4d72937

File tree

4 files changed

+55
-22
lines changed

4 files changed

+55
-22
lines changed

CHANGELOG.md

+33
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
## [1.10.0](https://github.com/RomRider/apexcharts-card/compare/v1.9.0...v1.10.0) (2021-10-24)
2+
3+
4+
### Features
5+
6+
* uses the time format defined in Home Assistant user profile ([78df800](https://github.com/RomRider/apexcharts-card/commit/78df800f32004c180fb3bebfb4d35ac82858f3c2)), closes [#213](https://github.com/RomRider/apexcharts-card/issues/213)
7+
* **yaxis:** Align the extremas to the closest `align_to` value. ([a46c812](https://github.com/RomRider/apexcharts-card/commit/a46c8127d8252fcadcb212ee7d2ee28d36c8d03a)), closes [#170](https://github.com/RomRider/apexcharts-card/issues/170)
8+
* pie/donut now shows the value of the serie instead of the percentage. Old behavior with `datalabels: percent` ([7591aba](https://github.com/RomRider/apexcharts-card/commit/7591aba03e0c8d001b4883456b21fc948ea5cfe4))
9+
* **actions:** `header_actions` support for actions in header ([#171](https://github.com/RomRider/apexcharts-card/issues/171)) ([bd6a497](https://github.com/RomRider/apexcharts-card/commit/bd6a49791ec583b894f72ce42ec33b223d63e38e)), closes [#61](https://github.com/RomRider/apexcharts-card/issues/61)
10+
* display the chart's last update time using `last_updated` ([2dd84ff](https://github.com/RomRider/apexcharts-card/commit/2dd84ffdac637c753ae96f30029190cc99747b8d))
11+
* **yaxis:** Set the number of decimals shown on the yaxis. Deprecate `y_axis_precision`. ([33fc474](https://github.com/RomRider/apexcharts-card/commit/33fc4746c185112d3838759ca19d1c274f4fa34a)), closes [#164](https://github.com/RomRider/apexcharts-card/issues/164)
12+
* update from lit-html/lit-element to lit ([5a7d944](https://github.com/RomRider/apexcharts-card/commit/5a7d944b6fccc76f046fe940e21af4bdec09d28b))
13+
* **yaxis:** `id` and `yaxis_id` no longer needed with only 1 yaxis defined ([e5e8904](https://github.com/RomRider/apexcharts-card/commit/e5e89040620ca9df43dd38d5e267ce2b70386bc2))
14+
15+
16+
### Bug Fixes
17+
18+
* color_threshold would sometimes render weirdly ([d7063a5](https://github.com/RomRider/apexcharts-card/commit/d7063a5462bc6e949c477a423b0a57c80dd172ac)), closes [#177](https://github.com/RomRider/apexcharts-card/issues/177)
19+
* extremas would not display with offset applied on series ([4d7d77a](https://github.com/RomRider/apexcharts-card/commit/4d7d77a92919234b81e8d830e3f9e3d7dcaf7caa)), closes [#177](https://github.com/RomRider/apexcharts-card/issues/177)
20+
* Floats were not truncated properly for radialBar ([0c789ff](https://github.com/RomRider/apexcharts-card/commit/0c789ffc27be47b459bf22875e5a0b5243249197)), closes [#174](https://github.com/RomRider/apexcharts-card/issues/174)
21+
* history data could be modified in some rare cases ([d38fd6e](https://github.com/RomRider/apexcharts-card/commit/d38fd6e0c3531dcd225e856ca90c57026c9049ab))
22+
* Ignore recorder when not required ([c28a7a6](https://github.com/RomRider/apexcharts-card/commit/c28a7a682b9bb0943fd82a24f525c87801fbe4f5)), closes [#169](https://github.com/RomRider/apexcharts-card/issues/169)
23+
* the hass object could sometimes be null ([ff27baf](https://github.com/RomRider/apexcharts-card/commit/ff27baff63845dbdaa0cbd90bd71252fa5cb27e1)), closes [#191](https://github.com/RomRider/apexcharts-card/issues/191)
24+
* When recorder was skipped, attributes were ignored ([15e5372](https://github.com/RomRider/apexcharts-card/commit/15e537213c9ab9b16ed9d0e3734d80def769fbde))
25+
* **yaxis:** auto scale was not taking the serie's offset into account ([f82f7e0](https://github.com/RomRider/apexcharts-card/commit/f82f7e0c1c74311fa3cc1b9d333d7a050b0304ec)), closes [#172](https://github.com/RomRider/apexcharts-card/issues/172)
26+
* **yaxis:** Fixed + unfixed bounds on the same yaxis is now working ([f7e4668](https://github.com/RomRider/apexcharts-card/commit/f7e46688fc3b891981854d1632c513fa9dac4773))
27+
28+
29+
### Documentation
30+
31+
* `align_to` description update ([4471469](https://github.com/RomRider/apexcharts-card/commit/447146951dd7e1a758ca4a0f7b5d85c13970d4c0))
32+
* Missing doc for `last_updated` ([93ae54a](https://github.com/RomRider/apexcharts-card/commit/93ae54abb60cc8c0e9e1011f97d8978de7f0b7bd))
33+
134
## [1.10.0-dev.7](https://github.com/RomRider/apexcharts-card/compare/v1.10.0-dev.6...v1.10.0-dev.7) (2021-10-24)
235

336

README.md

+20-20
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ This card is available in [HACS](https://hacs.xyz/) (Home Assistant Community St
8787
2. Grab `apexcharts-card.js`:
8888

8989
```
90-
$ wget https://github.com/RomRider/apexcharts-card/releases/download/v1.9.0/apexcharts-card.js
90+
$ wget https://github.com/RomRider/apexcharts-card/releases/download/v1.10.0/apexcharts-card.js
9191
```
9292

9393
3. Add the resource reference as decribed below.
@@ -98,7 +98,7 @@ If you configure Lovelace via YAML, add a reference to `apexcharts-card.js` insi
9898

9999
```yaml
100100
resources:
101-
- url: /local/apexcharts-card.js?v=1.9.0
101+
- url: /local/apexcharts-card.js?v=1.10.0
102102
type: module
103103
```
104104
@@ -145,7 +145,7 @@ The card stricly validates all the options available (but not for the `apex_conf
145145
| `layout` | string | | v1.0.0 | See [layouts](#layouts) |
146146
| `header` | object | | v1.0.0 | See [header](#header-options) |
147147
| `now` | object | | v1.5.0 | See [now](#now-options) |
148-
| ~~`y_axis_precision`~~ | ~~number~~ | ~~`1`~~ | ~~v1.2.0~~ | **DEPRECATED since NEXT_VERSION** ~~The float precision used to display numbers on the Y axis. Only works if `yaxis` is undefined.~~ |
148+
| ~~`y_axis_precision`~~ | ~~number~~ | ~~`1`~~ | ~~v1.2.0~~ | **DEPRECATED since v1.10.0** ~~The float precision used to display numbers on the Y axis. Only works if `yaxis` is undefined.~~ |
149149
| `yaxis` | array | | v1.9.0 | See [yaxis](#yaxis-options-multi-y-axis) |
150150
| `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) |
151151
| `experimental` | object | | v1.6.0 | See [experimental](#experimental-features) |
@@ -180,7 +180,7 @@ The card stricly validates all the options available (but not for the `apex_conf
180180
| `color_threshold` | object | | v1.6.0 | See [experimental](#experimental-features) |
181181
| `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) |
182182
| `show` | object | | v1.3.0 | See [serie's show options](#series-show-options) |
183-
| `header_actions` | object | | NEXT_VERSION | See [header_actions](#header_actions-options) |
183+
| `header_actions` | object | | v1.10.0 | See [header_actions](#header_actions-options) |
184184

185185
### series' `show` Options
186186

@@ -203,21 +203,21 @@ The card stricly validates all the options available (but not for the `apex_conf
203203

204204
| Name | Type | Default | Since | Description |
205205
| ---- | :--: | :-----: | :---: | ----------- |
206-
| `tap_action` | object | | NEXT_VERSION | Action to perform on tap. See [action options](#_action-options) |
207-
| `hold_action` | object | | NEXT_VERSION | Action to perform on hold. See [action options](#_action-options) |
208-
| `double_tap_action` | object | | NEXT_VERSION | Action to perform on double tap. See [action options](#_action-options) |
206+
| `tap_action` | object | | v1.10.0 | Action to perform on tap. See [action options](#_action-options) |
207+
| `hold_action` | object | | v1.10.0 | Action to perform on hold. See [action options](#_action-options) |
208+
| `double_tap_action` | object | | v1.10.0 | Action to perform on double tap. See [action options](#_action-options) |
209209

210210
### `*_action` options
211211

212212
| Name | Type | Default | Since | Description |
213213
| ---- | :--: | :-----: | :---: | ----------- |
214-
| `action` | string | `more-info` | NEXT_VERSION | Action to perform. Valid values are: `more-info`, `toggle`, `call-service`, `none`, `navigate`, `url` |
215-
| `entity` | string | | NEXT_VERSION | Only valid for `more-info`. Overrides the `more-info` target entity. Default is to use the serie's entity |
216-
| `navigation_path` | string | | NEXT_VERSION | Path to navigate to (e.g. `/lovelace/0/`) when action is `navigate` |
217-
| `url_path` | string | | NEXT_VERSION | URL to open on click when action is `url`. The URL will open in a new tab |
218-
| `service` | string | | NEXT_VERSION | Any valid Home-Assistant service |
219-
| `service_data` | object | | NEXT_VERSION | Service data to include (e.g. `entity_id: media_player.bedroom`) when `action` defined as `call-service` |
220-
| `confirmation` | object | | NEXT_VERSION |Display a confirmation popup. See [confirmation](#confirmation-options) |
214+
| `action` | string | `more-info` | v1.10.0 | Action to perform. Valid values are: `more-info`, `toggle`, `call-service`, `none`, `navigate`, `url` |
215+
| `entity` | string | | v1.10.0 | Only valid for `more-info`. Overrides the `more-info` target entity. Default is to use the serie's entity |
216+
| `navigation_path` | string | | v1.10.0 | Path to navigate to (e.g. `/lovelace/0/`) when action is `navigate` |
217+
| `url_path` | string | | v1.10.0 | URL to open on click when action is `url`. The URL will open in a new tab |
218+
| `service` | string | | v1.10.0 | Any valid Home-Assistant service |
219+
| `service_data` | object | | v1.10.0 | Service data to include (e.g. `entity_id: media_player.bedroom`) when `action` defined as `call-service` |
220+
| `confirmation` | object | | v1.10.0 |Display a confirmation popup. See [confirmation](#confirmation-options) |
221221

222222
Example:
223223
```yaml
@@ -238,8 +238,8 @@ This will popup a dialog box before running the action.
238238

239239
| Name | Type | Default | Since | Description |
240240
| ---- | :--: | :-----: | :---: | ----------- |
241-
| `text` | string | | NEXT_VERSION | This text will be displayed in the popup |
242-
| `exemptions` | array | | NEXT_VERSION | Any user declared in this list will not see the confirmation dialog. Format `user: USER_ID` |
241+
| `text` | string | | v1.10.0 | This text will be displayed in the popup |
242+
| `exemptions` | array | | v1.10.0 | Any user declared in this list will not see the confirmation dialog. Format `user: USER_ID` |
243243

244244
Example:
245245

@@ -264,7 +264,7 @@ series:
264264
| Name | Type | Default | Since | Description |
265265
| ---- | :--: | :-----: | :---: | ----------- |
266266
| `loading` | boolean | `true` | v1.0.0 | Displays a spinning icon while the data is loading/updating |
267-
| `last_updated` | boolean | `false` | NEXT_VERSION | Show the last time the chart was updated on the bottom right |
267+
| `last_updated` | boolean | `false` | v1.10.0 | Show the last time the chart was updated on the bottom right |
268268

269269
### `header` Options
270270

@@ -276,7 +276,7 @@ series:
276276
| `show_states` | boolean | `false` | v1.1.0 | Show or hide the states in the header |
277277
| `colorize_states` | boolean | `false` | v1.1.0 | Colorize the states based on the color of the serie |
278278
| `standard_format` | boolean | `false` | v1.8.0 | Display the title using the standard Home-Assistant card format |
279-
| `disable_actions` | boolean | `false` | NEXT_VERSION | If `true`, disable all header actions |
279+
| `disable_actions` | boolean | `false` | v1.10.0 | If `true`, disable all header actions |
280280

281281
### `now` Options
282282

@@ -505,9 +505,9 @@ You can have as many y-axis as there are series defined in your configuration or
505505
| `opposite` | boolean | `false` | v1.9.0 | If `true`, the axis will be shown on the right side of the chart |
506506
| `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. |
507507
| `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. |
508-
| `decimals` | number | `1` | NEXT_VERSION | Number of decimals to show on this y-axis |
508+
| `decimals` | number | `1` | v1.10.0 | Number of decimals to show on this y-axis |
509509
| `apex_config` | object | | v1.9.0 | Any configuration from https://apexcharts.com/docs/options/yaxis/, except `min`, `max`, `show` and `opposite` |
510-
| `align_to` | number | | NEXT_VERSION | Aligns the yaxis extremas to the closest multiple of `align_to`. Only valid if `min` or `max` are not fixed values. |
510+
| `align_to` | number | | v1.10.0 | Aligns the yaxis extremas to the closest multiple of `align_to`. Only valid if `min` or `max` are not fixed values. |
511511

512512
#### Min/Max Format
513513

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "apexcharts-card",
3-
"version": "1.10.0-dev.7",
3+
"version": "1.10.0",
44
"description": "A Home Assistant Lovelace card using ApexCharts to render graphs",
55
"main": "src/apexcharts-card.ts",
66
"scripts": {

0 commit comments

Comments
 (0)