(本文档仅供参考)
问题说明
自助仪表盘里面,饼图如何设置,数据标签显示数量,但是鼠标提示显示百分比:

解决方案
1.双击“产品目录名称”和“数量”字段,由系统自动分配维度到“颜色”标记项、分配度量到“角度”标记项
2.把“产品目录名称”、“数量”拖拽到“标签”标记项,如下图:

3.修改扩展属性,设置鼠标提示内容,显示百分比:


"tooltip": {
"showContent": true,
"formatter": "{b}:{d}%"
},
4.或者可以直接通过扩展属性来实现:
(1)双击“产品目录名称”和“数量”字段,由系统自动分配维度到“颜色”标记项、分配度量到“角度”标记项

(2)修改扩展属性:

"tooltip": {
"showContent": true,
"formatter": "{b}:{d}%"
},
"series": [
{
"label": {
"normal": {
"show": true,
"position": "outer",
"formatter": "{b}:{c}"
}
}
}
]
扩展属性详细说明可参考此文档:https://echarts.apache.org/zh/option.html#tooltip
Viewtracker License Missing
There is a problem with the license of the Viewtracker addon. Please check if you have a valid license.
授权码细节