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

水波图横向渐变会出现配置的颜色闪烁切换问题 #116

Open StarkL opened 4 years ago

StarkL commented 4 years ago

如题,详情连接,如有解决方案,请回复,谢谢!

var option = {
    series: [{
      type: 'liquidFill',
      radius: '90%',
      outline: {
        show: false,
      },
      backgroundStyle: {
        color: '#01075e'
      },
      label: {
        show: false,
        fontFamily: 'yalan',
        fontSize: 24,
      },
      data: [0.5, 0.5],
      color: [
        '#001F2E',
        new echarts.graphic.LinearGradient(
          0, 0, 1, 0,
          [
            {offset: 0, color: '#4a67fb'},
            {offset: 1, color: '#6bf1ed'},
          ])],
    }]
  };

https://gallery.echartsjs.com/editor.html?c=xr3sxUpJSD&v=2