0
votes

Am very new to sencha touch as my requirement is to get the bar with four color gradients. but as of now am possible to apply only two color gradients for the bar .

following is my code,

gradients:
    [ {
        'id': 'v-1',
        'angle': 0,
        stops: {
            0: {
                color: '#79bbff'
            },

            100: {
                color: '#0d55a9'
            }
        }
    }]

series:
    [ {
        type: 'bar',
        renderer: function(sprite, storeItem, barAttr, i, store11) {

            barAttr.fill = colors[i % colors.length];
            return barAttr;
        }
    }]

Is it possible to apply more than two gradients for the single bar.Please help me regarding this.

Thanks in advance, Naga

1

1 Answers