web541 is right the data is being converted to json format with
public function pirepcounts()
{
function if you run it with
http://www.yoursite.com/admin/action.php/dashboard/pirepcounts
You will get this result
{ "elements": [ { "type": "line", "values": [ 1 ], "dot-style": { "type": "solid-dot", "dot-size": 3, "halo-size": 1, "colour": "#3D5C56" }, "width": 2, "text": "", "font-size": 10, "colour": "#3D5C56" } ], "title": { "text": "Past 30 days PIREPS" }, "y_axis": { "min": -1, "max": 2, "steps": 1 }, "x_axis": { "labels": { "labels": [ "2015-11-04" ], "rotate": 270 } }, "bg_colour": "#FFFFFF" }
But this is for ofCharts if you are using another charting code you might need to adjust it or make a new function