I spent hours to find answer for this question......
I have simple line graph (xy style):
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('number', 'Y');
data.addColumn('number', 'X');
data.addRows(6);
data.setCell(0, 0, 0);
data.setCell(0, 0, 1);
data.setCell(1, 0, 2);
data.setCell(1, 1, 2);
data.setCell(2, 0, 3);
data.setCell(2, 1, 3);
data.setCell(3, 0, 4);
data.setCell(3, 1, 4);
data.setCell(4, 0, 5);
data.setCell(4, 1, 5);
data.setCell(5, 0, 6);
data.setCell(5, 1, 6);
var options = {
title: 'Title'
};
var table = new
google.visualization.LineChart(document.getElementById('chart_div'));
table.draw(data, options);
Well, labels under X-Axis is the actual numbers! I would to know how can I
set my customs labels under X-Axis(example: Zero, One, Two, Four, but not
0, 1, 2, 4 ,5). By words, but not by arabic numbers. I hope someone will
help me.
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/gTUpU6s_JpIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.