PDA

View Full Version : StackedColumnChart



akumariiit
9 Nov 2010, 1:19 AM
Hi,
I have made one Stacked Column chart. now i want to control the width of bars and also colors of stacks in one bar.
how can i define my own colors for stacks of a bar.
Pls help.

purushbpa
13 Nov 2010, 6:27 AM
Here is the solution:

series: [{
xField: 'comedy',
displayName: 'Comedy',
style: {
color: 0x555555,
size: 40,
lineSize: 1
}
},{
xField: 'action',
displayName: 'Action',
style: {
color: 0xff8888,
size: 40,
lineSize: 1
}
},{
xField: 'drama',
displayName: 'Drama',
style: {
color: 0x88ff88,
size: 40,
lineSize: 1
}
},{
xField: 'thriller',
displayName: 'Thriller',
style: {
color: 0xff6666,
size: 40,
lineSize: 1
}
}]


size field is the one which controls the width and color is for customized color.