Thank You asgallant. Now hAxis scale displayed properly after removing height formula (rowcount * 50).
On Fri, Oct 12, 2012 at 11:18 AM, asgallant <[email protected]>wrote: > With only 3 rows of data, your height formula (rowcount * 50) doesn't give > the chart enough height to include the axis labels. > > > On Friday, October 12, 2012 12:07:49 AM UTC-4, Ram wrote: > >> I attached screenshot of my Chart. It not displays hAxis Scale units. >> >> On Thu, Oct 11, 2012 at 9:37 PM, asgallant <[email protected]>wrote: >> >>> Do you mean you want units on the axis, like this: http://jsfiddle.net/* >>> *asgallant/fWxBF/2/ <http://jsfiddle.net/asgallant/fWxBF/2/>? >>> >>> >>> On Thursday, October 11, 2012 11:16:49 AM UTC-4, Ram wrote: >>> >>>> Hi, >>>> This was not worked for me.Also before adding hAxis: {minValue: 0}, >>>> the hAxis scale was not display for me. But for your case,it displayed >>>> and shows some different scale.So my problem is,how to display scale in >>>> hAxis? >>>> >>>> >>>> On Thu, Oct 11, 2012 at 7:22 PM, Sergey <[email protected]> wrote: >>>> >>>>> 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":"**s****tring"},{"id":"distance","**labe* >>>>>> ***l":"Distance(Km)","**pattern":""****,"type":"number"}] >>>>>> >>>>>> *My code :* >>>>>> >>>>>> >>>>>> var myDataTable = new google.visualization.**DataTable****(newData); >>>>>> var rowcount=myDataTable.**getNumber****OfRows(); >>>>>> 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_**ch****art')); >>>>>> 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/* >>>>> *ms**g/google-visualization-api/-**/**GF5CzZk_uu8J<https://groups.google.com/d/msg/google-visualization-api/-/GF5CzZk_uu8J> >>>>> . >>>>> To post to this group, send email to google-visua...@**googlegroups.* >>>>> *com. >>>>> >>>>> To unsubscribe from this group, send email to >>>>> google-visualization-api+**unsub**[email protected]. >>>>> For more options, visit this group at http://groups.google.com/**group >>>>> **/google-visualization-**api?hl=**en<http://groups.google.com/group/google-visualization-api?hl=en> >>>>> . >>>>> >>>> >>>> >>>> >>>> -- >>>> 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/-**/0qFjAFuRQfIJ<https://groups.google.com/d/msg/google-visualization-api/-/0qFjAFuRQfIJ> >>> . >>> >>> To post to this group, send email to google-visua...@**googlegroups.com. >>> To unsubscribe from this group, send email to google-visualization-api+* >>> *[email protected]. >>> For more options, visit this group at http://groups.google.com/** >>> group/google-visualization-**api?hl=en<http://groups.google.com/group/google-visualization-api?hl=en> >>> . >>> >> >> >> >> -- >> 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/-/E5tZyygjcNYJ. > > 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. > -- BY R.RAMPRASAD -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. 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.
