Closed rumbin closed 5 months ago
Hey, this seems to be cause by the fillMode working in a strange way. This seems to fix this issue:
if tsSchema.Type == data.TimeSeriesTypeLong {
- fillMode := &data.FillMissing{Mode: mapFillMode(queryConfig.FillMode), Value: queryConfig.FillValue}
- frame, err = data.LongToWide(frame, fillMode)
+ frame, err = data.LongToWide(frame, nil)
Severity
This is pretty severe, since the chart is lying.
Description
In a time series chart on a table in long/narrow format (EAV, entity-attribute-value), the pivoting operation on the attribute/label column results in the values of previous data points to be forward-filled if there is no data present for the given attribute/label.
How to reproduce
Minimal example:
Create a time series chart out of this query. In the following screenshot I am using
${__field.labels.LABEL}
as the Display name formatter:Table view:
Expected behavior
Only the data points of the query must be present in the table view and in the time series chart. Null values are respected.