Skip to content

Commit 35eb8df

Browse files
chore(release): 1.7.0 [skip ci]
## [1.7.0](v1.6.0...v1.7.0) (2021-02-16) ### Features * **datalabels:** Option to display total when chart is stacked ([#75](#75)) ([e1c5b01](e1c5b01)), closes [#73](#73) * **experimental:** Header color can now follow `color_threshold` ([#88](#88)) ([074bfc3](074bfc3)), closes [#78](#78) * **locale:** Inherit locale from Home-Assistant, deprecate `hours_12` ([#70](#70)) ([af2d201](af2d201)), closes [#68](#68) * **series.show:** Display your serie's extremas on the chart ([#85](#85)) ([f64169a](f64169a)) * **series.show:** Option to show the raw data in the header ([#76](#76)) ([87b56f5](87b56f5)), closes [#69](#69) * **transform:** Provide the full state as `entity` to the function ([#77](#77)) ([9919c10](9919c10)), closes [#71](#71) ### Bug Fixes * **config_templates:** Was supposed to support a string ([f36d9b1](f36d9b1)), closes [#87](#87) * color with alpha would render area opaque ([100b6d4](100b6d4)) * Support for `rgba` colors ([7ecfafd](7ecfafd)) * truncate floats in total datalabels ([917a20a](917a20a)), closes [#73](#73) * Wrong labels in tooltip in some cases ([8f0aca1](8f0aca1)) ### Documentation * Better info about month and year as offset units ([c194f87](c194f87)), closes [#65](#65) * **config_templates:** Fix wrong config example ([ea1fef4](ea1fef4)) * Card is now available in HACS by default ([1200abd](1200abd))
1 parent e0a5ef7 commit 35eb8df

File tree

4 files changed

+38
-10
lines changed

4 files changed

