Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Plotters + WebAssembly Example

NotificationsYou must be signed in to change notification settings

plotters-rs/plotters-wasm-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Try this example locally

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

Developing with NPM

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.

Developing without dependenices

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors10


[8]ページ先頭

©2009-2025 Movatter.jp