-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
color_thresholds render incorectly with logaritmic on #531
Labels
Comments
Please share your config |
Hello Jerome,
This is my current code:
type: 'custom:mini-graph-card'
entities:
- entity: sensor.solar
name: Sunshine
show_graph: false
- entity: sensor.log_lux
aggregate_func: max
show:
name: false
state: true
icon: true
points: false
labels: false
icon_adaptive_color: true
hours_to_show: 48
cache: false
logarithmic: true
smoothing: true
points_per_hour: 3
font_size: 60
font_size_header: 10
align_state: right
color_thresholds:
- value: 4.6
color: '#040d69'
- value: 5.3
color: '#942500'
- value: 6.9
color: '#ebae3f'
- value: 8
color: '#e6f4fc'
- value: 11
color: '#59c3ff'
- value: 60
color: '#040d69'
- value: 200
color: '#942500'
- value: 1000
color: '#ebae3f'
- value: 3000
color: '#e6f4fc'
- value: 60000
color: '#59c3ff'
with the following output (this is desired outcome) - achieved via custom
logarithmic sensor, but not using the logarithmic function of the graph:

if I change it to using the logarithmic function:
type: 'custom:mini-graph-card'
entities:
- entity: sensor.solar
name: Sunshine
logarithmic: true
aggregate_func: max
show:
name: false
state: true
icon: true
points: true
labels: false
icon_adaptive_color: true
hours_to_show: 48
cache: false
logarithmic: true
smoothing: true
points_per_hour: 3
font_size: 60
font_size_header: 10
align_state: right
color_thresholds:
- value: 60
color: '#040d69'
- value: 200
color: '#942500'
- value: 1000
color: '#ebae3f'
- value: 3000
color: '#e6f4fc'
- value: 60000
color: '#59c3ff'
i get the following output:

also the points have correct coloring, the line not:

