Hi, what you want isn't to change the view window of your data. That will just cut it off. You want to calculate the actual percentages, generate a DataView or a new DataTable with that data and then your axis ranges should work out. From there, you should just need to change the hAxis format to add a percentage sign and that should be all. If you'd like to share some sample data, I can throw together some code that does this pretty quickly.
On Sat Nov 22 2014 at 7:54:05 PM saKw <[email protected]> wrote: > This is a old post, but i have similar problem, hoping to get some help. > > My chart has hAxis in 0, 1,000,000, 2,000,000...format. I want to change > it to 0, 10, 20 ,...100. > when i use above code i do get hAxis as 0, 10, 10 but the chart doesnt > display correctly, > I have attached both before adding code and after adding code pics. > Not sure why it is happening. > > > Thanks > > On Wednesday, May 21, 2014 11:21:00 AM UTC-4, ma wrote: > >> Dear Andrew, >> >> Thank you very much for your explanation and help. This is great and >> exactly what I was looking for. Many Thanks for your time and help. >> > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to > [email protected]. > Visit this group at > http://groups.google.com/group/google-visualization-api. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
