/plotters-canvas

Plotters HTML5 Canvas-WASM Backend

Primary LanguageRustMIT LicenseMIT

plotters-canvas - The HTML5 canvas backend for Plotters

This is a part of plotters project. For more details, please check the following links:

Testing

This crate needs to be tested in a browser environment. In order to test, you should install wasm-pack first.

cargo install wasm-pack

To run the test case with wasm-pack. You need choose what browser you want to run the test cases. You should also be able to use --chrome or --safari as well.

wasm-pack test --firefox  

Also you should be able to run it headlessly by adding the headless param to the testing command.

wasm-pack test --firefox --headless