Skip to content

Commit

Permalink
Add support for Segment's (#16)
Browse files Browse the repository at this point in the history
* Support segments, fn helper

* Append wasm

* Fix example, update serde
 * Fix usage of to_chart() in example
 * Move chart_four() into show_line()
 * Migrate from <Chart>.into_serde to serde_wasm_bindgen::from_value(<Chart>)

* Annot fns, add serde flags

* Bump deps

* Fmt
  • Loading branch information
tascord authored Feb 5, 2024
1 parent b16ed95 commit 28cfa0c
Show file tree
Hide file tree
Showing 11 changed files with 429 additions and 71 deletions.
28 changes: 21 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ homepage = "https://github.com/Billy-Sheppard/chart-js-rs"

[dependencies]
serde = { version = "1.0.189", features = ["derive"] }
wasm-bindgen = { version = "0.2.87" }
wasm-bindgen = { version = "0.2.87", features = ["serde-serialize"] }
gloo-utils = { version = "0.2", features = ["serde"] }
gloo-console = { version = "0.3" }
serde-wasm-bindgen = "0.4"
serde_json = "1"
thiserror = "1"
js-sys = "0.3.64"
Expand Down
Loading

0 comments on commit 28cfa0c

Please sign in to comment.