Busqueda con estilo

This commit is contained in:
2024-08-20 12:14:08 -03:00
parent e8483662e1
commit 8509a15f68
3 changed files with 31 additions and 30 deletions

View File

@ -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>