386 Commits

Author SHA1 Message Date
ildar170975
e10c2e7b53 remove an outdated remark for "show_indicator" (#1320)
Some checks failed
CI / lint (push) Has been cancelled
CI / build (10.x) (push) Has been cancelled
CI / build (12.x) (push) Has been cancelled
2025-12-14 08:32:26 +01:00
semantic-release-bot
a94771a516 chore(release): 0.13.0 [skip ci]
# [0.13.0](https://github.com/kalkih/mini-graph-card/compare/v0.12.1...v0.13.0) (2025-05-29)

### Bug Fixes

* adapt state color to tooltip properties ([#1214](https://github.com/kalkih/mini-graph-card/issues/1214)) ([1142f25](1142f259b1))
* computeUom() for attribute & empty unit ([#1236](https://github.com/kalkih/mini-graph-card/issues/1236)) ([436b9a9](436b9a94f3))
* deprecated paper-item-icon-color ([#1247](https://github.com/kalkih/mini-graph-card/issues/1247)) ([2e99db5](2e99db5e97))
* hide graph loading indicator when appropriate ([#1197](https://github.com/kalkih/mini-graph-card/issues/1197)) ([d708d6a](d708d6a22f))
* indicator style for the 1st state ([#1105](https://github.com/kalkih/mini-graph-card/issues/1105)) ([c0ad333](c0ad333ee9))
* legend indicators respect entity attribute configuration ([#1115](https://github.com/kalkih/mini-graph-card/issues/1115)) ([5fe01d1](5fe01d15a7))
* legend unit percent w/o whitespace ([#1191](https://github.com/kalkih/mini-graph-card/issues/1191)) ([9f5cfd9](9f5cfd9c86))
* migrate to ha-spinner  ([#1234](https://github.com/kalkih/mini-graph-card/issues/1234)) ([d68f651](d68f651af0))
* more intuitive min_bound_range behavior ([#1136](https://github.com/kalkih/mini-graph-card/issues/1136)) ([54d9875](54d987568b))
* name and icon color respect attribute choice ([#1131](https://github.com/kalkih/mini-graph-card/issues/1131)) ([cbfba7a](cbfba7a6a4))
* padding fill ([#1238](https://github.com/kalkih/mini-graph-card/issues/1238)) ([f930fa6](f930fa60df))
* process absent UoM in computeLegend() ([#1237](https://github.com/kalkih/mini-graph-card/issues/1237)) ([5724cfd](5724cfdd8e))
* remove unused argument from getBoundary ([#1193](https://github.com/kalkih/mini-graph-card/issues/1193)) ([f5261d9](f5261d92c3))
* use a proper config in renderState() ([#1217](https://github.com/kalkih/mini-graph-card/issues/1217)) ([c980460](c980460098))
* use d3 to interpolate colors ([#1118](https://github.com/kalkih/mini-graph-card/issues/1118)) ([b8676f5](b8676f5571))

### Features

* add "tooltip--label" class ([#1202](https://github.com/kalkih/mini-graph-card/issues/1202)) ([0d3c184](0d3c184dc1))
* Add loader ([#1180](https://github.com/kalkih/mini-graph-card/issues/1180)) ([30c5263](30c5263a30))
* add show_legend_state ([#1173](https://github.com/kalkih/mini-graph-card/issues/1173)) ([3b1c827](3b1c82793a))
v0.13.0
2025-05-29 19:22:28 +00:00
akloeckner
1187dca780 chore: merge dev improvements into master (#1244) 2025-05-29 21:18:13 +02:00
ildar170975
d68f651af0 fix: migrate to ha-spinner (#1234)
Remove the old spinner and use the new one. The old spinner was discontinued in HA 2025.5.

The loading indicator will not be shown, if your are using a version of HA < 2025.5!
2025-05-29 21:02:35 +02:00
Daniel Jäger
ea103991f3 docs: add "My Home Assistant" HACS Link to README (#1253)
Some checks failed
CI / lint (push) Has been cancelled
CI / build (10.x) (push) Has been cancelled
CI / build (12.x) (push) Has been cancelled
2025-05-27 14:41:09 +02:00
ildar170975
2e99db5e97 fix: deprecated paper-item-icon-color (#1247)
Some checks failed
CI / lint (push) Has been cancelled
CI / build (10.x) (push) Has been cancelled
CI / build (12.x) (push) Has been cancelled
2025-05-12 22:47:55 +02:00
semantic-release-bot
4c209319b3 chore(release): 0.13.0-dev.3 [skip ci]
# [0.13.0-dev.3](https://github.com/kalkih/mini-graph-card/compare/v0.13.0-dev.2...v0.13.0-dev.3) (2025-04-29)

### Bug Fixes

* computeUom() for attribute & empty unit ([#1236](https://github.com/kalkih/mini-graph-card/issues/1236)) ([436b9a9](436b9a94f3))
* padding fill ([#1238](https://github.com/kalkih/mini-graph-card/issues/1238)) ([f930fa6](f930fa60df))
* process absent UoM in computeLegend() ([#1237](https://github.com/kalkih/mini-graph-card/issues/1237)) ([5724cfd](5724cfdd8e))
* use a proper config in renderState() ([#1217](https://github.com/kalkih/mini-graph-card/issues/1217)) ([c980460](c980460098))
v0.13.0-dev.3
2025-04-29 20:18:46 +00:00
ildar170975
5724cfdd8e fix: process absent UoM in computeLegend() (#1237) 2025-04-29 22:16:29 +02:00
ildar170975
c980460098 fix: use a proper config in renderState() (#1217) 2025-04-29 22:14:03 +02:00
ildar170975
f930fa60df fix: padding fill (#1238)
Some checks failed
CI / lint (push) Has been cancelled
CI / build (10.x) (push) Has been cancelled
CI / build (12.x) (push) Has been cancelled
2025-04-29 16:36:18 +02:00
ildar170975
df380c9d56 fix computeName() to fall back to entity ID (#1235) 2025-04-29 16:10:24 +02:00
ildar170975
436b9a94f3 fix: computeUom() for attribute & empty unit (#1236) 2025-04-29 15:17:07 +02:00
Max R
4f7381c244 docs: add some syntax highlighting to README (#1224) 2025-03-13 22:15:26 +01:00
semantic-release-bot
847c8cee74 chore(release): 0.13.0-dev.2 [skip ci]
# [0.13.0-dev.2](https://github.com/kalkih/mini-graph-card/compare/v0.13.0-dev.1...v0.13.0-dev.2) (2025-02-15)

### Bug Fixes

* adapt state color to tooltip properties ([#1214](https://github.com/kalkih/mini-graph-card/issues/1214)) ([1142f25](1142f259b1))
* hide graph loading indicator when appropriate ([#1197](https://github.com/kalkih/mini-graph-card/issues/1197)) ([d708d6a](d708d6a22f))
* legend unit percent w/o whitespace ([#1191](https://github.com/kalkih/mini-graph-card/issues/1191)) ([9f5cfd9](9f5cfd9c86))
* more intuitive min_bound_range behavior ([#1136](https://github.com/kalkih/mini-graph-card/issues/1136)) ([54d9875](54d987568b))
* remove unused argument from getBoundary ([#1193](https://github.com/kalkih/mini-graph-card/issues/1193)) ([f5261d9](f5261d92c3))

### Features

* add "tooltip--label" class ([#1202](https://github.com/kalkih/mini-graph-card/issues/1202)) ([0d3c184](0d3c184dc1))
v0.13.0-dev.2
2025-02-15 22:44:32 +00:00
Robson Braga Araujo
1142f259b1 fix: adapt state color to tooltip properties (#1214) 2025-02-15 23:32:29 +01:00
ildar170975
0d3c184dc1 feat: add "tooltip--label" class (#1202) 2025-01-19 14:29:41 +01:00
ildar170975
d708d6a22f fix: hide graph loading indicator when appropriate (#1197) 2025-01-13 01:57:37 +01:00
ildar170975
9f5cfd9c86 fix: legend unit percent w/o whitespace (#1191)
if UoM = "%", then do not use a whitespace as a delimeter.
2025-01-13 00:24:01 +01:00
ildar170975
f5261d92c3 fix: remove unused argument from getBoundary (#1193) 2025-01-02 21:20:55 +01:00
Fabio Critone
54d987568b fix: more intuitive min_bound_range behavior (#1136)
Now if one bound is defined but a soft bound, and there is no other bound defined, it treats it as a bound.

If both are soft bounds then it doesn't care.

And if the other bound is a hard bound, the soft one is breached.
2025-01-02 21:19:16 +01:00
semantic-release-bot
25e6aea952 chore(release): 0.13.0-dev.1 [skip ci]
# [0.13.0-dev.1](https://github.com/kalkih/mini-graph-card/compare/v0.12.2-dev.2...v0.13.0-dev.1) (2024-12-21)

### Bug Fixes

* name and icon color respect attribute choice ([#1131](https://github.com/kalkih/mini-graph-card/issues/1131)) ([cbfba7a](cbfba7a6a4))

### Features

* Add loader ([#1180](https://github.com/kalkih/mini-graph-card/issues/1180)) ([30c5263](30c5263a30))
* add show_legend_state ([#1173](https://github.com/kalkih/mini-graph-card/issues/1173)) ([3b1c827](3b1c82793a))
v0.13.0-dev.1
2024-12-21 00:03:05 +00:00
Julien Deveaux
30c5263a30 feat: Add loader (#1180) 2024-12-21 01:00:50 +01:00
Julien Deveaux
3b1c82793a feat: add show_legend_state (#1173)
---------

Co-authored-by: Leonardo Merza <ljmerza@gmail.com>
2024-12-20 23:06:06 +01:00
akloeckner
cbfba7a6a4 fix: name and icon color respect attribute choice (#1131) 2024-09-05 22:39:37 +02:00
semantic-release-bot
47edf8135a chore(release): 0.12.2-dev.2 [skip ci]
## [0.12.2-dev.2](https://github.com/kalkih/mini-graph-card/compare/v0.12.2-dev.1...v0.12.2-dev.2) (2024-08-07)

### Bug Fixes

* use d3 to interpolate colors ([#1118](https://github.com/kalkih/mini-graph-card/issues/1118)) ([b8676f5](b8676f5571))
v0.12.2-dev.2
2024-08-07 16:45:24 +00:00
akloeckner
b8676f5571 fix: use d3 to interpolate colors (#1118) 2024-08-07 18:43:54 +02:00
dev-docker
c872c02e7d Revert "use d3-interpolate to interpolate color in main.js"
This reverts commit 7e6290b15c.

I erroneously pushed it. Sorry.
2024-07-26 03:45:55 +02:00
dev-docker
7e6290b15c use d3-interpolate to interpolate color in main.js 2024-07-26 03:36:26 +02:00
semantic-release-bot
ca543d5081 chore(release): 0.12.2-dev.1 [skip ci]
## [0.12.2-dev.1](https://github.com/kalkih/mini-graph-card/compare/v0.12.1...v0.12.2-dev.1) (2024-07-24)

### Bug Fixes

* indicator style for the 1st state ([#1105](https://github.com/kalkih/mini-graph-card/issues/1105)) ([c0ad333](c0ad333ee9))
* legend indicators respect entity attribute configuration ([#1115](https://github.com/kalkih/mini-graph-card/issues/1115)) ([5fe01d1](5fe01d15a7))
v0.12.2-dev.1
2024-07-24 22:26:53 +00:00
dependabot[bot]
2b65911429 build(deps): bump amannn/action-semantic-pull-request (#1112)
Bumps the patch-and-minor group with 1 update in the / directory: [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request).


Updates `amannn/action-semantic-pull-request` from 5.4.0 to 5.5.3
- [Release notes](https://github.com/amannn/action-semantic-pull-request/releases)
- [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/main/CHANGELOG.md)
- [Commits](https://github.com/amannn/action-semantic-pull-request/compare/v5.4.0...v5.5.3)

---
updated-dependencies:
- dependency-name: amannn/action-semantic-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: patch-and-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-25 00:22:48 +02:00
Erik J. Olson
5fe01d15a7 fix: legend indicators respect entity attribute configuration (#1115) 2024-07-25 00:21:33 +02:00
ildar170975
c0ad333ee9 fix: indicator style for the 1st state (#1105) 2024-05-16 00:16:23 +02:00
semantic-release-bot
49ca1cd862 chore(release): 0.12.1 [skip ci]
## [0.12.1](https://github.com/kalkih/mini-graph-card/compare/v0.12.0...v0.12.1) (2024-03-20)

### Bug Fixes

* tooltip interval start could be after end ([#1065](https://github.com/kalkih/mini-graph-card/issues/1065)) ([930ee39](930ee39f51)), closes [#181](https://github.com/kalkih/mini-graph-card/issues/181)
v0.12.1
2024-03-20 19:37:13 +00:00
akloeckner
8f7101019e chore: merge dev branch 2024-03-20 20:35:29 +01:00
akloeckner
82377477eb chore: direct dependabot to dev branch and group minor updates (#1071) 2024-02-05 21:03:59 +01:00
dependabot[bot]
629ce76fc3 build(deps): bump actions/cache from 2 to 4 (#1070)
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-29 20:21:48 +01:00
dependabot[bot]
a524c97a2f build(deps): bump actions/checkout from 3 to 4 (#1006)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-28 20:26:47 +01:00
dependabot[bot]
aa5b914ff1 build(deps): bump actions/setup-node from 3 to 4 (#1024)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-28 20:25:24 +01:00
dependabot[bot]
cfa6efe41f build(deps): bump amannn/action-semantic-pull-request (#1028)
Bumps [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) from 5.2.0 to 5.4.0.
- [Release notes](https://github.com/amannn/action-semantic-pull-request/releases)
- [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/main/CHANGELOG.md)
- [Commits](https://github.com/amannn/action-semantic-pull-request/compare/v5.2.0...v5.4.0)

---
updated-dependencies:
- dependency-name: amannn/action-semantic-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-28 20:23:16 +01:00
akloeckner
930ee39f51 fix: tooltip interval start could be after end (#1065)
* basically: use milliseconds in constants rather than fractions of hours
* also remove strange interval size of n_points if hours < 1 and points/hour < 1
* also use 1 minute offset for end only when group_by, because that is cosmetics actually

fixes #181
2024-01-28 17:31:45 +01:00
akloeckner
af3d02e7c6 chore: archive build artefacts for non-dev testers (#1064) 2024-01-28 14:40:11 +01:00
semantic-release-bot
af01df1e2a chore(release): 0.12.0 [skip ci]
# [0.12.0](https://github.com/kalkih/mini-graph-card/compare/v0.11.0...v0.12.0) (2024-01-27)

### Bug Fixes

* add first datapoint tooltip for line graph ([#882](https://github.com/kalkih/mini-graph-card/issues/882)) ([7576fe6](7576fe6460))
* allow zero tooltip ([057a395](057a395ecb)), closes [#805](https://github.com/kalkih/mini-graph-card/issues/805)
* cards would always assume icon_image was set ([#957](https://github.com/kalkih/mini-graph-card/issues/957)) ([f376732](f376732f0a))
* drop out-of-bound coords in reducer ([#881](https://github.com/kalkih/mini-graph-card/issues/881)) ([527f005](527f005c90)), closes [#251](https://github.com/kalkih/mini-graph-card/issues/251)
* retain the last out-of-bounds state ([#961](https://github.com/kalkih/mini-graph-card/issues/961)) ([8ebe173](8ebe173b83)), closes [#881](https://github.com/kalkih/mini-graph-card/issues/881) [#960](https://github.com/kalkih/mini-graph-card/issues/960)
* **documentation:** enquote html color ([dbdeab8](dbdeab86f9)), closes [#872](https://github.com/kalkih/mini-graph-card/issues/872)
* **stalebot:** issues should also use exemptLabels ([4d74c1f](4d74c1f103))
* **workflows:** remove invalid description field ([e755e24](e755e24efe))

### Features

* Add support of attribute tree when available ([#996](https://github.com/kalkih/mini-graph-card/issues/996)) ([9c1c31e](9c1c31eaef))
* pull two years worth of changes into release channel ([f5fb98d](f5fb98d9ab)), closes [#1059](https://github.com/kalkih/mini-graph-card/issues/1059)
* **option:** override icon with an image URL ([#789](https://github.com/kalkih/mini-graph-card/issues/789)) ([2860a09](2860a094e7))
v0.12.0
2024-01-27 18:51:19 +00:00
akloeckner
f5fb98d9ab feat: pull two years worth of changes into release channel
Merge pull request #1059 from kalkih/dev
2024-01-27 19:49:20 +01:00
akloeckner
b474a11f07 chore: add contributing guidelines to the project (#937)
---------

Co-authored-by: Jonas De Kegel <jonas@fluid.desi>
2024-01-27 19:38:49 +01:00
ildar170975
0d26f7cfbb docs(color_thresholds): explain resulting colors (#1058) 2024-01-20 10:32:45 +01:00
Nico Schlömer
0c001eecdd chore: remove executable flag from files which aren't (#1044) 2023-12-18 12:46:16 +01:00
ildar170975
bb03642343 Merge pull request #1001 from ildar170975/test
docs: explaining addressing data in "tree" structures
2023-08-19 21:48:04 +03:00
ildar170975
8cf4f4910a Merge branch 'dev' into test 2023-08-19 04:09:25 +03:00
ildar170975
b754f02a9a Update README.md 2023-08-19 03:56:44 +03:00
ildar170975
d74bb36586 Update README.md 2023-08-19 02:24:55 +03:00