Skip to content

Commit

Permalink
fix(plugin-chart-echarts): [time-series][mixed timeseries] marker con…
Browse files Browse the repository at this point in the history
…trol does not work (apache#1187)

* fix(plugin-chart-echarts): fix marker option is not work

* fix(plugin-chart-echarts): lint
  • Loading branch information
stephenLYZ authored and zhaoyongjie committed Nov 17, 2021
1 parent c296f92 commit e32452f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ export default function transformProps(chartProps: ChartProps): EchartsProps {
opacity,
seriesType,
stack,
richTooltip,
yAxisIndex,
});
if (transformedSeries) series.push(transformedSeries);
Expand All @@ -142,7 +141,6 @@ export default function transformProps(chartProps: ChartProps): EchartsProps {
opacity: opacityB,
seriesType: seriesTypeB,
stack: stackB,
richTooltip,
yAxisIndex: yAxisIndexB,
});
if (transformedSeries) series.push(transformedSeries);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ export default function transformProps(chartProps: ChartProps): EchartsProps {
opacity,
seriesType,
stack,
richTooltip,
});
if (transformedSeries) series.push(transformedSeries);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export function transformSeries(
opacity?: number;
seriesType?: EchartsTimeseriesSeriesType;
stack?: boolean;
richTooltip?: boolean;
yAxisIndex?: number;
},
): SeriesOption | undefined {
Expand All @@ -83,7 +82,6 @@ export function transformSeries(
opacity,
seriesType,
stack,
richTooltip,
yAxisIndex = 0,
} = opts;
const forecastSeries = extractForecastSeriesContext(name || '');
Expand Down Expand Up @@ -136,10 +134,7 @@ export function transformSeries(
},
showSymbol:
!isConfidenceBand &&
(plotType === 'scatter' ||
(forecastEnabled && isObservation) ||
markerEnabled ||
!richTooltip), // TODO: forcing markers when richTooltip is enabled will be removed once ECharts supports item based tooltips without markers
(plotType === 'scatter' || (forecastEnabled && isObservation) || markerEnabled),
symbolSize: markerSize,
};
}
Expand Down

0 comments on commit e32452f

Please sign in to comment.