diff --git a/README.md b/README.md index a658e30..2f466f2 100755 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ The card works with entities from within the **sensor** domain and displays the ```yaml resources: - - url: /local/mini-graph-card-bundle.js?v=0.2.1 + - url: /local/mini-graph-card-bundle.js?v=0.2.2 type: module ``` @@ -26,14 +26,14 @@ The card works with entities from within the **sensor** domain and displays the 2. Grab `mini-graph-card-bundle.js` ``` - $ wget https://github.com/kalkih/mini-graph-card/releases/download/v0.2.1/mini-graph-card-bundle.js + $ wget https://github.com/kalkih/mini-graph-card/releases/download/v0.2.2/mini-graph-card-bundle.js ``` 3. Add a reference to `mini-graph-card-bundle.js` inside your `ui-lovelace.yaml`. ```yaml resources: - - url: /local/mini-graph-card-bundle.js?v=0.2.1 + - url: /local/mini-graph-card-bundle.js?v=0.2.2 type: module ``` @@ -60,7 +60,7 @@ The card works with entities from within the **sensor** domain and displays the ```yaml resources: - - url: /local/mini-graph-card-bundle.js?v=0.2.1 + - url: /local/mini-graph-card-bundle.js?v=0.2.2 type: module ``` @@ -127,7 +127,7 @@ All options are optional. | points | hover | `true` / `false` / `hover` | Display graph data points | legend | true | `true` / `false` | Display the graph legend (only shown when graph contains multiple entities) | extrema | false | `true` / `false` | Display max/min information -| labels | false | `true` / `false` | Display Y-axis labels +| labels | hover | `true` / `false` / `hover` | Display Y-axis labels #### Line color object See [adaptive line color](#adaptive-line-color) for example usage. diff --git a/changelog.md b/changelog.md index 9dc1d3a..af3b9cc 100755 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,19 @@ +## v0.2.2 +- **New:** Label design (#35) +- **New:** Entity name now visible in title when graph point is hovered over (#39) +- **New:** `hover` parameter for labels +- **New:** Now rendering missing history as a horizontal line up to the first available history entry (similar to the default history-graph) +- **Change:** Made labels visible on hover by default +- **Change:** Label font size now has a min size and scales relative to the `font_size` option +- **Fixed:** Significantly improved accuracy of graph point values +- **Fixed:** Only fetch history for updated entities, use cache to update rest +- **Fixed:** Graph points not applying threshold color from `line_color_above` / `line_color_below` (#38) +- **Fixed:** Invalid timestamps when combining `points_per_hour` & `hours_to_show` (#37, #36) +- **Fixed:** Misaligned legend text +- **Fixed:** Missing bottom padding when graph is hidden +- **Fixed:** Invisible lines when graph was updated after not covering the full width on load +- **Fixed:** Align timestamps right when `align_state` is set to `right` + ## v0.2.1 - **Added:** New `hour24` option to choose time format between 12-hour/24-hour clock - **Added:** Support for showing multiple sensor states, see new `show_state` option for the entity object (#33) @@ -7,7 +23,6 @@ - **Fixed:** Extrema not rendering (#32) - **Fixed:** Times on points going backwards (#30) - ## v0.2.0 - **UI redesign** - **Added:** support for multiple entities (**BETA**) #28 diff --git a/package.json b/package.json index e898cfb..731f113 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mini-graph-card", - "version": "0.2.1", + "version": "0.2.2", "description": "A minimalistic and customizable graph card for Home Assistant Lovelace UI", "keywords": [ "home-assistant", diff --git a/tracker.json b/tracker.json index c58474b..e5f08aa 100755 --- a/tracker.json +++ b/tracker.json @@ -1,8 +1,8 @@ { "mini-graph-card-bundle": { - "updated_at": "2018-02-03", - "version": "0.2.1", - "remote_location": "https://github.com/kalkih/mini-graph-card/releases/download/v0.2.1/mini-graph-card-bundle.js", + "updated_at": "2019-02-07", + "version": "0.2.2", + "remote_location": "https://github.com/kalkih/mini-graph-card/releases/download/v0.2.2/mini-graph-card-bundle.js", "visit_repo": "https://github.com/kalkih/mini-graph-card", "changelog": "https://github.com/kalkih/mini-graph-card/releases/latest" }