HighCharts自定义"无数据样式"

参考源:http://blog.csdn.net/bsh_csn/article/details/52634732

$('#container').highcharts({

title: {
text: '今年每月降雨量'

},

...


lang: {
noData: "没有要显示的数据"//自定义显示文本 
},
noData: { //自定义样式
// Custom positioning/aligning options
position: { //相对于绘图区定位无数据标签的位置。 默认值:[object Object].
//align: 'right',
//verticalAlign: 'bottom'
},
// Custom svg attributes
attr: { //无数据标签中额外的SVG属性
//'stroke-width': 1,
//stroke: '#cccccc'
},
// Custom css
style: { //对无数据标签的CSS样式。 默认值:[object Object].
fontWeight: 'bold',
fontSize: '16px',
color: 'blue'
}
}
});

猜你喜欢

转载自blog.csdn.net/wxg1453149997/article/details/72731470