vaxis labels formatting in 1.1 version

39 views
Skip to first unread message

Lokesh Setia

unread,
Jan 3, 2012, 5:59:51 AM1/3/12
to google-visua...@googlegroups.com
Hi,  I am using the Google Charts library.  Since a few days, I noticed that in my graphs, the v-axis grid labels have become truncated to integers... while the data in there is float.

So, if the y-values are between 0 and 0.1, all the grid labels are 0, instead of being 0, 0.05 and 0.1.  Switching to 1.0 instead of 1.1 solves this problem.

Do I need to do something additional or is this a bug in the development version of google charts that will be resolved?

thanks,
Lokesh

visigoth

unread,
Jan 3, 2012, 6:24:29 AM1/3/12
to google-visua...@googlegroups.com
Thank you very much for reporting this regression, Lokesh.

Can you please post an example page demonstrating the problem?
I am trying to reproduce the problem with Y values in range [0,0.1] but to no avail.

Thanks,
Visigoth
Message has been deleted
Message has been deleted

knight

unread,
Jan 3, 2012, 11:51:54 AM1/3/12
to Google Visualization API
Here is the link:

with v1.0: http://pastehtml.com/view/bjiaf3ipy.html

with v1.1: http://pastehtml.com/view/bjiakcck6.html

Thanks,
Lokesh

Visigoth

unread,
Jan 4, 2012, 9:36:16 AM1/4/12
to google-visua...@googlegroups.com
Thanks for the sample.
BTW, the links also work and are very useful.

The bug seems to be in ChartWrapper. Without it the problem does not reproduce.
Could you please verify this is indeed the case for you as well?

We will push a fixed RC to 1.1 soon.
This bug is a release blocker and will not be pushed to 1.0, so in the meantime please feel free to continue using it.

Thanks again for reporting this.

On Tue, Jan 3, 2012 at 7:10 PM, knight <lokesh...@gmail.com> wrote:
Hi Visigoth,

I tried posting the sample file by hosting it on pastehtml.com, but the posts won't become visible in google groups (anti-spam?)

Anyway... a screenshot of the bug is attached.

Here is a sample code  which you can use to reproduce (please use v1.1 of library).

thanks,
Lokesh

 data = google.visualization.arrayToDataTable([
['Date', 'V1', 'V2', 'V3']
,['2011-11-21' ,   0.96, 0.0517, 0.70]
,['2011-11-22' ,   0.94, 0.0632, 0.70]
,['2011-11-23' ,   0.91, 0.0627, 0.65]
,['2011-11-24' ,   0.94, 0.0660, 0.62]
,['2011-11-25' ,   0.97, 0.0755, 0.65]
,['2011-11-26' ,   0.91, 0.0702, 0.62]
,['2011-11-27' ,   0.81, 0.0745, 0.58]
]);

        var chart = new google.visualization.ChartWrapper({
          'chartType': 'ComboChart',
          'containerId': 'visualization',
          'options': {
            'width': 540,
   'height': 280,
   'colors': ['#21376f', '#8ec742', '#00aa95'],
  'title': 'Test',
'series': {2: {type: 'line', targetAxisIndex: 1, pointSize: 10, lineWidth: 3}, 
3: {type: 'line', targetAxisIndex: 1, pointSize: 10, lineWidth: 3}, 0:{pointSize: 5, lineWidth: 1}, 1:{pointSize: 5}},
'vAxes': {0:{minValue:0}, 1:{minValue: 0.3, textStyle:{color: '#224488'}}},
'seriesType': 'bars'
          }});

      chart.setDataTable(data);
      chart.draw();

--
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/-/m-LyGxXASEAJ.

To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

visigoth

unread,
Jan 5, 2012, 4:45:44 AM1/5/12
to google-visua...@googlegroups.com
A fixed RC will be pushed to 1.1 in a matter of few hours.

Visigoth

Lokesh Setia

unread,
Jan 5, 2012, 5:48:53 AM1/5/12
to google-visua...@googlegroups.com
great! Thanks for the prompt care!

On Thu, Jan 5, 2012 at 3:15 PM, visigoth <visi...@google.com> wrote:
A fixed RC will be pushed to 1.1 in a matter of few hours.

Visigoth

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
Reply all
Reply to author
Forward
0 new messages