ecomfe / echarts-liquidfill

Liquid Fill Chart for Apache ECharts
https://ecomfe.github.io/echarts-liquidfill/example/
BSD 3-Clause "New" or "Revised" License
1.47k stars 620 forks source link

label中不支持rich吗 #112

Open PerttyZhan opened 4 years ago

PerttyZhan commented 4 years ago
var option = {
    series: [{
        type: 'liquidFill',
        label: {
              show: true,
              formatter: `{电瓶电压|top} \n {110|bottom}`,
              fontSize: 14,
              fontWeight: 400,
              color:'#999',
              rich: {
                top: {
                  color: 'rgba(0,0,0,.0.45)',
                  fontSize: 14,
                  lineHeight: 1.5
                },
                bottom: {
                  color: 'rgba(0,0,0,.0.85)',
                  fontWeight: 500,
                  fontSize: 18,
                  lineHeight: 2,
                },
              },
            },
    }]
};

目前看效果,rich代码没有生效

XPC11059 commented 4 years ago

`label: { show: true, normal: { // color: "#778CA2", //波浪上文本颜色 // insideColor: "red", //波浪内部字体颜色

            textStyle: {
              color: "red", //波浪上文本颜色
              insideColor: "yellow", //波浪内部字体颜色
              fontSize: 30,
            },`

加一层 normal

hy-inger commented 3 years ago

rich对应的formatter格式改了。

formatter: {电瓶电压|top} \n {110|bottom} 改为 formatter: {top|电瓶电压} \n {bottom|110},