From 52f85aebb2bd875da1614ba9947c0e551b0a6ccd Mon Sep 17 00:00:00 2001 From: Lukas Vinclav Date: Wed, 15 Jan 2025 15:09:13 +0100 Subject: [PATCH] fix: custom chart options (#967) --- src/unfold/static/unfold/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unfold/static/unfold/js/app.js b/src/unfold/static/unfold/js/app.js index f66eea5d..491d777e 100644 --- a/src/unfold/static/unfold/js/app.js +++ b/src/unfold/static/unfold/js/app.js @@ -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, }) ); }