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.
精彩评论