Skip to content

Commit

Permalink
chore(release): 1.10.0 [skip ci]
Browse files Browse the repository at this point in the history
## [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))
  • Loading branch information
semantic-release-bot committed Oct 24, 2021
1 parent 5fa3cda commit 4d72937
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 22 deletions.
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
## [1.10.0](https://github.com/RomRider/apexcharts-card/compare/v1.9.0...v1.10.0) (2021-10-24)


### Features

* 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)
* **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)
* 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))
* **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)
* display the chart's last update time using `last_updated` ([2dd84ff](https://github.com/RomRider/apexcharts-card/commit/2dd84ffdac637c753ae96f30029190cc99747b8d))
* **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)
* update from lit-html/lit-element to lit ([5a7d944](https://github.com/RomRider/apexcharts-card/commit/5a7d944b6fccc76f046fe940e21af4bdec09d28b))
* **yaxis:** `id` and `yaxis_id` no longer needed with only 1 yaxis defined ([e5e8904](https://github.com/RomRider/apexcharts-card/commit/e5e89040620ca9df43dd38d5e267ce2b70386bc2))


### Bug Fixes

* 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)
* 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)
* 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)
* history data could be modified in some rare cases ([d38fd6e](https://github.com/RomRider/apexcharts-card/commit/d38fd6e0c3531dcd225e856ca90c57026c9049ab))
* Ignore recorder when not required ([c28a7a6](https://github.com/RomRider/apexcharts-card/commit/c28a7a682b9bb0943fd82a24f525c87801fbe4f5)), closes [#169](https://github.com/RomRider/apexcharts-card/issues/169)
* 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)
* When recorder was skipped, attributes were ignored ([15e5372](https://github.com/RomRider/apexcharts-card/commit/15e537213c9ab9b16ed9d0e3734d80def769fbde))
* **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)
* **yaxis:** Fixed + unfixed bounds on the same yaxis is now working ([f7e4668](https://github.com/RomRider/apexcharts-card/commit/f7e46688fc3b891981854d1632c513fa9dac4773))


### Documentation

* `align_to` description update ([4471469](https://github.com/RomRider/apexcharts-card/commit/447146951dd7e1a758ca4a0f7b5d85c13970d4c0))
* Missing doc for `last_updated` ([93ae54a](https://github.com/RomRider/apexcharts-card/commit/93ae54abb60cc8c0e9e1011f97d8978de7f0b7bd))

## [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)


Expand Down
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,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.9.0/apexcharts-card.js
$ wget https://github.com/RomRider/apexcharts-card/releases/download/v1.10.0/apexcharts-card.js
```

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

```yaml
resources:
- url: /local/apexcharts-card.js?v=1.9.0
- url: /local/apexcharts-card.js?v=1.10.0
type: module
```
Expand Down Expand Up @@ -145,7 +145,7 @@ The card stricly validates all the options available (but not for the `apex_conf
| `layout` | string | | v1.0.0 | See [layouts](#layouts) |
| `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~~ | **DEPRECATED since NEXT_VERSION** ~~The float precision used to display numbers on the Y axis. Only works if `yaxis` is undefined.~~ |
| ~~`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.~~ |
| `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) |
Expand Down Expand Up @@ -180,7 +180,7 @@ The card stricly validates all the options available (but not for the `apex_conf
| `color_threshold` | object | | v1.6.0 | See [experimental](#experimental-features) |
| `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) |
| `header_actions` | object | | NEXT_VERSION | See [header_actions](#header_actions-options) |
| `header_actions` | object | | v1.10.0 | See [header_actions](#header_actions-options) |

### series' `show` Options

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

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

### `*_action` options

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

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

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

Example:

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

### `header` Options

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

### `now` Options

Expand Down Expand Up @@ -505,9 +505,9 @@ You can have as many y-axis as there are series defined in your configuration or
| `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. |
| `decimals` | number | `1` | NEXT_VERSION | Number of decimals to show on this y-axis |
| `decimals` | number | `1` | v1.10.0 | Number of decimals to show on this y-axis |
| `apex_config` | object | | v1.9.0 | Any configuration from https://apexcharts.com/docs/options/yaxis/, except `min`, `max`, `show` and `opposite` |
| `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. |
| `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. |

#### Min/Max Format

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apexcharts-card",
"version": "1.10.0-dev.7",
"version": "1.10.0",
"description": "A Home Assistant Lovelace card using ApexCharts to render graphs",
"main": "src/apexcharts-card.ts",
"scripts": {
Expand Down

0 comments on commit 4d72937

Please sign in to comment.