formatter: function(value) {
return "{a|合格率}\n" + '{b|'+value+'%}';
},
textStyle: {
padding: [0, 0, 80, 0],
//在rich中给formatter添加个别字体颜色
rich:{
a:{
color:'#75f4fe',
padding:[5,0],
fontSize:14
},
b:{
color:'#75f4fe',
padding:[5,0],
fontSize:16,
fontWeight: 'bold',
},
},
},
フォーマッタ関数は、textStyle のリッチ テキスト属性と連携して、スタイルまたはコンテンツをフォーマットします。
おすすめ
転載: blog.csdn.net/weixin_41542329/article/details/130763192
おすすめ
ランキング