feat(plugin-chart-echarts): [feature-parity] support extra control for the area chart V2 (#16493)

* feat(echarts): [feature-parity] support extra control

* add extra control for plugin

* refactor: extract ExtraControl

* fix: lint

* fix some problems
This commit is contained in:
Stephen Liu
2022-06-09 00:59:10 +08:00
committed by GitHub
parent 0238492df7
commit eab0009101
19 changed files with 349 additions and 70 deletions

View File

@@ -190,7 +190,7 @@ export default function transformProps(
areaOpacity: opacity,
seriesType,
showValue,
stack,
stack: Boolean(stack),
yAxisIndex,
filterState,
seriesKey: entry.name,
@@ -207,7 +207,7 @@ export default function transformProps(
areaOpacity: opacityB,
seriesType: seriesTypeB,
showValue: showValueB,
stack: stackB,
stack: Boolean(stackB),
yAxisIndex: yAxisIndexB,
filterState,
seriesKey: primarySeries.has(entry.name as string)

View File

@@ -32,6 +32,7 @@ import {
EchartsLegendFormData,
EchartsTitleFormData,
DEFAULT_TITLE_FORM_DATA,
StackType,
} from '../types';
import {
DEFAULT_FORM_DATA as TIMESERIES_DEFAULTS,
@@ -78,8 +79,8 @@ export type EchartsMixedTimeseriesFormData = QueryFormData & {
seriesTypeB: EchartsTimeseriesSeriesType;
showValue: boolean;
showValueB: boolean;
stack: boolean;
stackB: boolean;
stack: StackType;
stackB: StackType;
yAxisIndex?: number;
yAxisIndexB?: number;
groupby: QueryFormColumn[];