Vote count:
0
I wonder if there is an option to set which column should be treated as an x-axes data. Looking at all the examples here:
For example, the "Year" is the x-axes data, but I'd like to change it to "Visitations".
var data = google.visualization.arrayToDataTable([
['Year', 'Visitations', { role: 'style' } ],
['2010', 10, 'color: gray'],
['2010', 14, 'color: #76A7FA'],
['2020', 16, 'opacity: 0.2'],
['2040', 22, 'stroke-color: #703593; stroke-width: 4; fill-color: #C5A5CF'],
['2040', 28, 'stroke-color: #871B47; stroke-opacity: 0.6; stroke-width: 8; fill-color: #BC5679; fill-opacity: 0.2']
]);
In all the examples the first column is always used for data for x-axes. Does anybody know if there is a way change it or I have to reorder the data in js?
asked 5 mins ago
Choose x-axes data in Google Charts
Aucun commentaire:
Enregistrer un commentaire