Margin for horizontal label

32 views
Skip to first unread message

Luke

unread,
Dec 2, 2014, 8:00:02 AM12/2/14
to google-visua...@googlegroups.com
Hi

I have a Bar chart that is displaying the horizontal axis label with a huge margin. The vertical axis label is ok, the h-axis isn't.
I search for something about reducing this margin or paddinig but I couldn't find anything.

Please see attach
I need to put that label just under the horizontal values

Thanks

Cattura.JPG

Sergey Grabkovsky

unread,
Dec 2, 2014, 10:02:37 AM12/2/14
to google-visua...@googlegroups.com
Hi Luke, if you expand the chart area, and give the label less room, your margin should shrink as well. I may be forgetting something, but I don't think there's an option to explicitly control the margin of the label.

--
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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Luca Marantelli

unread,
Dec 2, 2014, 12:20:24 PM12/2/14
to google-visua...@googlegroups.com

Hi sergey
What do you mean exactly?

You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/NSArwIdtwIA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.

Sergey Grabkovsky

unread,
Dec 2, 2014, 12:24:42 PM12/2/14
to google-visua...@googlegroups.com
You can explicitly set the size of the chart area via the options, so if you make the height bigger, then the chart area should fill up more of the chart, and the haxis would have less room for the label. I believe that this should work for you:
options = {
  chartArea: {height: '80%'}

Luca Marantelli

unread,
Dec 2, 2014, 12:51:58 PM12/2/14
to google-visua...@googlegroups.com

I already use that. The margin remains huge

Sergey Grabkovsky

unread,
Dec 2, 2014, 1:13:53 PM12/2/14
to google-visua...@googlegroups.com
OK, can you give some code to reproduce this?

Luke

unread,
Dec 3, 2014, 5:20:54 AM12/3/14
to google-visua...@googlegroups.com
Hi Sergey

It's solved with suggestion you gave me. 

Thanks



Il giorno martedì 2 dicembre 2014 19:13:53 UTC+1, Sergey ha scritto:
OK, can you give some code to reproduce this?

On Tue Dec 02 2014 at 12:51:54 PM Luca Marantelli <l.mara...@gmail.com> wrote:

I already use that. The margin remains huge

Il 02/dic/2014 18:24 "'Sergey Grabkovsky' via Google Visualization API" <google-visua...@googlegroups.com> ha scritto:
You can explicitly set the size of the chart area via the options, so if you make the height bigger, then the chart area should fill up more of the chart, and the haxis would have less room for the label. I believe that this should work for you:
options = {
  chartArea: {height: '80%'}
}

On Tue Dec 02 2014 at 12:20:17 PM Luca Marantelli <l.mara...@gmail.com> wrote:

Hi sergey
What do you mean exactly?

Il 02/dic/2014 16:02 "'Sergey Grabkovsky' via Google Visualization API" <google-visua...@googlegroups.com> ha scritto:
Hi Luke, if you expand the chart area, and give the label less room, your margin should shrink as well. I may be forgetting something, but I don't think there's an option to explicitly control the margin of the label.

On Tue Dec 02 2014 at 8:00:04 AM Luke <l.mara...@gmail.com> wrote:
Hi

I have a Bar chart that is displaying the horizontal axis label with a huge margin. The vertical axis label is ok, the h-axis isn't.
I search for something about reducing this margin or paddinig but I couldn't find anything.

Please see attach
I need to put that label just under the horizontal values

Thanks

--
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-visualization-api+unsub...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
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 a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/NSArwIdtwIA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
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 google-visualization-api+unsub...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
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 a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/NSArwIdtwIA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
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 google-visualization-api+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages