chart-js-rs 0.1.7

Chart JS API for Rust WebAssembly
Documentation
1
2
3
4
5
6
7
8
9
10
use wasm_bindgen::{prelude::wasm_bindgen, JsValue};

#[wasm_bindgen(module = "/js/exports.js")]
extern "C" {
    pub fn get_chart(id: &str) -> JsValue;

    pub fn render_chart(v: JsValue, id: &str, mutate: bool, plugins: String, defaults: String);

    pub fn update_chart(updated: JsValue, id: &str, animate: bool) -> bool;
}