Skip to content

Commit

Permalink
chore(release): 1.5.0 [skip ci]
Browse files Browse the repository at this point in the history
## [1.5.0](v1.4.0...v1.5.0) (2021-02-04)

### Features

* **series.show:** Show/hide dataLabels per serie ([9e28db3](9e28db3))
* Support for 12-hour format ([#55](#55)) ([f38a18e](f38a18e)), closes [#48](#48) [#53](#53)
* **now:** Add a marker at the current time on the chart ([9b6b83d](9b6b83d)), closes [#44](#44)
* **series:** `transform` the data the way you want ([#45](#45)) ([1cb6bb5](1cb6bb5))
* **series:** New `fill_raw` option to fill missing data in raw history ([e2433b6](e2433b6))

### Bug Fixes

* dataLabels would not follow `float_precision` ([cf9b63a](cf9b63a)), closes [#54](#54)
* Float were not displayed in non-timeline charts ([e67d2d7](e67d2d7)), closes [#42](#42)

### Documentation

* Fix HACS doc (not yet available by default) ([53fece2](53fece2))
* Fix typo in doc ([89ed3c5](89ed3c5))
* Missing link to the `now` section ([9747257](9747257))
  • Loading branch information
semantic-release-bot committed Feb 4, 2021
1 parent 9e28db3 commit f77cb80
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 12 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
## [1.5.0](https://github.com/RomRider/apexcharts-card/compare/v1.4.0...v1.5.0) (2021-02-04)


### Features

* **series.show:** Show/hide dataLabels per serie ([9e28db3](https://github.com/RomRider/apexcharts-card/commit/9e28db349bff165722ba245e336e0ec8d0a718ab))
* Support for 12-hour format ([#55](https://github.com/RomRider/apexcharts-card/issues/55)) ([f38a18e](https://github.com/RomRider/apexcharts-card/commit/f38a18eb1e0a3aedb04c78577e6207c1eb9fb0f6)), closes [#48](https://github.com/RomRider/apexcharts-card/issues/48) [#53](https://github.com/RomRider/apexcharts-card/issues/53)
* **now:** Add a marker at the current time on the chart ([9b6b83d](https://github.com/RomRider/apexcharts-card/commit/9b6b83db64e8ec80ceaf3f929f3716b3fe5943b1)), closes [#44](https://github.com/RomRider/apexcharts-card/issues/44)
* **series:** `transform` the data the way you want ([#45](https://github.com/RomRider/apexcharts-card/issues/45)) ([1cb6bb5](https://github.com/RomRider/apexcharts-card/commit/1cb6bb5d0c5abbe73a4e5f0ded426cc123af515b))
* **series:** New `fill_raw` option to fill missing data in raw history ([e2433b6](https://github.com/RomRider/apexcharts-card/commit/e2433b679aad6efdb38137970d6acbfa2d3bc75f))


### Bug Fixes

* dataLabels would not follow `float_precision` ([cf9b63a](https://github.com/RomRider/apexcharts-card/commit/cf9b63a2a27aca63d7188f8eaf371f4c6b343191)), closes [#54](https://github.com/RomRider/apexcharts-card/issues/54)
* Float were not displayed in non-timeline charts ([e67d2d7](https://github.com/RomRider/apexcharts-card/commit/e67d2d7cdf2041c41e7c26965074c4037cfe46aa)), closes [#42](https://github.com/RomRider/apexcharts-card/issues/42)


### Documentation

* Fix HACS doc (not yet available by default) ([53fece2](https://github.com/RomRider/apexcharts-card/commit/53fece2d2e45ba80e90ed3f181021de5d1b05550))
* Fix typo in doc ([89ed3c5](https://github.com/RomRider/apexcharts-card/commit/89ed3c530ed296765dcbe65f856df16a57cc9db5))
* Missing link to the `now` section ([9747257](https://github.com/RomRider/apexcharts-card/commit/9747257018cb60359afc28eeb2c33f3f544f341f))

## [1.5.0-dev.4](https://github.com/RomRider/apexcharts-card/compare/v1.5.0-dev.3...v1.5.0-dev.4) (2021-02-04)


Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Until then, follow the steps listed in [this issue](https://github.com/RomRider/
2. Grab `apexcharts-card.js`:

```
$ wget https://github.com/RomRider/apexcharts-card/releases/download/v1.4.0/apexcharts-card.js
$ wget https://github.com/RomRider/apexcharts-card/releases/download/v1.5.0/apexcharts-card.js
```

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

```yaml
resources:
- url: /local/apexcharts-card.js?v=1.4.0
- url: /local/apexcharts-card.js?v=1.5.0
type: module
```
Expand Down Expand Up @@ -124,12 +124,12 @@ The card stricly validates all the options available (but not for the `apex_conf
| `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`, ... |
| `span` | object | | v1.2.0 | See [span](#span-options) |
| `show` | object | | v1.0.0 | See [show](#main-show-options) |
| `hours_12` | boolean | `false` | NEXT_VERSION | Display time in 12h format instead of the default 24h format |
| `hours_12` | boolean | `false` | v1.5.0 | Display time in 12h format instead of the default 24h format |
| `cache` | boolean | `true` | v1.0.0 | Use in-browser data caching to reduce the load on Home Assistant's server |
| `stacked` | boolean | `false` | v1.0.0 | Enable if you want the data to be stacked on the graph |
| `layout` | string | | v1.0.0 | See [layouts](#layouts) |
| `header` | object | | v1.0.0 | See [header](#header-options) |
| `now` | object | | NEXT_VERSION | See [now](#now-options) |
| `now` | object | | v1.5.0 | See [now](#now-options) |
| `y_axis_precision` | numnber | `1` | v1.2.0 | The float precision used to display numbers on the 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) |

Expand All @@ -148,10 +148,10 @@ The card stricly validates all the options available (but not for the `apex_conf
| `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. |
| `unit` | string | | v1.0.0 | Override the unit of the sensor |
| `float_precision` | number | `1` | v1.2.0 | The precision used to display data in the legend and the tooltip. It doesn't impact how the data is displayed on the graph |
| `fill_raw` | string | `'null'` | NEXT_VERSION | If there is any missing value in the history, `last` will replace them with the last non-empty state, `zero` will fill missing values with `0`, `'null'` will fill missing values with `null`. This is applied before `group_by` options |
| `fill_raw` | string | `'null'` | v1.5.0 | If there is any missing value in the history, `last` will replace them with the last non-empty state, `zero` will fill missing values with `0`, `'null'` will fill missing values with `null`. This is applied before `group_by` options |
| `group_by` | object | | v1.0.0 | See [group_by](#group_by-options) |
| `invert` | boolean | `false` | v1.2.0 | Negates the data (`1` -> `-1`). Usefull to display opposites values like network in (standard)/out (inverted) |
| `transform` | string | | NEXT_VERSION | Transform your raw data in any way you like. See [transform](#transform-option) |
| `transform` | string | | v1.5.0 | Transform your raw data in any way you like. See [transform](#transform-option) |
| `data_generator` | string | | v1.2.0 | See [data_generator](#data_generator-option) |
| `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`, ... |
| `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 |
Expand All @@ -165,7 +165,7 @@ The card stricly validates all the options available (but not for the `apex_conf
| `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` |
| `in_header` | boolean | `true` | v1.4.0 | If `show_states` is enabled, this would show/hide this specific serie in the header |
| `in_chart` | boolean | `true` | v1.4.0 | If `false`, hides the serie from the chart |
| `datalabels` | boolean | `false` | NEXT_VERSION | 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 |
| `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 |


### Main `show` Options
Expand All @@ -190,9 +190,9 @@ The position of the marker will only update when the card updates (state change

| Name | Type | Default | Since | Description |
| ---- | :--: | :-----: | :---: | ----------- |
| `show` | boolean | `false` | NEXT_VERSION | Shows a vertical marker for the current time on the graph. Only useful if displaying data from the future |
| `color` | string | `var(--primary-color)` | NEXT_VERSION | Color of the marker. The color of the text is computed automatically. |
| `label` | string | | NEXT_VERSION | Text to display on the label. No label if not defined |
| `show` | boolean | `false` | v1.5.0 | Shows a vertical marker for the current time on the graph. Only useful if displaying data from the future |
| `color` | string | `var(--primary-color)` | v1.5.0 | Color of the marker. The color of the text is computed automatically. |
| `label` | string | | v1.5.0 | Text to display on the label. No label if not defined |

![now_marker](docs/now-marker.png)

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.5.0-dev.4",
"version": "1.5.0",
"description": "A Home Assistant Lovelace card using ApexCharts to render graphs",
"main": "src/apexcharts-card.ts",
"scripts": {
Expand Down

0 comments on commit f77cb80

Please sign in to comment.