SEED-platform / seed

Standard Energy Efficiency Data (SEED) Platform™ is a web-based application that helps organizations easily manage data on the energy performance of large groups of buildings.
Other
111 stars 55 forks source link

Add zoom/pan capability to report charting, add reset zoom buttons #4872

Closed crutan closed 3 weeks ago

crutan commented 3 weeks ago

What's this PR do?

Charts.js already has a zoom plugin, it merely isn't enabled. I've added the capability to the default reports (mouse wheel or pinch gesture) , as well as the ability to click and pan the chart around. A reset zoom button beneath each chart will put the chart back to its initial state.

How should this be manually tested?

Look at some reports, zoom those charts

What are the relevant tickets?

4797

Screenshots (if appropriate)

The left hand report is zoomed in: image