I'm developing a page and in case I need a sequence of graphs that will display certain results, the problem is that one of the charts is relative to the amount of hours and I need to display that amount of hours. In case, these data are coming from a database and I in PHP do the time conversion in Seconds to H: M: S but Highcharts can not display ... I already tried using Format and DateFormat but to no avail. In case what could be done, follow below the code
<script type="text/javascript">
$(function () {
$('#container2').highcharts({
chart: {
type: 'column'
},
title: {
text: 'Tempo Médio de Resposta por Operadora'
},
subtitle: {
text: 'Fonte: <a href="http://sirea.caixa">SIREA</a>'
},
xAxis: {
type: 'category',
labels: {
rotation: -45,
style: {
fontSize: '8px',
fontFamily: 'Verdana, sans-serif'
}
}
},
yAxis: {
min: 0,
title: {
text: 'TMR(Hs)'
}
},
legend: {
enabled: false
},
tooltip: {
pointFormat: 'Incidentes por Operadora: <b>{point.y:.0f}</b>'
},
series: [{
name: 'Incidentes por Operadora',
'colorByPoint': true,
data: [
<?
for ($i=0 ; $i < $totalOpe ; $i++ ) {
echo "['".$OpeX[$i]."','".$TmrX[$i]."'],"; //A variavel TmrX é um vetor das unidades Tratadas de Segundos para H:M:S
}
?>
],
dataLabels: {
enabled: true,
rotation: -90,
color: '#000080',
align: 'right',
format: '{y}', //No caso é aqui que já mudei várias opções de format
y: -28, // 10 pixels down from the top
style: {
fontSize: '10px',
fontFamily: 'Verdana, sans-serif'
}
}
}]
});
});
</script>
In Case, the two variables in question are TmrX [$ i] in PHP and p y in Jquery Highcharts.
What can I do in this case?