Log inGet started
Package

charts.module

Newest version

README.md

charts

The entry point of chartKit. Charts.<kind>(spec) returns a ready UI node (a styled card: title and subtitle, the chart as an svg widget with a hover and tap readout over it, a legend) for each of the fourteen kinds (line, area, stacked, histogram, bar, ring, flame, sparkline, overlay, diffBars, heatStrip, gantt, statTile, treemap), and Charts.svg.<kind>(spec) returns the raw (markup, width, height). Charts.setStyle(name) switches the art style of every chart in the world with one call, Charts.onStyleChanged(fn) tells you when to rebuild screens already shown, Charts.onCallback(id, data) lets a component pass chart readout taps on, Charts.worldPanel(opts) puts a chart on a panel standing in the 3D world, and Charts.theme, Charts.styles, Charts.legend, Charts.folded, Charts.decimate, Charts.binValues, Charts.readout and Charts.gallery round out the surface. Require it from any component, module or scene script that builds UI.