Here's a tutorial and an example:
The Vizzu constructor has to load Vizzu's WebAssembly module asynchronously to prevent blocking the whole page.
Because of this, any method except animate()
will throw an exception while the library is not initialized.
There is an initializing
promise in the Vizzu class, which will resolve when initialization is finished. You can call all methods after
this promise is resolved.
This example reads the data from a CSV: https://lib.vizzuhq.com/0.3.0/content/howtos/csv-input/
You can find the source here; the CSV loading part is in the csv-input.js file: https://github.com/vizzuhq/vizzu-lib-doc/tree/main/docs/0.3.0/content/howtos/csv-input
The maximum number of fraction digits can be set for marker and axis labels with maxFractionDigits style parameter.