开发者

Dojox.charting.themes define number of colors

开发者 https://www.devze.com 2023-01-28 03:49 出处:网络
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?

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

精彩评论

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