在饼图extjs上应用条纹颜色(图案)

时间:2017-05-14 07:40:26

标签: css extjs colors

如何在ExtJs饼图中应用条纹组合图案颜色。

1 个答案:

答案 0 :(得分:0)

试试这个:

new Ext.Panel({
width: 400,
height: 400,
title: 'Pie Chart with Legend - Favorite Season',
renderTo: 'container',
items: {
    store: store,
    xtype: 'piechart',
    dataField: 'total',
    categoryField: 'season',
    series: [{
        style: {
            colors: ["#ff2400", "#94660e", "#00b8bf", "#edff9f"]
        }
    }],
    extraStyle:
    {
        legend:
        {
            display: 'bottom',
            padding: 5,
            font:
            {
                family: 'Tahoma',
                size: 13
            }
        }
    }
}
});

参考:http://jlorenzen.blogspot.in/2010/10/how-to-change-extjs-piechart-colors.html。 您可以添加更多详细信息,您想要什么?这是你的要求吗?