Skip to content

Commit

Permalink
fix: custom chart options (#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav authored Jan 15, 2025
1 parent ec7b338 commit 52f85ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unfold/static/unfold/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ const renderCharts = () => {
new Chart(ctx, {
type: type || "bar",
data: parsedData,
options: options ? parsedOptions : DEFAULT_CHART_OPTIONS,
options: options ? JSON.parse(options) : DEFAULT_CHART_OPTIONS,
})
);
}
Expand Down

0 comments on commit 52f85ae

Please sign in to comment.