Skip to content

Commit

Permalink
fix(plugin-chart-echarts): fix legend margin in radar and ts chart (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenLYZ authored and zhaoyongjie committed Nov 24, 2021
1 parent 69808c2 commit e93873f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {
import { DEFAULT_LEGEND_FORM_DATA } from '../types';
import {
extractGroupbyLabel,
getChartPadding,
getColtypesMapping,
getLegendProps,
} from '../utils/series';
Expand Down Expand Up @@ -82,6 +83,7 @@ export default function transformProps(
labelPosition,
legendOrientation,
legendType,
legendMargin,
metrics = [],
numberFormat,
dateFormat,
Expand Down Expand Up @@ -201,6 +203,7 @@ export default function transformProps(
const series: RadarSeriesOption[] = [
{
type: 'radar',
...getChartPadding(showLegend, legendOrientation, legendMargin),
animation: false,
emphasis: {
label: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default function transformProps(
forecastEnabled,
legendOrientation,
legendType,
legendMargin,
logAxis,
markerEnabled,
markerSize,
Expand Down Expand Up @@ -245,7 +246,7 @@ export default function transformProps(
legendOrientation,
addYAxisLabelOffset,
zoomable,
null,
legendMargin,
addXAxisLabelOffset,
yAxisTitlePosition,
yAxisTitleMargin,
Expand Down

0 comments on commit e93873f

Please sign in to comment.