<https://lh3.googleusercontent.com/-_F3cZPnHVDs/WGZxSW_0A4I/AAAAAAAAAEQ/ButBzsHEEx47uMuIM3QgtuQh0Nl6FU3dQCLcB/s1600/charts.png>
Some light on this?
This is the code:
var opciones_riesgo_sensor = {
title: "Ataques de Bajo riesgo detectados por el Sensor:",
legend: {position: "bottom", textStyle: {color: "black", fontSize:
12}},
chartArea: {width: "45%", left: 300},
width: 640,
vAxis: {title: "Ataques", titleTextStyle: {color: "red"}},
fontName: "Arial",
fontSize: 10,
bar: {groupWidth: "90%"},
backgroundColor: "#f8fbfc"
};
var arr = [["", "Detectados", "Bloqueados"], [...]];
var data = google.visualization.arrayToDataTable(arr);
var view = new google.visualization.DataView(data);
view.setColumns([0, 1,{
calc: "stringify",
sourceColumn: 1,
type: "string",
role: "annotation"
},
2,
{
calc: "stringify",
sourceColumn: 2,
type: "string",
role: "annotation"
}]);
var chart = new google.visualization.BarChart(document.
getElementById("[...]"));
opciones_riesgo_sensor.title = "Ataques de Bajo riesgo detectados
por el [...]";
opciones_riesgo_sensor.height = 100 + 28 * (arr.length - 1);
chart.draw(view, opciones_riesgo_sensor);
});
Thanks
--
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/c447c8b6-b09e-4e80-a578-79ee34693f0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.