I hope this helps. all the best.
Richard.
…On Sun, Jan 17, 2021 at 7:14 PM Jérôme W. ***@***.***> wrote:
Please share your config
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#531 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASICBOJO2I2DQDHBMEL4MSLS2MSKDANCNFSM4V3SRM4Q>
.
|
RomRider
added a commit
that referenced
this issue
Jan 19, 2021
RomRider
added a commit
that referenced
this issue
Jan 19, 2021
github-actions bot
pushed a commit
that referenced
this issue
Jan 20, 2021
# [0.11.0-dev.2](v0.11.0-dev.1...v0.11.0-dev.2) (2021-01-20) ### Bug Fixes * display a warning if entity is not available ([#545](#545)) ([38eddd0](38eddd0)), closes [#487](#487) * Fix undefined variable introduced by [#545](#545) ([d566b1b](d566b1b)) * **log:** color_thresholds render incorectly with logaritmic on ([#542](#542)) ([5ab70dc](5ab70dc)), closes [#531](#531) ### Features * **graph:** Add median aggregate function ([#521](#521)) ([e5b3c19](e5b3c19))
🎉 This issue has been resolved in version 0.11.0-dev.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
jlsjonas
pushed a commit
that referenced
this issue
Jan 22, 2022
# [0.11.0-dev.2](v0.11.0-dev.1...v0.11.0-dev.2) (2021-01-20) ### Bug Fixes * display a warning if entity is not available ([#545](#545)) ([38eddd0](38eddd0)), closes [#487](#487) * Fix undefined variable introduced by [#545](#545) ([d566b1b](d566b1b)) * **log:** color_thresholds render incorectly with logaritmic on ([#542](#542)) ([5ab70dc](5ab70dc)), closes [#531](#531) ### Features * **graph:** Add median aggregate function ([#521](#521)) ([e5b3c19](e5b3c19))
github-actions bot
pushed a commit
that referenced
this issue
Jan 22, 2022
# [0.11.0](v0.10.0...v0.11.0) (2022-01-22) ### Bug Fixes * **config:** Remove entity config error [#592](#592) ([#593](#593)) ([53d923a](53d923a)) * display a warning if entity is not available ([#545](#545)) ([a334b84](a334b84)), closes [#487](#487) * Fix undefined variable introduced by [#545](#545) ([9e923f5](9e923f5)) * Support for `fire-dom-event` ([c29f55f](c29f55f)), closes [#563](#563) * **log:** color_thresholds render incorectly with logaritmic on ([#542](#542)) ([b704885](b704885)), closes [#531](#531) * icon will properly follow entity's device_class [[#484](#484)] ([2f9e0a7](2f9e0a7)) * Time would sometime display 24:xx instead of 00:xx [[#536](#536)] ([7c7d921](7c7d921)) ### Features * Interpolate color threshold stops ([#596](#596)) ([3826c0d](3826c0d)) * **attribute:** Retrieve an attribute instead of the state ([#564](#564)) ([708bfde](708bfde)), closes [#411](#411) [#245](#245) [#501](#501) * **graph:** Add median aggregate function ([#521](#521)) ([57219bd](57219bd)) * Format numbers according to selected language [[#495](#495) [#509](#509)] ([5785bd8](5785bd8))
🎉 This issue has been resolved in version 0.11.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
github-actions bot
pushed a commit
to Malow/mini-graph-card
that referenced
this issue
Nov 18, 2023
# 1.0.0 (2023-11-18) ### Bug Fixes * **config:** Remove entity config error [kalkih#592](https://github.com/malow/mini-graph-card/issues/592) ([kalkih#593](https://github.com/malow/mini-graph-card/issues/593)) ([53d923a](53d923a)) * **stalebot:** issues should also use exemptLabels ([4d74c1f](4d74c1f)) * display a warning if entity is not available ([kalkih#545](https://github.com/malow/mini-graph-card/issues/545)) ([a334b84](a334b84)), closes [kalkih#487](https://github.com/malow/mini-graph-card/issues/487) * Fix undefined variable introduced by [kalkih#545](https://github.com/malow/mini-graph-card/issues/545) ([9e923f5](9e923f5)) * Support for `fire-dom-event` ([c29f55f](c29f55f)), closes [kalkih#563](https://github.com/malow/mini-graph-card/issues/563) * **log:** color_thresholds render incorectly with logaritmic on ([kalkih#542](https://github.com/malow/mini-graph-card/issues/542)) ([b704885](b704885)), closes [kalkih#531](https://github.com/malow/mini-graph-card/issues/531) * icon will properly follow entity's device_class [[kalkih#484](https://github.com/malow/mini-graph-card/issues/484)] ([2f9e0a7](2f9e0a7)) * Time would sometime display 24:xx instead of 00:xx [[kalkih#536](https://github.com/malow/mini-graph-card/issues/536)] ([7c7d921](7c7d921)) ### Features * Interpolate color threshold stops ([kalkih#596](https://github.com/malow/mini-graph-card/issues/596)) ([3826c0d](3826c0d)) * **attribute:** Retrieve an attribute instead of the state ([kalkih#564](https://github.com/malow/mini-graph-card/issues/564)) ([708bfde](708bfde)), closes [kalkih#411](https://github.com/malow/mini-graph-card/issues/411) [kalkih#245](https://github.com/malow/mini-graph-card/issues/245) [kalkih#501](https://github.com/malow/mini-graph-card/issues/501) * **graph:** Add median aggregate function ([kalkih#521](https://github.com/malow/mini-graph-card/issues/521)) ([57219bd](57219bd)) * Format numbers according to selected language [[kalkih#495](https://github.com/malow/mini-graph-card/issues/495) [kalkih#509](https://github.com/malow/mini-graph-card/issues/509)] ([5785bd8](5785bd8))
github-actions bot
pushed a commit
to Malow/mini-graph-card
that referenced
this issue
Nov 18, 2023
# 1.0.0 (2023-11-18) ### Bug Fixes * **config:** Remove entity config error [kalkih#592](https://github.com/malow/mini-graph-card/issues/592) ([kalkih#593](https://github.com/malow/mini-graph-card/issues/593)) ([53d923a](53d923a)) * **stalebot:** issues should also use exemptLabels ([4d74c1f](4d74c1f)) * display a warning if entity is not available ([kalkih#545](https://github.com/malow/mini-graph-card/issues/545)) ([a334b84](a334b84)), closes [kalkih#487](https://github.com/malow/mini-graph-card/issues/487) * Fix undefined variable introduced by [kalkih#545](https://github.com/malow/mini-graph-card/issues/545) ([9e923f5](9e923f5)) * Support for `fire-dom-event` ([c29f55f](c29f55f)), closes [kalkih#563](https://github.com/malow/mini-graph-card/issues/563) * **log:** color_thresholds render incorectly with logaritmic on ([kalkih#542](https://github.com/malow/mini-graph-card/issues/542)) ([b704885](b704885)), closes [kalkih#531](https://github.com/malow/mini-graph-card/issues/531) * icon will properly follow entity's device_class [[kalkih#484](https://github.com/malow/mini-graph-card/issues/484)] ([2f9e0a7](2f9e0a7)) * Time would sometime display 24:xx instead of 00:xx [[kalkih#536](https://github.com/malow/mini-graph-card/issues/536)] ([7c7d921](7c7d921)) ### Features * Interpolate color threshold stops ([kalkih#596](https://github.com/malow/mini-graph-card/issues/596)) ([3826c0d](3826c0d)) * **attribute:** Retrieve an attribute instead of the state ([kalkih#564](https://github.com/malow/mini-graph-card/issues/564)) ([708bfde](708bfde)), closes [kalkih#411](https://github.com/malow/mini-graph-card/issues/411) [kalkih#245](https://github.com/malow/mini-graph-card/issues/245) [kalkih#501](https://github.com/malow/mini-graph-card/issues/501) * **graph:** Add median aggregate function ([kalkih#521](https://github.com/malow/mini-graph-card/issues/521)) ([57219bd](57219bd)) * Format numbers according to selected language [[kalkih#495](https://github.com/malow/mini-graph-card/issues/495) [kalkih#509](https://github.com/malow/mini-graph-card/issues/509)] ([5785bd8](5785bd8))
github-actions bot
pushed a commit
to Malow/mini-graph-card
that referenced
this issue
Nov 18, 2023
# 1.0.0 (2023-11-18) ### Bug Fixes * **config:** Remove entity config error [kalkih#592](https://github.com/malow/mini-graph-card/issues/592) ([kalkih#593](https://github.com/malow/mini-graph-card/issues/593)) ([53d923a](53d923a)) * **stalebot:** issues should also use exemptLabels ([4d74c1f](4d74c1f)) * display a warning if entity is not available ([kalkih#545](https://github.com/malow/mini-graph-card/issues/545)) ([a334b84](a334b84)), closes [kalkih#487](https://github.com/malow/mini-graph-card/issues/487) * Fix undefined variable introduced by [kalkih#545](https://github.com/malow/mini-graph-card/issues/545) ([9e923f5](9e923f5)) * Support for `fire-dom-event` ([c29f55f](c29f55f)), closes [kalkih#563](https://github.com/malow/mini-graph-card/issues/563) * **log:** color_thresholds render incorectly with logaritmic on ([kalkih#542](https://github.com/malow/mini-graph-card/issues/542)) ([b704885](b704885)), closes [kalkih#531](https://github.com/malow/mini-graph-card/issues/531) * icon will properly follow entity's device_class [[kalkih#484](https://github.com/malow/mini-graph-card/issues/484)] ([2f9e0a7](2f9e0a7)) * Time would sometime display 24:xx instead of 00:xx [[kalkih#536](https://github.com/malow/mini-graph-card/issues/536)] ([7c7d921](7c7d921)) ### Features * Interpolate color threshold stops ([kalkih#596](https://github.com/malow/mini-graph-card/issues/596)) ([3826c0d](3826c0d)) * **attribute:** Retrieve an attribute instead of the state ([kalkih#564](https://github.com/malow/mini-graph-card/issues/564)) ([708bfde](708bfde)), closes [kalkih#411](https://github.com/malow/mini-graph-card/issues/411) [kalkih#245](https://github.com/malow/mini-graph-card/issues/245) [kalkih#501](https://github.com/malow/mini-graph-card/issues/501) * **graph:** Add median aggregate function ([kalkih#521](https://github.com/malow/mini-graph-card/issues/521)) ([57219bd](57219bd)) * Format numbers according to selected language [[kalkih#495](https://github.com/malow/mini-graph-card/issues/495) [kalkih#509](https://github.com/malow/mini-graph-card/issues/509)] ([5785bd8](5785bd8))
github-actions bot
pushed a commit
to motorlatitude/mini-graph-card
that referenced
this issue
Dec 15, 2024
# 1.0.0 (2024-12-15) ### Bug Fixes * add first datapoint tooltip for line graph ([kalkih#882](https://github.com/motorlatitude/mini-graph-card/issues/882)) ([7576fe6](7576fe6)) * allow zero tooltip ([057a395](057a395)), closes [kalkih#805](https://github.com/motorlatitude/mini-graph-card/issues/805) * cards would always assume icon_image was set ([kalkih#957](https://github.com/motorlatitude/mini-graph-card/issues/957)) ([f376732](f376732)) * display a warning if entity is not available ([kalkih#545](https://github.com/motorlatitude/mini-graph-card/issues/545)) ([a334b84](a334b84)), closes [kalkih#487](https://github.com/motorlatitude/mini-graph-card/issues/487) * drop out-of-bound coords in reducer ([kalkih#881](https://github.com/motorlatitude/mini-graph-card/issues/881)) ([527f005](527f005)), closes [kalkih#251](https://github.com/motorlatitude/mini-graph-card/issues/251) * Fix undefined variable introduced by [kalkih#545](https://github.com/motorlatitude/mini-graph-card/issues/545) ([9e923f5](9e923f5)) * icon will properly follow entity's device_class [[kalkih#484](https://github.com/motorlatitude/mini-graph-card/issues/484)] ([2f9e0a7](2f9e0a7)) * retain the last out-of-bounds state ([kalkih#961](https://github.com/motorlatitude/mini-graph-card/issues/961)) ([8ebe173](8ebe173)), closes [kalkih#881](https://github.com/motorlatitude/mini-graph-card/issues/881) [kalkih#960](https://github.com/motorlatitude/mini-graph-card/issues/960) * Support for `fire-dom-event` ([c29f55f](c29f55f)), closes [kalkih#563](https://github.com/motorlatitude/mini-graph-card/issues/563) * tooltip interval start could be after end ([kalkih#1065](https://github.com/motorlatitude/mini-graph-card/issues/1065)) ([930ee39](930ee39)), closes [kalkih#181](https://github.com/motorlatitude/mini-graph-card/issues/181) * **config:** Remove entity config error [kalkih#592](https://github.com/motorlatitude/mini-graph-card/issues/592) ([kalkih#593](https://github.com/motorlatitude/mini-graph-card/issues/593)) ([53d923a](53d923a)) * **documentation:** enquote html color ([dbdeab8](dbdeab8)), closes [kalkih#872](https://github.com/motorlatitude/mini-graph-card/issues/872) * **log:** color_thresholds render incorectly with logaritmic on ([kalkih#542](https://github.com/motorlatitude/mini-graph-card/issues/542)) ([b704885](b704885)), closes [kalkih#531](https://github.com/motorlatitude/mini-graph-card/issues/531) * **stalebot:** issues should also use exemptLabels ([4d74c1f](4d74c1f)) * **workflows:** remove invalid description field ([e755e24](e755e24)) * Time would sometime display 24:xx instead of 00:xx [[kalkih#536](https://github.com/motorlatitude/mini-graph-card/issues/536)] ([7c7d921](7c7d921)) ### Features * Add support of attribute tree when available ([kalkih#996](https://github.com/motorlatitude/mini-graph-card/issues/996)) ([9c1c31e](9c1c31e)) * Interpolate color threshold stops ([kalkih#596](https://github.com/motorlatitude/mini-graph-card/issues/596)) ([3826c0d](3826c0d)) * pull two years worth of changes into release channel ([f5fb98d](f5fb98d)), closes [kalkih#1059](https://github.com/motorlatitude/mini-graph-card/issues/1059) * **attribute:** Retrieve an attribute instead of the state ([kalkih#564](https://github.com/motorlatitude/mini-graph-card/issues/564)) ([708bfde](708bfde)), closes [kalkih#411](https://github.com/motorlatitude/mini-graph-card/issues/411) [kalkih#245](https://github.com/motorlatitude/mini-graph-card/issues/245) [kalkih#501](https://github.com/motorlatitude/mini-graph-card/issues/501) * **graph:** Add median aggregate function ([kalkih#521](https://github.com/motorlatitude/mini-graph-card/issues/521)) ([57219bd](57219bd)) * **option:** override icon with an image URL ([kalkih#789](https://github.com/motorlatitude/mini-graph-card/issues/789)) ([2860a09](2860a09)) * Format numbers according to selected language [[kalkih#495](https://github.com/motorlatitude/mini-graph-card/issues/495) [kalkih#509](https://github.com/motorlatitude/mini-graph-card/issues/509)] ([5785bd8](5785bd8))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the color thresholds render incorrectly for logaritmic graph. The points color correctly, but the graph line not.
The text was updated successfully, but these errors were encountered: