javascript - HighCharts - Need more space between bottom of chart and Xaxis labels - Stack Overflow

I am trying to get more space between my highcharts plotArea and the xAxis... nothing so far seems to b

I am trying to get more space between my highcharts plotArea and the xAxis... nothing so far seems to be working. The picture shows how close they are and I am wanting to add about 30 more px to it.

Thank you for the help!!

I am trying to get more space between my highcharts plotArea and the xAxis... nothing so far seems to be working. The picture shows how close they are and I am wanting to add about 30 more px to it.

Thank you for the help!!

Share Improve this question asked Mar 2, 2013 at 17:12 DanielCWDanielCW 1491 silver badge14 bronze badges 1
  • 1 Can you explain it better ? – Ricardo Lohmann Commented Mar 4, 2013 at 0:11
Add a ment  | 

2 Answers 2

Reset to default 4

Assuming I unerstand your question correctly...

Here is a standard xAxis and an altered yAxis from the Highcharts documentation.

http://jsfiddle/gh/get/jquery/1.7.2/highslide-software/highcharts./tree/master/samples/highcharts/xaxis/labels-x/


Now, here is a fork of that fiddle, but with the labels of the xAxis pushed further down.

http://jsfiddle/BCPL5/

The relevant Highcharts API documentation:
http://api.highcharts./highcharts#xAxis.labels


The alteration to the xAxis is in this statement.

    ...

    xAxis: {
        labels: {
            y: 25
        }
    },

    ...

Now, you could also use offset, as can be seen in the Highcharts example below, but I don't believe that is what you want in this case.

http://jsfiddle/gh/get/jquery/1.7.2/highslide-software/highcharts./tree/master/samples/highcharts/yaxis/offset/

You can try to set min/maxPadding http://api.highcharts./highstock#yAxis.minPadding

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745603962a4635566.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信