1 unstable release

0.1.0-alpha Oct 31, 2024

#160 in Visualization

MIT license

13KB
196 lines

This is functionality for a heatmap data visualisation in Rust WebAssembly calling d3.js

D3.js (D3 short for data-driven documents) is a Javascript library for dynamic, interactive data viz in browsers. At the moment the heatmap data is coded into the Rust lib.rs as an example, so it is currently working with fixed data and a rusty colour scheme

To install, you can build with wasm-pack 📦✨

wasm-pack build --target web

And serve it locally, for example with:

http-server .

Installation You can install http-server via brew on MacOSX or with npm


lib.rs:

A Heatmap in Rust web assembly calling d3.js

You will need to use wasm-pack to build instead of cargo wasm-pack build --target web And some way of serving locally http-server . It requires the index.html in the static directory Currently working with fixed data and a rusty colour theme

Dependencies

~9–11MB
~200K SLoC