Open Zakraket opened 1 year ago
You mind showing me a case like this? π€
Sure, see the same graph, values near or around zero; the exact value is hard to read, but the bargraph at least shows better that the value is at least above zero than the linegraph.
With a fillcolor it's better because the fill is upsidedown when below zero
On Homey insights it's worse, because they "fill" the whole graph like it's above zero
Just a thicker or lighter line on the zero-value would make it beteter I think
Hope this explains
As the graph is generated by Chart.JS, I'm not sure if this is something I can do anything with. And I'm unsure how this should be handled, as with your graphs the range is from -2000 to +2000, which could have a thick line for 0. But for a temperature sensor measuring indoor temperature the range would typically be 10 to 40 degrees. How should the line be handled then?
In that case no line would be fine imo
But if itβs too difficult or too much work there are maybe easier wins π the fact that these graphs invert the fill (unlike on Homey insights) makes it better at least
Van: Marcus @.> Verzonden: donderdag 5 oktober 2023 14:08 Aan: skogsaas/homey.dashboards @.> CC: Zakraket @.>; Author @.> Onderwerp: Re: [skogsaas/homey.dashboards] INsights: zeroline in line graph (Issue #76)
As the graph is generated by Chart.JS, I'm not sure if this is something I can do anything with. And I'm unsure how this should be handled, as with your graphs the range is from -2000 to +2000, which could have a thick line for 0. But for a temperature sensor measuring indoor temperature the range would typically be 10 to 40 degrees. How should the line be handled then?
β Reply to this email directly, view it on GitHubhttps://github.com/skogsaas/homey.dashboards/issues/76#issuecomment-1748753674, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ5W2RWJZYA4S4Z4OZLI7D3X52PJHAVCNFSM6AAAAAA5T4KVKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBYG42TGNRXGQ. You are receiving this because you authored the thread.Message ID: @.**@.>>
In a line graph (insights) it's difficult to see if the line is above or below zero when no background color is used. In a bar-graph this is very visible
Maybe add a (darkgrey?) line for zero?