Skip to content
Git import of Alastair Tse's chart and graph plotting library for Javascript
JavaScript Python
Find file
New pull request
Latest commit 82db96d Martin Kleppmann Implemented clipping to the yAxis range
If a yAxis range is specified as an option, and the data values went
beyond that range, PlotKit previously bounded the points to the yAxis
range, meaning the gradients of the lines before and after that point
were wrong. I have now implemented a proper clipping algorithm which
adds additional points if necessary, representing a cut-off/flattened



PlotKit is a Chart and Graph Plotting Library for Javascript. It has support for HTML Canvas and also SVG via Adobe SVG Viewer and native browser support.

PlotKit is fully documented and there is a quick tutorial to get you started.

PlotKit is a complete rewrite of CanvasGraph. It is better structured and supported.


  • MochiKit 1.3 or higher
  • HTML Canvas: Safari 2+, Opera 9+, Firefox 1.5+, IE 6 (in emulated mode)
  • SVG: Opera 9+, Firefox 1.5+ (see note), IE6 with Adobe SVG.

Note: Firefox 1.5+ on Linux and Windows is supported. Firefox 1.5+ on Mac does not draw labels in SVG, so you must set axisLabelUseDiv to true if you want to have maximum compatibility.


  • PlotKit is copyright (c) 2006 Alastair Tse. Licensed under the BSD License.
  • excanvas.js is copyright (c) 2006 Google Inc. Licensed under the Apache License.






PlotKit was created by Alastair Tse - and extended by Martin Kleppmann

Something went wrong with that request. Please try again.