echarts [Feature] the lineStyle of splitLine supports change by index

qzwqbdag  于 4个月前  发布在  Echarts
关注(0)|答案(1)|浏览(47)

What problem does this feature solve?

by this feature. Styles can be more customized.

What does the proposed API look like?

series: [
    {
      type: 'gauge',
      splitLine: {
        length: 15,
        lineStyle: function(item, index) {
            // so can change the style by index
            return {
                    width: index,
                    color: '#999'
            }
      },
    }
  ]
mqkwyuun

mqkwyuun1#

Expect more properties to support more customization in the form of function callback.
such as : function(item, index) {}

相关问题