Skip to content


To show a Vizzu chart create a placeholder element that will contain the rendered chart.

  <div id="myVizzu" style="width:800px; height:480px;">

Create a new object instance of the Vizzu class, add it to a variable, initialize the library, and then you can start setting up the first chart by calling the animate method.

import Vizzu from '';

let chart = new Vizzu('myVizzu')

    chart => chart.animate({
        /* ... */

Working with bundlers & frameworks

The published Vizzu package contains a JavaScript (vizzu.min.js) and a WebAssembly (cvizzu.wasm) module. By default, the JavaScript module tries to load the wasm module from the same path it was imported from.

This behavior won't work with bundlers if they move the wasm file to a different folder. To handle this issue, you can manually set the wasm module's location.

    wasmUrl: "/path/to/cvizzu.wasm"


You should set this path before the Vizzu constructor is called because it loads the wasm module.

Different bundlers will need additional, specific settings to recognize the wasm file as a dependency and handle it correctly. For setting up Vizzu with a specific bundler or framework, check the corresponding how-to/example below: