Hello, I got your BarChart to work exactly as you specified, but the 
horizontal axis was a bit interesting. I fixed it by adding an hAxis: 
{minValue: 0} to the options. You can see the result 
here<http://jsfiddle.net/blindmonkey/fWxBF/1/>. 
Let me know if you need more help.

On Thursday, October 11, 2012 7:27:24 AM UTC-4, Ram wrote:
>
>
> I have created a bar Chart in Visulization API with Below coding.*Bar 
> Chart not display hAxis scale.*
>
> *My data columns :*
>  
> "cols":[{"id":"name","label":"Name","pattern":"","type":"string"},{"id":"distance","label":"Distance(Km)","pattern":"","type":"number"}]
>
> *My code :*
>
>
> var myDataTable = new google.visualization.DataTable(newData);
> var rowcount=myDataTable.getNumberOfRows();
> var options1 = {
>    'title':'Travel Distance of Sales Reps(Km)',
>    'width':'100%',
>    'height':rowcount*50,
>    'backgroundColor':'transparent',
>    'chartArea':{left:50,top:50},
>    'colors':['#109618'],
>    'forceIFrame': false,
> };
>  $('#my_chart').empty();
> var finalchart = new 
> google.visualization.BarChart(document.getElementById('my_chart'));
> finalchart.draw(myDataTable , options1);
>
>
> -- 
> BY
>
> R.RAMPRASAD
>
>

-- 
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/-/GF5CzZk_uu8J.
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.

Reply via email to