Skip to content

Commit 52f85ae

Browse files
authored
fix: custom chart options (#967)
1 parent ec7b338 commit 52f85ae

File tree

1 file changed

+1
-1
lines changed
  • src/unfold/static/unfold/js

1 file changed

+1
-1
lines changed

src/unfold/static/unfold/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ const renderCharts = () => {
306306
new Chart(ctx, {
307307
type: type || "bar",
308308
data: parsedData,
309-
options: options ? parsedOptions : DEFAULT_CHART_OPTIONS,
309+
options: options ? JSON.parse(options) : DEFAULT_CHART_OPTIONS,
310310
})
311311
);
312312
}

0 commit comments

Comments
 (0)