[英]change distance of x-axis labels from axis in highchart
I want to increase the distance of the x axis title from x axis in highchart. 我想增加highchart中x轴标题与x轴的距离。
following is my x axis code.But using this code title is too close to the x axis. 以下是我的x轴代码。但是使用此代码标题离x轴太近了。
I try with x and y values but no difference in output. 我尝试使用x和y值,但输出没有差异。
xAxis:
{
categories: [<?php echo $ffdat;?>],
title:
{
text: 'Overall Average Mean Time Between Failures: <?php echo round($avg, 2);?> Hrs.'
},
},
use margin property to provide spacing between axis and title 使用margin属性在轴和标题之间提供间距
title:{
margin: 60
}
here is a working example for it http://jsfiddle.net/5kZbG/ 这是它的一个工作示例http://jsfiddle.net/5kZbG/
Hope this will solve your issue. 希望这能解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.