Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie committed Mar 29, 2021
1 parent 1ac3fe5 commit 2cb879c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions plugins/plugin-chart-echarts/src/Radar/transformProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ export default function transformProps(
showLabels,
showLegend,
isCircle,
}: EchartsRadarFormData = { ...DEFAULT_LEGEND_FORM_DATA, ...DEFAULT_RADAR_FORM_DATA, ...formData };
}: EchartsRadarFormData = {
...DEFAULT_LEGEND_FORM_DATA,
...DEFAULT_RADAR_FORM_DATA,
...formData,
};
const { setDataMask = () => {} } = hooks;

const colorFn = CategoricalColorNamespace.getScale(colorScheme as string);
Expand All @@ -94,8 +98,8 @@ export default function transformProps(

const metricsLabel = metrics.map(metric => getMetricLabel(metric));

let columnsLabelMap = new Map<string, DataRecordValue[]>();
let transformedData: RadarSeriesDataItemOption[] = [];
const columnsLabelMap = new Map<string, DataRecordValue[]>();
const transformedData: RadarSeriesDataItemOption[] = [];
data.forEach(datum => {
const joinedName = extractGroupbyLabel({
datum,
Expand All @@ -118,8 +122,8 @@ export default function transformProps(
position: labelPosition,
formatter,
},
} as RadarSeriesDataItemOption)
})
} as RadarSeriesDataItemOption);
});

const selectedValues = (ownCurrentState.selectedValues || []).reduce(
(acc: Record<string, number>, selectedValue: string) => {
Expand Down

0 comments on commit 2cb879c

Please sign in to comment.