Skip to content

Commit 3392e30

Browse files
chore(release): 1.6.0 [skip ci]
## [1.6.0](v1.5.0...v1.6.0) (2021-02-08) ### Features * **config_tpl:** Create a config template and use it everywhere with `config_templates`, apply the same config to every series with `all_series_config` and add `color_list` to define your color list in one shot ([#64](#64)) ([17004a3](17004a3)) * **experimental:** `hidden_by_default` to toggle series on load ([#62](#62)) ([63717b7](63717b7)), closes [#60](#60) * **series:** Define the `opacity` of the line or area ([8dfb3fd](8dfb3fd)), closes [#57](#57) * add stroke_width and experimental color_threshold/disable_config_validation ([fcdfa88](fcdfa88)), closes [#58](#58) ### Bug Fixes * **color_threshold:** opacity for color_threshold ([5a325f4](5a325f4)) * **func:** median was sometimes wrong ([c36dda7](c36dda7))
1 parent b0b86b8 commit 3392e30

File tree

4 files changed

+31
-15
lines changed

4 files changed

+31
-15
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## [1.6.0](https://github.com/RomRider/apexcharts-card/compare/v1.5.0...v1.6.0) (2021-02-08)
2+
3+
4+
### Features
5+
6+
* **config_tpl:** Create a config template and use it everywhere with `config_templates`, apply the same config to every series with `all_series_config` and add `color_list` to define your color list in one shot ([#64](https://github.com/RomRider/apexcharts-card/issues/64)) ([17004a3](https://github.com/RomRider/apexcharts-card/commit/17004a30b77733e5b09ebe7b4bbb4b7d3b265688))
7+
* **experimental:** `hidden_by_default` to toggle series on load ([#62](https://github.com/RomRider/apexcharts-card/issues/62)) ([63717b7](https://github.com/RomRider/apexcharts-card/commit/63717b7ae9648debdb1d11a17ddf61f95f7225d4)), closes [#60](https://github.com/RomRider/apexcharts-card/issues/60)
8+
* **series:** Define the `opacity` of the line or area ([8dfb3fd](https://github.com/RomRider/apexcharts-card/commit/8dfb3fd8839d7f93438b2273701bacd916d405c0)), closes [#57](https://github.com/RomRider/apexcharts-card/issues/57)
9+
* add stroke_width and experimental color_threshold/disable_config_validation ([fcdfa88](https://github.com/RomRider/apexcharts-card/commit/fcdfa88fc357b64d7d958cfbc67695f58b53c69c)), closes [#58](https://github.com/RomRider/apexcharts-card/issues/58)
10+
11+
12+
### Bug Fixes
13+
14+
* **color_threshold:** opacity for color_threshold ([5a325f4](https://github.com/RomRider/apexcharts-card/commit/5a325f4507b165564f41fb2d86095ca6175b37dc))
15+
* **func:** median was sometimes wrong ([c36dda7](https://github.com/RomRider/apexcharts-card/commit/c36dda7b6121df9bcd924f5e5b5c9e543930e896))
16+
117
## [1.6.0-dev.2](https://github.com/RomRider/apexcharts-card/compare/v1.6.0-dev.1...v1.6.0-dev.2) (2021-02-08)
218

319

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Until then, follow the steps listed in [this issue](https://github.com/RomRider/
8282
2. Grab `apexcharts-card.js`:
8383

8484
```
85-
$ wget https://github.com/RomRider/apexcharts-card/releases/download/v1.5.0/apexcharts-card.js
85+
$ wget https://github.com/RomRider/apexcharts-card/releases/download/v1.6.0/apexcharts-card.js
8686
```
8787

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

9494
```yaml
9595
resources:
96-
- url: /local/apexcharts-card.js?v=1.5.0
96+
- url: /local/apexcharts-card.js?v=1.6.0
9797
type: module
9898
```
9999
@@ -125,9 +125,9 @@ The card stricly validates all the options available (but not for the `apex_conf
125125
| ---- | :--: | :-----: | :---: | ----------- |
126126
| :white_check_mark: `type` | string | | v1.0.0 | `custom:apexcharts-card` |
127127
| :white_check_mark: `series` | array | | v1.0.0 | See [series](#series-options) |
128-
| `config_templates` | array | | NEXT_VERSION | Define a configuration once and reuse it multiple times. See [config_templates](#configuration-templates) |
129-
| `color_list` | array | | NEXT_VERSION | Define the array of colors applied to the series. Will be overriden by each serie's color if defined. Usefull for `config_templates` mainly. |
130-
| `all_series_config` | object | | NEXT_VERSION | If something is defined here it will apply this config to all the series. It accepts the same options as a serie minus `entity`. It is useful to avoid repetition but the same thing can be achieve in each serie individually. See [series](#series-options) and [all_series_config](#all_series_config-options) for an example |
128+
| `config_templates` | array | | v1.6.0 | Define a configuration once and reuse it multiple times. See [config_templates](#configuration-templates) |
129+
| `color_list` | array | | v1.6.0 | Define the array of colors applied to the series. Will be overriden by each serie's color if defined. Usefull for `config_templates` mainly. |
130+
| `all_series_config` | object | | v1.6.0 | If something is defined here it will apply this config to all the series. It accepts the same options as a serie minus `entity`. It is useful to avoid repetition but the same thing can be achieve in each serie individually. See [series](#series-options) and [all_series_config](#all_series_config-options) for an example |
131131
| `chart_type` | string | `line` | v1.4.0 | See [chart_type](#chart_type-options) |
132132
| `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`, ... |
133133
| `update_delay` | string | `1500ms` | v1.4.0 | If the chart doesn't display the last state but the one before, you'll want to increase this value, don't go over `10s`, it's not necessary. You'll also want to increase this value if you are using `attribute` in the `series`. Valid values are any time strings. This is because of how Home-Assistant works with history, see [here](https://www.home-assistant.io/integrations/recorder/#commit_interval) |
@@ -142,7 +142,7 @@ The card stricly validates all the options available (but not for the `apex_conf
142142
| `now` | object | | v1.5.0 | See [now](#now-options) |
143143
| `y_axis_precision` | numnber | `1` | v1.2.0 | The float precision used to display numbers on the Y axis |
144144
| `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) |
145-
| `experimental` | object | | NEXT_VERSION | See [experimental](#experimental-features) |
145+
| `experimental` | object | | v1.6.0 | See [experimental](#experimental-features) |
146146

147147

148148

@@ -154,8 +154,8 @@ The card stricly validates all the options available (but not for the `apex_conf
154154
| `attribute` | string | | v1.4.0 | Instead of retrieving the state, it will retrieve an `attribute` of the entity. Make sure you increase `update_delay` if the chart doesn't reflect the last value of the attribute |
155155
| `name` | string | | v1.0.0 | Override the name of the entity |
156156
| `color` | string | | v1.1.0 | Color of the serie. Supported formats: `yellow`, `#aabbcc`, `rgb(128, 128, 128)` or `var(--css-color-variable)` |
157-
| `opacity` | number | `0.7` for `area`<br/>else `1` | NEXT_VERSION | The opacity of the line or filled area, between `0` and `1` |
158-
| `stroke_width` | number | `5` | NEXT_VERSION | Change the width of the line. Only works for `area` and `line` |
157+
| `opacity` | number | `0.7` for `area`<br/>else `1` | v1.6.0 | The opacity of the line or filled area, between `0` and `1` |
158+
| `stroke_width` | number | `5` | v1.6.0 | Change the width of the line. Only works for `area` and `line` |
159159
| `type` | string | `line` | v1.0.0 | `line`, `area` or `column` are supported for now |
160160
| `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) |
161161
| `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. |
@@ -169,7 +169,7 @@ The card stricly validates all the options available (but not for the `apex_conf
169169
| `offset` | string | | v1.3.0 | This is different from the main `offset` parameter. This is at the series level. It is only usefull if you want to display data from for eg. yesterday on top of the data from today for the same sensor and compare the data. The time displayed in the tooltip will be wrong as will the x axis information. Valid values are any negative time string, eg: `-1h`, `-12min`, `-1d`, `-1h25`, `-10sec`, ... |
170170
| `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 |
171171
| `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 |
172-
| `color_threshold` | object | | NEXT_VERSION | See [experimental](#experimental-features) |
172+
| `color_threshold` | object | | v1.6.0 | See [experimental](#experimental-features) |
173173

174174
### `series.show` Options
175175

@@ -180,7 +180,7 @@ The card stricly validates all the options available (but not for the `apex_conf
180180
| `in_header` | boolean | `true` | v1.4.0 | If `show_states` is enabled, this would show/hide this specific serie in the header |
181181
| `in_chart` | boolean | `true` | v1.4.0 | If `false`, hides the serie from the chart |
182182
| `datalabels` | boolean | `false` | v1.5.0 | If `true` will show the value of each point for this serie directly in the chart. Don't use it if you have a lot of points displayed, it will be a mess |
183-
| `hidden_by_default` | boolean | `false` | NEXT_VERSION | See [experimental](#hidden_by_default-experimental-feature) |
183+
| `hidden_by_default` | boolean | `false` | v1.6.0 | See [experimental](#hidden_by_default-experimental-feature) |
184184

185185

186186
### Main `show` Options
@@ -575,9 +575,9 @@ Generates the same result as repeating the configuration in each series:
575575

576576
| Name | Type | Default | Since | Description |
577577
| ---- | :--: | :-----: | :---: | ----------- |
578-
| `color_threshold` | boolean | `false` | NEXT_VERSION | Will enable the color threshold feature. See [color_threshold](#color_threshold-experimental-feature) |
579-
| `disable_config_validation` | boolean | `false` | NEXT_VERSION | If `true`, will disable the config validation. Useful if you have cards adding parameters to this one. Use at your own risk. |
580-
| `hidden_by_default` | boolean | `false` | NEXT_VERSION | Will allow you to use the `hidden_by_default` option. See [hidden_by_default](#hidden_by_default-experimental-feature) |
578+
| `color_threshold` | boolean | `false` | v1.6.0 | Will enable the color threshold feature. See [color_threshold](#color_threshold-experimental-feature) |
579+
| `disable_config_validation` | boolean | `false` | v1.6.0 | If `true`, will disable the config validation. Useful if you have cards adding parameters to this one. Use at your own risk. |
580+
| `hidden_by_default` | boolean | `false` | v1.6.0 | Will allow you to use the `hidden_by_default` option. See [hidden_by_default](#hidden_by_default-experimental-feature) |
581581

582582
### `color_threshold` experimental feature
583583

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "apexcharts-card",
3-
"version": "1.6.0-dev.2",
3+
"version": "1.6.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)