Skip to content

Commit

Permalink
chore(release): 1.3.0 [skip ci]
Browse files Browse the repository at this point in the history
## [1.3.0](v1.2.0...v1.3.0) (2021-01-30)

### Features

* **series:** Display values as a duration ([#21](#21)) ([227f0ea](227f0ea))
* **series:** Hide the value of a serie in the legend ([#22](#22)) ([1e8f748](1e8f748)), closes [#20](#20)
* **series.offset:** Compare data from another timeframe with the current timeframe ([#19](#19)) ([af8ba81](af8ba81)), closes [#18](#18)

### Bug Fixes

* **config:** `style` was not a valid config option (card-mod/picture-element) ([0a38778](0a38778)), closes [#15](#15)
* **header:** Unit would sometimes be on a new line ([92fad1b](92fad1b))
* **series.offset:** Fix bug introduced by [#19](#19) ([f5c0d57](f5c0d57)), closes [#18](#18)
* **style:** Better default styling of toolbar ([4d0ef1c](4d0ef1c)), closes [#16](#16)
  • Loading branch information
semantic-release-bot committed Jan 30, 2021
1 parent 5e34cb0 commit 5223401
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
## [1.3.0](https://github.com/RomRider/apexcharts-card/compare/v1.2.0...v1.3.0) (2021-01-30)


### Features

* **series:** Display values as a duration ([#21](https://github.com/RomRider/apexcharts-card/issues/21)) ([227f0ea](https://github.com/RomRider/apexcharts-card/commit/227f0ea0a4457b0aa7a26fd032b6cb9e28cb1c2b))
* **series:** Hide the value of a serie in the legend ([#22](https://github.com/RomRider/apexcharts-card/issues/22)) ([1e8f748](https://github.com/RomRider/apexcharts-card/commit/1e8f748594f36ed3bbacd4305f9a5233aecbb029)), closes [#20](https://github.com/RomRider/apexcharts-card/issues/20)
* **series.offset:** Compare data from another timeframe with the current timeframe ([#19](https://github.com/RomRider/apexcharts-card/issues/19)) ([af8ba81](https://github.com/RomRider/apexcharts-card/commit/af8ba8156452054c38b4b65bb843bb16fbfdf6bd)), closes [#18](https://github.com/RomRider/apexcharts-card/issues/18)


### Bug Fixes

* **config:** `style` was not a valid config option (card-mod/picture-element) ([0a38778](https://github.com/RomRider/apexcharts-card/commit/0a3877858c9187e7356ca4cdd2543c6f0865db99)), closes [#15](https://github.com/RomRider/apexcharts-card/issues/15)
* **header:** Unit would sometimes be on a new line ([92fad1b](https://github.com/RomRider/apexcharts-card/commit/92fad1b1a39dda89f264e690fc15c7ce394d6105))
* **series.offset:** Fix bug introduced by [#19](https://github.com/RomRider/apexcharts-card/issues/19) ([f5c0d57](https://github.com/RomRider/apexcharts-card/commit/f5c0d57f17c2e799d2890b78b12b9a7dd685703f)), closes [#18](https://github.com/RomRider/apexcharts-card/issues/18)
* **style:** Better default styling of toolbar ([4d0ef1c](https://github.com/RomRider/apexcharts-card/commit/4d0ef1c6b1c22f6c9a0e84244062dd4361ea7cca)), closes [#16](https://github.com/RomRider/apexcharts-card/issues/16)

## [1.3.0-dev.3](https://github.com/RomRider/apexcharts-card/compare/v1.3.0-dev.2...v1.3.0-dev.3) (2021-01-30)


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

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

```yaml
resources:
- url: /local/apexcharts-card.js?v=1.2.0
- url: /local/apexcharts-card.js?v=1.3.0
type: module
```
Expand Down Expand Up @@ -131,15 +131,15 @@ The card stricly validates all the options available (but not for the `apex_conf
| `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) |
| `data_generator` | string | | v1.2.0 | See [data_generator](#data_generator-option) |
| `offset` | string | | NEXT_VERSION | 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`, ... |
| `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`, ... |


### `series.show` Options

| Name | Type | Default | Since | Description |
| ---- | :--: | :-----: | :---: | ----------- |
| `legend_value` | boolean | `true` | NEXT_VERSION | Show/Hide the state in the legend. Will still display the name |
| `as_duration` | string | | NEXT_VERSION | 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` |
| `legend_value` | boolean | `true` | v1.3.0 | Show/Hide the state in the legend. Will still display the name |
| `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` |


### Main `show` Options
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.3.0-dev.3",
"version": "1.3.0",
"description": "A Home Assistant Lovelace card using ApexCharts to render graphs",
"main": "src/apexcharts-card.ts",
"scripts": {
Expand Down

0 comments on commit 5223401

Please sign in to comment.