feat(echarts): Implement stream graph for Echarts Timeseries (#23410)

This commit is contained in:
Kamil Gabryjelski
2023-03-20 12:56:15 +01:00
committed by GitHub
parent a5c31b2426
commit b0d83e8c50
11 changed files with 345 additions and 36 deletions

View File

@@ -32,7 +32,7 @@ import {
import { format, LegendComponentOption, SeriesOption } from 'echarts';
import { sumBy, meanBy, minBy, maxBy, orderBy } from 'lodash';
import {
AreaChartExtraControlsValue,
StackControlsValue,
NULL_STRING,
TIMESERIES_CONSTANTS,
} from '../constants';
@@ -207,7 +207,7 @@ export function extractSeries(
if (isFillNeighborValue) {
value = fillNeighborValue;
} else if (
stack === AreaChartExtraControlsValue.Expand &&
stack === StackControlsValue.Expand &&
totalStackedValues.length > 0
) {
value = ((value || 0) as number) / totalStackedValues[idx];