开发者

Dojox.charting.themes define number of colors

I’m using MiamiNice theme in my “pie’开发者_如何转开发s” graphics, but doesn’t provide enough colors, and repeat colors in some sectors, is there any way to define a number of colors? Thanks!!!


You can simply create your own Theme and put there all the colors that you want.

e.g.

var myTheme = new dojox.charting.Theme({
            colors: [
                    "#A4CE67",
                    "#739363",
                    "#6B824A",
                    "#343434",
                    "#636563"
            ]
    });

Then you should use "myTheme" as your theme in your chart.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