diff --git a/packages/visualizations/src/components/Chart/datasets.ts b/packages/visualizations/src/components/Chart/datasets.ts index 38c0f16f..1530ba99 100644 --- a/packages/visualizations/src/components/Chart/datasets.ts +++ b/packages/visualizations/src/components/Chart/datasets.ts @@ -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),