如何设置highcharts图表坐标刻度字体样式

如何设置highcharts图表坐标刻度字体样式,第1张

yAxis:{

title:{

text:''

},

min:0,

gridLineWidth:'0px',

plotLines:[{

value:0,

width:1,

color:'#fff'

}],

labels:{

formatter:function(){

returnthis.value

},

style:{

color:'#fff',

fontSize:'16px',

fontFamily:'微软雅黑'

}

},

lineWidth:1

},

扩展资料

highcharts图表坐标样式调整

xAxis:{

categories:['北京','哈尔滨','青岛','天津','上海','杭州','南京','广州','深圳','香港','昆明','成都'],

labels:{

y:30,//向下离坐标轴30px,可以自己调整

style:{

writingMode:'tb-rl'//文字竖排样式,

}

}

},

在highCharts对象中加入如下代码:

legend : {

itemStyle : {

'fontSize' : '18px'

}

}


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/tougao/11268638.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-14
下一篇2023-05-14

发表评论

登录后才能评论

评论列表(0条)

    保存