Busqueda con estilo
This commit is contained in:
@ -52,33 +52,36 @@
|
||||
data = json["data"];
|
||||
console.log(data);
|
||||
data = google.visualization.arrayToDataTable(data);
|
||||
// var options = {
|
||||
// title: "",
|
||||
// animation: {
|
||||
// startup: true,
|
||||
// duration: 1000,
|
||||
// easing: "out",
|
||||
// },
|
||||
// backgroundColor: "#1c212c",
|
||||
// vAxis: {
|
||||
// minValue: 0,
|
||||
// gridlines: { color: "#666" },
|
||||
// minorGridlines: { color: "#1c212c" },
|
||||
// textStyle: { color: "#aaa" },
|
||||
// },
|
||||
// hAxis: {
|
||||
// gridlines: { color: "#666" },
|
||||
// minorGridlines: { color: "#1c212c" },
|
||||
// textStyle: { color: "#aaa" },
|
||||
// },
|
||||
// legend: { position: "bottom", textStyle: { color: "#aaa" } },
|
||||
// };
|
||||
var options = {
|
||||
title: title,
|
||||
titleTextStyle: {
|
||||
color: "#aaa",
|
||||
},
|
||||
animation: {
|
||||
startup: true,
|
||||
duration: 1000,
|
||||
easing: "out",
|
||||
},
|
||||
backgroundColor: "#1c212c",
|
||||
vAxis: {
|
||||
minValue: 0,
|
||||
gridlines: { color: "#666" },
|
||||
minorGridlines: { color: "#1c212c" },
|
||||
textStyle: { color: "#aaa" }
|
||||
},
|
||||
hAxis: {
|
||||
gridlines: { color: "#666" },
|
||||
minorGridlines: { color: "#1c212c" },
|
||||
textStyle: { color: "#aaa" }
|
||||
},
|
||||
legend: { position: 'none'},
|
||||
};
|
||||
|
||||
var chart = new google.visualization.BarChart(
|
||||
document.getElementById("chart")
|
||||
);
|
||||
|
||||
chart.draw(data);
|
||||
chart.draw(data, options);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user