fetzerch / grafana-sunandmoon-datasource

SunAndMoon is a datasource plugin for Grafana that calculates the position of Sun and Moon as well as the Moon illumination. ☀️🌙🧛‍♂️
MIT License
41 stars 8 forks source link

Option to not show negative altitude values #54

Open YAMLcase opened 1 year ago

YAMLcase commented 1 year ago

I would like an option to not show negative degrees for altitude values. I know I can set the min to zero, however on a dual axis with an inverted graph the zero's don't line up putting the sun line on the bottom instead of above the middle.

I want this, but no visuals below zero: image

This is not right because the sun is not in the middle: image

YAMLcase commented 1 year ago

this is the closes I can get it fiddling with the threshold color scheme knobs. I have to turn off the legend though as it shows as black for the sun and moon

image

fetzerch commented 1 year ago

Have you tried playing with the transformations? Would sth like this do the trick?

grafik

YAMLcase commented 1 year ago

Have you tried playing with the transformations? Would sth like this do the trick?

I tried my best to use filter data by value but only discovered I don't know what I'm doing there. No matter what Everything was being considered by the filter (including the green and blue charts)

fetzerch commented 1 year ago

You're right, this affects all queries.