- Notifications
You must be signed in to change notification settings - Fork17
plotters-rs/plotters-wasm-demo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a minimal project that uses Plotters in WASM application.
For more information about Plotters project, check ourcore repository.
This demo has been deployed at thislink.
To build the demo you needwasm-pack.
Then you can run it locally either usingnpm
andwebpack-dev-server
orjust with static web server.
The following script will install needed software and run the server vianpm
.
./start-server.sh
For Windows users without Bash,start-server.bat
can be used tolaunch the server.
start-server.bat
Please userust-wasm guide for initial setup .Then you can run the demo locally usingnpm
:
wasm-pack buildcd wwwnpm installnpm start
This will start a dev server which will automatically reload your pagewhenever you change anything inwww
directory. To updaterust
codecallwasm-pack build
manually.
If you don't want to usenpm
here's how you can run the exampleusing any web server. We are using rustbasic-http-server, butany web server will do.
# Install web server (instead you can use your local nginx for example)cargo install basic-http-serverwasm-pack build --target web# Note `--target web`basic-http-server
Then openhttp://127.0.0.1:4000/www
About
Plotters + WebAssembly Example
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors10
Uh oh!
There was an error while loading.Please reload this page.