Using in google chart options:
annotations: {
alwaysOutside: true
},
On Monday, December 14, 2015 at 9:27:36 PM UTC+5:30, Kimberly Segers wrote:
>
> Hi
>
> Im building a dashboard using google charts API. The thing is that when I
> try to add annotations to the graph it displays weird.
> I want to display the numbers inside the bars but sometimes I get these
> ... inside the bar.
>
>
> <https://lh3.googleusercontent.com/-Oi0zJIyKTX0/Vm7m0xXqOtI/AAAAAAAAAUE/xMDsAD27htc/s1600/Screen%2BShot%2B2015-12-14%2Bat%2B4.57.20%2BPM.png>
>
>
>
>
>
>
>
>
>
> I tried to fix it using this :
> view.setColumns([0, 1, {
> calc: "stringify",
> sourceColumn: 1,
> type: "string",
> role: "annotation"
> },
>
>
> But then the highest amount only is displayed inside the bar. I just want
> to have the amounts that doesn't fit the bar, displayed outside the bar.
>
> When i display all the values outside the bar, the negative values are
> displayed weird. like this:
>
> <https://lh3.googleusercontent.com/-MFgkmTg5b0Y/Vm7me_E6yxI/AAAAAAAAAT8/1dD63_P2J8U/s1600/Screen%2BShot%2B2015-12-14%2Bat%2B4.56.12%2BPM.png>
>
>
>
>
>
>
>
>
> Is there a fix for only displaying the numbers outside the bars when it
> doesn't fit?
>
> Thanks in advance
>
--
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 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/64b3c892-1f39-4d99-90be-f6e13c5d5eea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.