Annotation value for vaxis labels

26 views
Skip to first unread message

Jim Garrison

unread,
Dec 14, 2015, 1:58:44 PM12/14/15
to Google Visualization API
I'm using a stacked bar chart with annotations, with code almost exactly like the example on the Google Charts Bar Chart page:

      var view = new google.visualization.DataView(data);
      view.setColumns([0, 1,
                       { calc: "stringify",
                         sourceColumn: 1,
                         type: "string",
                         role: "annotation" },
                       2]);

The problem is that column 0 is the vaxis label, which apparently has a value of "0", and this "0" is displayed at the end of the label as if it were a bar with an annotation.


I've tried using various combinations of { calc: "stringify", sourceColumn: 1, type: "string", role: "annotation" }, to change the value with no effect.


Daniel LaLiberte

unread,
Dec 14, 2015, 2:46:04 PM12/14/15
to Google Visualization API
Jim,

The "0" values might be longer values that are partly covered up by the other values, but where those other values are coming from is not clear.  Are you using domain annotations? It is difficult to say from the image what is happening.  Could you link to an actual chart so we could investigate?  

--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/28e972ab-1d94-4050-8e70-e8df0e717713%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Jim Garrison

unread,
Dec 14, 2015, 3:04:32 PM12/14/15
to google-visua...@googlegroups.com
Daniel,

Thanks. Definitely not longer values as I can adjust the chart left-side spacing to open a gap between the label and the chart.

I'll try to create a jsfiddle test case but it might take a while to unravel the code.


Reply all
Reply to author
Forward
0 new messages