What steps will reproduce the problem?
1. Go to the playground for bar chart
2. Only have 2 years and only have 1 country with a value of 1 for each year
3. Add a format the the hAxis of format: "#"
What is the expected output? What do you see instead?
A bar chart with a hAxis of 0 to 1. Instead I get a hAxis 0 0 1 1 1
What version of the product are you using? On what operating system?
Im using a mac OSX 10.6.8 with firefox 18
Please provide any additional information below.
Run this in the playground
function drawVisualization() {
// Create and populate the data table.
var data = google.visualization.arrayToDataTable([
['Year', 'Austria', 'Bulgaria', 'Denmark', 'Greece'],
['2003', 0, 0, 1, 0],
['2004', 1, 0, 0, 0]
]);
// Create and draw the visualization.
new google.visualization.BarChart(document.getElementById('visualization')).
draw(data,
{title:"Yearly Coffee Consumption by Country",
width:600, height:400,
vAxis: {title: "Year"},
hAxis: {title: "Cups", format: "#"}}
);
}
Original issue reported on code.google.com by david.ha...@gmail.com on 15 Jan 2013 at 10:29
Original issue reported on code.google.com by
david.ha...@gmail.com
on 15 Jan 2013 at 10:29Attachments: