- 对于单值图类型的图表,可使用
<title-font>
元素定义标题的字体。
父元素
在<chart>
元素下,只有当 type 属性指定如下值时,才能使用<title-font>
元素。
<chart type="pie-ring-bucket">
<chart type="pie-ring-metric">
<chart type="single-gauge">
<chart type="single-percent">
子元素
子元素 | 说明 | 默认值 |
---|---|---|
<font-weight> |
字体粗细 | 'normal' |
<font-family> |
字体 | 'PingFang SC' |
<color> |
字体颜色 | '#42526E' |
<font-size> |
字体大小 | 20 |
示例
<title-font>
<font-weight>normal</font-weight>
<font-family>PingFang SC</font-family>
<color>#C1C7D0</color>
<font-size>64</font-size>
</title-font>
文档反馈
(如有产品使用问题,请 提交工单)