Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 882 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 882 Bytes

chart.window.js

Preview window plugin for Chart.js v2.

Currently works but still in development. Feedback welcome.

Combines with the Pan and Zoom plugin to allow 2 charts to be linked together, with one showing the entire data range while the other shows a detailed "window" on a shorter time range.

Clicking on the preview chart will move the position of the window.

Known Issues

  • Only handle panning the time axis, not zoom - the "window" view is always 100% height
  • Only handles simple charts with 1 x and y axis.
  • Only handles time-based graphs
  • Window indicator style is currently not configurable
  • Window indicator jumps instantly instead of scrolling

To Do

  • Fix known issues
  • Link series hiding (so hiding a series on the window chart also hides it on the preview chart)