jneilliii / OctoPrint-TPLinkSmartplug

105 stars 57 forks source link

[Feature Request]: Toggle between total KWH and cost rather than showing both on same scaled graph #350

Open puterboy opened 9 months ago

puterboy commented 9 months ago

Over time if KWH and cost are not the same scale (say cost is $0.20 KWH) then the magnitude difference between the two traces continues to increase linearly making it difficult to see short term changes in energy use.

For example. if:

A way to solve this would be to only display a single trace and add a toggle between them -- this is OK since they basically say the same thing -- i.e. they are parallel lines differing only by the scale parameter $/KWH

puterboy commented 9 months ago

Even better/easier since assuming constant cost (which I think is all you allow), the curves differ only in scale. So, why not just have a single curve with different Right and Left hand axis scales -- say left in KWH and right in $.