Display aggregation value like Median in the legend of a time series visual

All of the aggregation statistics work well (count, min, max, etc.) except for the median. It seems there’s a bug to display the median of the values that I am displaying on the time series visual? Or I am doing anything wrong?

Provide raw data and result for them in the a Grafana, pls

Hi @jangaraj what do you mean?

Reproducible example:

e.g. I have raw data (input): 1,2,3,4,5 and Grafana shows that for this input is median value 2, which is wrong. Correct value should be 3 because:

    Arrange the numbers in order: 1, 2, 3, 4, 5
    The median is the middle value.
    Since there are 5 numbers (odd count), the middle one is the third number: 3.

You didn’t provide any proof, so nobody is able to tell if you are wrong (maybe you are mixing mean/median) or Grafana is wrong.