Barchart : Hide a bar without value

17 views
Skip to first unread message

Lucie W

unread,
Jun 2, 2016, 4:24:48 AM6/2/16
to Google Visualization API
Hello !

I have this bar chart :



As you can see I can for "Mars S11" I don't have a value for the task 6 and for "Mars S12" I don't have a value for the task 3 and 4.
I would like dont' display a bar when the task have not a value. I would like don't see a blank between the task.

I hope to be comprehensive.


Thank you.


Auto Generated Inline Image 1

Daniel LaLiberte

unread,
Jun 2, 2016, 11:42:19 AM6/2/16
to Google Visualization API
Use a null value instead of 0.  0 is actually a value, so the annotation is displayed, but null is handled specially, and the annotation should be hidden in that case.



--
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/5cb8acad-10cc-421a-9f64-acd7c5ba0018%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Lucie W

unread,
Jun 2, 2016, 12:04:21 PM6/2/16
to Google Visualization API
Thank you.
Now I have this chart :


But I would like too don't display a blank between the bar.

How I can do that ?

Thank you.
Auto Generated Inline Image 1

Daniel LaLiberte

unread,
Jun 2, 2016, 12:22:34 PM6/2/16
to Google Visualization API
I suspect that if you use a null value for your annotation column, then the bar might not show up at all, leaving no gap.  If not, then we currently don't have any option for specifying that behavior.



Thank you.

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

For more options, visit https://groups.google.com/d/optout.

Lucie W

unread,
Jun 3, 2016, 5:51:42 AM6/3/16
to Google Visualization API

Thank you to your answer. But it don't work. It's the same result of the last picture.
Reply all
Reply to author
Forward
0 new messages