[TOC] ***** ### **数值设置属性配置** 图表属性支持一览表 | | 是否显示 | 格式化 | 字体大小 |字体颜色 |字体粗细 | | :------: | :------: | :------: | :------: | :------: | :------: | | 普通柱状图 | ✔|✖ | ✔ | ✔ | ✔ | | 堆叠柱状图 | ✔|✖ | ✔ | ✔ | ✔ | | 折柱图 | ✔ |✖ | ✔ | ✔ | ✔ | | 普通折线图 | ✔ |✖ | ✔ | ✔ | ✔ | | 面积折线图 | ✔ |✖ | ✔ | ✔ | ✔ | | 纵向折线图 | ✔|✖ | ✔ | ✔ | ✔ | | 饼图 | ✔| ✔ | ✔ | ✔ | ✔ | | 旋转饼图 | ✔| ✖ | ✔ | ✔ | ✔ | | 雷达图 | ✔ |✖ | ✔ | ✔ | ✔ | | 象形图 | ✔ |✖ | ✔ | ✔ | ✔ | | 漏斗图 | ✔ |✖ | ✔ | ✔ | ✔ | | 散点图 | ✔ |✔ | ✔ | ✔ | ✔ | ***** #### **(1)是否显示** [series-bar.label.show](https://echarts.apache.org/zh/option.html#series-bar.label.show)是否显示数值标签,如下图 ![](https://img.kancloud.cn/98/4c/984c96871be6b3a88c50549e3d9e9eeb_1084x442.png) ***** #### **(2)格式化** [series-bar.label.formatter](https://echarts.apache.org/zh/option.html#series-bar.label.formatter)数值格式化形式(目前仅饼图可设置),如下图 ![](https://img.kancloud.cn/7e/90/7e90d17831b49f28dbb4de5f90bfb893_1084x387.png) 散点图格式化用法[series-scatter.label.formatter](https://echarts.apache.org/zh/option.html#series-scatter.label.formatter) ![](https://img.kancloud.cn/6e/ca/6eca197ba37d03b752475d5934df4146_1084x339.png) 标签内容格式器,支持字符串模板和回调函数两种形式,字符串模板与回调函数返回的字符串均支持用`\n`换行。 **字符串模板**模板变量有: * `{a}`:系列名。 * `{b}`:数据名。 * `{c}`:数据值。 * `{@xxx}`:数据中名为`'xxx'`的维度的值,如`{@product}`表示名为`'product'`的维度的值。 * `{@[n]}`:数据中维度`n`的值,如`{@[3]}`表示维度 3 的值,从 0 开始计数。 **示例:** ~~~ formatter: '{b}: {@score}' ~~~ ***** #### **(3)字体大小** [series-bar.label.fontSize](https://echarts.apache.org/zh/option.html#series-bar.label.fontSize)用于设置文字的字体大小。,如下图 ![](https://img.kancloud.cn/a8/01/a8014a82f8a08c155ef2b87280ef64fe_1084x423.png) ***** #### **(4)字体颜色** [series-bar.label.color](https://echarts.apache.org/zh/option.html#series-bar.label.color)文字的颜色,如下图 ![](https://img.kancloud.cn/41/50/41503c920e061d45419ed4a9e04ca7d3_1084x407.png) ***** #### **(5)字体粗细** [series-bar.label.fontStyle](https://echarts.apache.org/zh/option.html#series-bar.label.fontStyle)文字字体的风格,如下图 ![](https://img.kancloud.cn/a3/56/a3561867bd51ac8bc842164eb11b330f_1084x426.png) *****