how does echarts water polo display decimal places? My configuration is as follows
var optionFH = {
series: [{
type: "liquidFill",
data: [0.6115, 0.5, 0.4, 0.3],
// 61.15% 61%
radius: "80%",
outline: {
borderDistance: 0, //
itemStyle:{
borderWidth: 0, //
shadowColor: "-sharp000" //
}
},
label: { //To change the text, you may use label.formatter, which can be set to a string or function.
normal: {
// formatter: "{a}\n{b}\nValue: {c}", //If it is a string, {a} series name, {b} data name,{c} data value.
textStyle: {
// color: "red", //
// insideColor: "yellow", //
fontSize: 10
},
// position: ["center"], //Text position is at the center by default. label.position can be set to be "inside", "left", "right", "top", "bottom", or horizontal and vertical positions like ["10%", "20%"], which means "10%" to the left (controlled by label.align, which can be "left", "center", or "right") and "20%" to the top (controlled by label.baseline, which can be "top", "middle", or "bottom").
// position:"top"
align: "center",
// baseline: "center"
}
},
}]
};
effect
what I want to show is 61.15% followed by a decimal. How can it be achieved?