Converted inspect_graph.php into js/flot_graph.js which contains two classes FlotGraph and InspectGraph. InspectGraph is used to implement the current inspection functionality, and FlotGraph provides a reusable graph based on Flot that may be used for graph-engine = flot.
Added a Clear button to the Inspect graph Line/Stack/Clear toolbar. This allows for rrdtool graphs that are a combination of stacks and lines to be rendered correctly. The cleared state is active by default.
Improve performance of the host view by only refreshing graphs visible in the browser viewport. It is planned to make similar changes to other views.
Fixed an issue where series in metric graphs were not labeled using the metric metric name which resulted in them not being correctly rendered when exported to views.