Bug fixes for graphing logic.
Returning ChartJS compatible JSON for selection hits.