...
泡泡图-动态时间轴标签文字的颜色和字体在哪里设置。
解决方案
可使用如下扩展属性代码实现:图形中标题的字体颜色和大小设置如下:
{
时间轴上的标签文字的颜色和大小设置,在timeline组件设置代码option.timeline = {}中加上如下代码:
...
label:
...
{
"markLine": {
"label": {
"formatter": "function(params){return (params.value*100).toFixed(2)+'%'}"
}
}
}]
...
normal:{
textStyle:{
fontSize: 14,
color:'red'
}
}
}
textStyle:{
fontSize: 14,
color:'red'
}
}
}
Viewtracker |
---|