Skip to content
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

Colors don't render in history.html when min/max values are equal #21

Closed
ghost opened this issue Jan 2, 2016 · 2 comments
Closed

Colors don't render in history.html when min/max values are equal #21

ghost opened this issue Jan 2, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 2, 2016

When setting up colors for history.html in skin.conf, if the min and max values are the same, colors to not render. If you offset the values, colors work.

works

minvalues = -10, 0, 10, 20, 30, 40, 50, 60, 70, 80, 90
maxvalues = 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100

colours =  "#0000ff", "#1933E1", "#3266C8", "#4B99AF", "#64CC96", "#7Dff7D", "#96CC64", "#AF9948", "#C86632", "#E13319", "#FF0000"

does not work

minvalues = 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100
maxvalues = 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100

colours =  "#0000ff", "#1933E1", "#3266C8", "#4B99AF", "#64CC96", "#7Dff7D", "#96CC64", "#AF9948", "#C86632", "#E13319", "#FF0000"
@ghost ghost changed the title Colors don't render in stats.html when min/max values are equal Colors don't render in history.html when min/max values are equal Jan 2, 2016
@brewster76
Copy link
Owner

Hi there,

What is your reason for this feature request?
If implemented it means a value of 10.0 would be shown as #1933E1, but 9.9 or 10.1 will not be assigned a colour.

@ghost
Copy link
Author

ghost commented Jan 2, 2016

First, let me state that I am new to weewx and trying to figure things out.

I am trying to heat map various historical data. But now that I see your response it makes sense now. I was thinking if minvalues = 0, 10 had a temp of 9.9 it would show #0000ff". But if the min and max values are equal, I can see where they would not display any colors.

Thanks for your skin and work on this.

@ghost ghost closed this as completed Jan 2, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant