>
> no i don't have a error, on image only was a test, i want to show the time
> in HH:MM:SS on the chart, no in seconds.
>
// FUNCION PARA DIBUJAR GOOGLE CHART
function drawTypeChart(object,type_,tipo)
{
var data = new google.visualization.arrayToDataTable(object.arrayData);
switch(type_)
{
case "AreaChart":
var chart = new
google.visualization.LineChart(document.getElementById(object.div));
break;
case "PieChart":
var chart = new
google.visualization.PieChart(document.getElementById(object.div));
break;
case "ColumnChart":
var chart = new
google.visualization.LineChart(document.getElementById(object.div));
break;
case "Gauge":
options ={
redFrom: 0, redTo: 5,
yellowFrom:5, yellowTo: 25,
minorTicks: 5,
max:50
}
chart = new
google.visualization.Gauge(document.getElementById(object.div));
break;
}
switch(tipo)
{
case 1:
options = {
chartArea:{left:"2px",top:"20px",width:"80%"}
,height: 150
, colors: ['#e0440e', '#e6693e', '#ec8f6e', '#f3b49f', '#f6c7b6']
,'is3D':true
,legend:'none'
,dateFormat: 'HH:mm:ss'
}
chart.setAction({
id:'test',
text:'murphy',
action:function(){
// var row = chart.getSelection()[0].row;
// var dato = data.getValue(row, 1);
}
});
break;
default:
options = {
hAxis: {titleTextStyle: {color: '#f2f2f2'}}
,chartArea:{left:"2px",top:"20px",width:"40%"}
,height: 100
};
}
chart.draw(data, options);
};
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.