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