logs
easyCanvas.js
easyCanvas.js is meant to be a small wrapper on top of html5 canvas. Its main benefit is that it exposes the underlying canvas context so you can be creative with your visualizations. It has a few functions for making simple plots, but for a more convenient (but less extensible) solution, check out chart.js.
- DPI adjusts when the window is resized or if CSS changes.
- By setting "xmin", "xmax", "ymin", and "ymax", the coordinate system of your canvas is easily customized.
- Animation is automatic and the screen is cleared between frames.
- Contains functions for creating common types of plots (line,bar,etc.)
- Contains tools which can be enabled for zooming/selection.
Here's an example of a standard line plot along with the code that produced it:
<easy-canvas id="example1"></easy-canvas>
Here's an example of a standard bar plot along with the code that produced it:
<easy-canvas id="example2"></easy-canvas>