Skip to content

Commit

Permalink
fix: guess line chart
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib committed Jan 17, 2024
1 parent ec6035c commit 1ab5df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/widgets/useChartData.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function guessChart(dataset, chart_type) {
return {
type: 'Line',
options: {
xAxis: dateColumns[0].label,
xAxis: [{ column: dateColumns[0].label }],
yAxis: numberColumns.map((col) => ({ column: col.label })),
},
}
Expand Down

0 comments on commit 1ab5df3

Please sign in to comment.