+38
-10
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
## [1.7.0](https://github.com/RomRider/apexcharts-card/compare/v1.6.0...v1.7.0) (2021-02-16)
2+
3+
4+
### Features
5+
6+
* **datalabels:** Option to display total when chart is stacked ([#75](https://github.com/RomRider/apexcharts-card/issues/75)) ([e1c5b01](https://github.com/RomRider/apexcharts-card/commit/e1c5b015bd753c2d2b5a33dd564f0b150d66f2d8)), closes [#73](https://github.com/RomRider/apexcharts-card/issues/73)
7+
* **experimental:** Header color can now follow `color_threshold` ([#88](https://github.com/RomRider/apexcharts-card/issues/88)) ([074bfc3](https://github.com/RomRider/apexcharts-card/commit/074bfc30f1dc1ac88ba08edb4f749e0744d9a722)), closes [#78](https://github.com/RomRider/apexcharts-card/issues/78)
8+
* **locale:** Inherit locale from Home-Assistant, deprecate `hours_12` ([#70](https://github.com/RomRider/apexcharts-card/issues/70)) ([af2d201](https://github.com/RomRider/apexcharts-card/commit/af2d2013f57540dc35471dad90b09b93f4b9dc4f)), closes [#68](https://github.com/RomRider/apexcharts-card/issues/68)
9+
* **series.show:** Display your serie's extremas on the chart ([#85](https://github.com/RomRider/apexcharts-card/issues/85)) ([f64169a](https://github.com/RomRider/apexcharts-card/commit/f64169ad0583aa754370d09d3567e2ba4d0ec9c8))
10+
* **series.show:** Option to show the raw data in the header ([#76](https://github.com/RomRider/apexcharts-card/issues/76)) ([87b56f5](https://github.com/RomRider/apexcharts-card/commit/87b56f576389964fcf08ec0968589d6dd89407b1)), closes [#69](https://github.com/RomRider/apexcharts-card/issues/69)
11+
* **transform:** Provide the full state as `entity` to the function ([#77](https://github.com/RomRider/apexcharts-card/issues/77)) ([9919c10](https://github.com/RomRider/apexcharts-card/commit/9919c10543b70220f5c7e6dab972324e807c095c)), closes [#71](https://github.com/RomRider/apexcharts-card/issues/71)
12+
13+
14+
### Bug Fixes
15+
16+
* **config_templates:** Was supposed to support a string ([f36d9b1](https://github.com/RomRider/apexcharts-card/commit/f36d9b17eb5e768e1850a5d20e12374739f0fa4e)), closes [#87](https://github.com/RomRider/apexcharts-card/issues/87)
17+
* color with alpha would render area opaque ([100b6d4](https://github.com/RomRider/apexcharts-card/commit/100b6d4e72272127783c65b1132dbefb0b349f95))
18+
* Support for `rgba` colors ([7ecfafd](https://github.com/RomRider/apexcharts-card/commit/7ecfafdbeca0813d8983c061a03d375c5378142b))
19+
* truncate floats in total datalabels ([917a20a](https://github.com/RomRider/apexcharts-card/commit/917a20a47e1b25cf4367770e31399a177334d345)), closes [#73](https://github.com/RomRider/apexcharts-card/issues/73)
20+
* Wrong labels in tooltip in some cases ([8f0aca1](https://github.com/RomRider/apexcharts-card/commit/8f0aca1832f98d034990d75f8f09b195869b788c))
21+
22+
23+
### Documentation
24+
25+
* Better info about month and year as offset units ([c194f87](https://github.com/RomRider/apexcharts-card/commit/c194f87cf419371b779602a9cda7f1927bf55757)), closes [#65](https://github.com/RomRider/apexcharts-card/issues/65)
26+
* **config_templates:** Fix wrong config example ([ea1fef4](https://github.com/RomRider/apexcharts-card/commit/ea1fef45736b11fa79a78ca1ac59e7c80c42b39a))
27+
* Card is now available in HACS by default ([1200abd](https://github.com/RomRider/apexcharts-card/commit/1200abd7909fb6d522d69cf9eb8cdfdab25a0a59))
28+
129
## [1.7.0-dev.4](https://github.com/RomRider/apexcharts-card/compare/v1.7.0-dev.3...v1.7.0-dev.4) (2021-02-15)
230

331

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ This card is available in [HACS](https://hacs.xyz/) (Home Assistant Community St
8080
2. Grab `apexcharts-card.js`:
8181

8282
```
83-
$ wget https://github.com/RomRider/apexcharts-card/releases/download/v1.6.0/apexcharts-card.js
83+
$ wget https://github.com/RomRider/apexcharts-card/releases/download/v1.7.0/apexcharts-card.js
8484
```
8585

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

9292
```yaml
9393
resources:
94-
- url: /local/apexcharts-card.js?v=1.6.0
94+
- url: /local/apexcharts-card.js?v=1.7.0
9595
type: module
9696
```
9797
@@ -132,7 +132,7 @@ The card stricly validates all the options available (but not for the `apex_conf
132132
| `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`, ... |
133133
| `span` | object | | v1.2.0 | See [span](#span-options) |
134134
| `show` | object | | v1.0.0 | See [show](#main-show-options) |
135-
| ~~`hours_12`~~ | ~~boolean~~ | ~~`false`~~ | ~~v1.5.0~~ | **Deprecated since NEXT_VERSION** ~~Display time in 12h format instead of the default 24h format~~ |
135+
| ~~`hours_12`~~ | ~~boolean~~ | ~~`false`~~ | ~~v1.5.0~~ | **Deprecated since v1.7.0** ~~Display time in 12h format instead of the default 24h format~~ |
136136
| `cache` | boolean | `true` | v1.0.0 | Use in-browser data caching to reduce the load on Home Assistant's server |
137137
| `stacked` | boolean | `false` | v1.0.0 | Enable if you want the data to be stacked on the graph |
138138
| `layout` | string | | v1.0.0 | See [layouts](#layouts) |
@@ -141,7 +141,7 @@ The card stricly validates all the options available (but not for the `apex_conf
141141
| `y_axis_precision` | numnber | `1` | v1.2.0 | The float precision used to display numbers on the Y axis |
142142
| `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) |
143143
| `experimental` | object | | v1.6.0 | See [experimental](#experimental-features) |
144-
| `locale` | string | | NEXT_VERSION | 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. |
144+
| `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. |
145145

146146

147147

@@ -176,12 +176,12 @@ The card stricly validates all the options available (but not for the `apex_conf
176176
| ---- | :--: | :-----: | :---: | ----------- |
177177
| `legend_value` | boolean | `true` | v1.3.0 | Show/Hide the state in the legend. Will still display the name |
178178
| `as_duration` | string | | v1.3.0 | Will pretty print the states as durations. Doesn't affect the graph, only the tooltip/legend/header display. You provide the source unit of your sensor. Valid values are `millisecond`, `second`, `minute`, `hour`, `day`, `week`, `month`, `year`.<br/>Eg: if the state is `345` and `as_duration` is set to `minute` then it would display `5h 45m` |
179-
| `in_header` | boolean or string | `true` | v1.4.0 | If `show_states` is enabled, this would show/hide this specific serie in the header. If set to `raw` (introduced in NEXT_VERSION), it would display the latest raw state of the entity in the header bypassing any grouping/transformation done by the card. |
180-
| `header_color_threshold` | boolean | `false` | NEXT_VERSION | If `true` and `color_threshold` experimental mode is enabled, it will colorize the header's state based on the threshold (ignoring opacity). |
179+
| `in_header` | boolean or string | `true` | v1.4.0 | If `show_states` is enabled, this would show/hide this specific serie in the header. If set to `raw` (introduced in v1.7.0), it would display the latest raw state of the entity in the header bypassing any grouping/transformation done by the card. |
180+
| `header_color_threshold` | boolean | `false` | v1.7.0 | If `true` and `color_threshold` experimental mode is enabled, it will colorize the header's state based on the threshold (ignoring opacity). |
181181
| `in_chart` | boolean | `true` | v1.4.0 | If `false`, hides the serie from the chart |
182-
| `datalabels` | boolean or string | `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. If you set it to `total` (introduced in NEXT_VERSION), it will display the stacked total value (only works when `stacked: true`) |
182+
| `datalabels` | boolean or string | `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. If you set it to `total` (introduced in v1.7.0), it will display the stacked total value (only works when `stacked: true`) |
183183
| `hidden_by_default` | boolean | `false` | v1.6.0 | See [experimental](#hidden_by_default-experimental-feature) |
184-
| `extremas` | boolean | `false` | NEXT_VERSION | If enabled, will show the min and the max of the serie in the chart. This feature doesn't work with `stacked: true`. |
184+
| `extremas` | boolean | `false` | v1.7.0 | If enabled, will show the min and the max of the serie in the chart. This feature doesn't work with `stacked: true`. |
185185

186186

187187
### Main `show` Options

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.7.0-dev.4",
3+
"version": "1.7.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)