We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a04e206 commit b861b01Copy full SHA for b861b01
_includes/scripts/vega.liquid
@@ -19,7 +19,7 @@
19
></script>
20
21
<script>
22
- let theme = determineComputedTheme();
+ let pageTheme = determineComputedTheme();
23
24
/* Create vega lite chart as another node and hide the code block, appending the vega lite node after it
25
this is done to enable retrieving the code again when changing theme between light/dark */
@@ -35,7 +35,7 @@
35
backup.after(chartElement);
36
37
/* Embed the visualization in the container */
38
- if (theme === 'dark') {
+ if (pageTheme === 'dark') {
39
vegaEmbed(chartElement, JSON.parse(jsonData), { theme: 'dark' });
40
} else {
41
vegaEmbed(chartElement, JSON.parse(jsonData));
0 commit comments