【问题标题】:Sencha Touch Chart: Applying more than two gradients to barSencha Touch Chart:将两个以上的渐变应用于条形图
【发布时间】:2011-12-15 05:15:34
【问题描述】:

我对 sencha touch 非常陌生,因为我的要求是获得具有四种颜色渐变的条。但到目前为止,我只能为条形应用两种颜色渐变。

以下是我的代码,

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;
        }
    }]

是否可以为单个条应用两个以上的渐变。请帮助我解决这个问题。

提前致谢, 娜迦

【问题讨论】:

    标签: extjs sencha-charts


    【解决方案1】:

    【讨论】:

    • 非常感谢 welshcathy,它工作正常 nw。谢谢,娜迦
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-09
    • 2012-01-23
    • 2022-08-18
    相关资源
    最近更新 更多