feat(explore): Add time shift color control to ECharts (#29897)

This commit is contained in:
Ross Mabbett
2024-09-12 12:42:00 -04:00
committed by GitHub
parent ff3b86b5ff
commit c5594f2979
14 changed files with 134 additions and 5 deletions

View File

@@ -299,6 +299,7 @@ const config: ControlPanelConfig = {
expanded: true,
controlSetRows: [
['color_scheme'],
['time_shift_color'],
...createCustomizeSection(t('Query A'), ''),
...createCustomizeSection(t('Query B'), 'B'),
[

View File

@@ -151,6 +151,7 @@ export default function transformProps(
areaB,
annotationLayers,
colorScheme,
timeShiftColor,
contributionMode,
legendOrientation,
legendType,
@@ -406,6 +407,7 @@ export default function transformProps(
showValueIndexes: showValueIndexesA,
totalStackedValues,
thresholdValues,
timeShiftColor,
},
);
if (transformedSeries) series.push(transformedSeries);
@@ -455,6 +457,7 @@ export default function transformProps(
showValueIndexes: showValueIndexesB,
totalStackedValues: totalStackedValuesB,
thresholdValues: thresholdValuesB,
timeShiftColor,
},
);
if (transformedSeries) series.push(transformedSeries);