grafana / piechart-panel

Pie Chart Panel Plugin
MIT License
151 stars 101 forks source link

Meaning of "General -> Value -> Total" #203

Open henfri opened 4 years ago

henfri commented 4 years ago

Hello,

thanks for the piechart panel. I find it really useful. I could not find the documentation of "General -> Value -> Total" Is this the Integral over Time of the selected Time-Range? What happens in case of gaps? Is then fill() used?

Regards, Hendrik

briangann commented 4 years ago

the default is to ignore nulls (the option is called "connected", and is currently hardcoded in the plugin.

so if there are gap in the series, or there are nulls anywhere, they are skipped/ignored and do not influence total or average.

if you are interested in how these values are calculated you can take a look at the code here: https://github.com/grafana/grafana/blob/master/public/app/core/time_series2.ts#L249

we should add a fillstyle option for "connected" and "null as zero" similar to singlestat.