Skip to content

Commit

Permalink
style: Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
wmai committed Sep 25, 2023
1 parent a42c285 commit 38b7ef1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/visualizations/src/components/Chart/datasets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ export default function toDataset(df: DataFrame, s: ChartSeries): ChartDataset {
return {
type: 'scatter',
label: defaultValue(s.label, ''),
data: df.map((entry) => ({ x: entry[defaultValue(s.indexAxis, 'x')], y: entry[defaultValue(s.valueColumn, 'y')] })),
data: df.map((entry) => ({
x: entry[defaultValue(s.indexAxis, 'x')],
y: entry[defaultValue(s.valueColumn, 'y')],
})),
datalabels: chartJsDataLabels(s.dataLabels),
backgroundColor: singleChartJsColor(s.backgroundColor),
pointRadius: defaultValue(s.pointRadius, 5),
Expand Down

0 comments on commit 38b7ef1

Please sign in to comment.