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

请问水球图上部背景色如何不渐变,data值变化时背景色始终一致 #130

Closed BVDF2017 closed 3 years ago

BVDF2017 commented 3 years ago
var option = {
    series: [{
        type: 'liquidFill',
        data: [0.6]
    }]
};

请问水球图上部背景色如何不渐变,data值变化时背景色始终一致? 目前测试发现data设置最小和最大值时,最上方的背景色会不一致。

max1

min1 同样背景色设为'red',但是还是有色差。

Ovilia commented 3 years ago

似乎是因为设置了阴影?

BVDF2017 commented 3 years ago

似乎是因为设置了阴影?

目前还没有相应的修改设置方式吧

Ovilia commented 3 years ago

@BVDF2017 有啊,看文档啊 https://github.com/ecomfe/echarts-liquidfill#shadow