vizzuhq / vizzu-lib

Library for animated data visualizations and data stories.

Home Page:https://lib.vizzuhq.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSS variable support for styling (via JS API)

simzer opened this issue · comments

use case: easy dark/light mode switch, or themes

const el = document.getElementById("myVizzu");
const styles = window.getComputedStyle(el);
styles.getPropertyValue("--plot-marker-label-position");
// style: { plot: { marker: { label: { position: "whatever"}}}}