I'm trying to this,
DonutChart::create(array(
"dataSource" => $this->dataStore($this->reportName),
"columns" => array(
"CLASS",
"SECOND" => array(
'formatValue' => function ($value) {
return $value/3600;
},
"label" => "Avarage time",
"type" => "number",
),
),
"colorScheme" => array(
"#fcb33b",
"#87b25c",
"#48a5a9"
)
));
it doesn't work. I want to casting second to hour-min format.Like this 5 hour 30 minute 25 second. FormatValue doesn't work. Anyone help me ?