PDA

View Full Version : Pie doesn't work correctly



anto75
8 Mar 2012, 4:10 AM
Hi all,
I'm using ExtJS4.1.0 beta and I create a pie chart. All run correctly if I use the default theme.

BUT when I'm tryng to personalize it, the chart pie is showed in a wrong mode:

32502


You could see that only two labels are visualized... and after a click on a slice all is broken ! :(

In Firebug I see next errors:



colorString.match(me.colorStringRe) is null



chrome://firebug/content/blank.gif


colorString = colorString.match(me.colorStringRe)[1];


label is undefined

chrome://firebug/content/blank.gif

label.stopAnimation();




I update the default theme with the next new:



var themeConfig = {
axis: {
fill: localTitleFill,
stroke: localTitleFill
},
axisLabelLeft: {
fill: localLableFill
},
axisLabelBottom: {
fill: localLableFill
},
axisLabelTop: {
fill: localLableFill,
font: localLabelFont
},
axisLabelRight: {
fill: localLableFill,
font: localLabelFont
},
axisTitleLeft: {
font: localTitleFont,
fill: localTitleFill
},
axisTitleBottom: {
font: localTitleFont,
fill: localTitleFill
},
axisTitleTop: {
font: localTitleFont,
fill: localTitleFill
},
axisTitleRight: {
font: localTitleFont,
fill: localTitleFill
},
colors: localColors
};


Probably something is missing?? Other charts type work correctly...

Each suggestion is welcome..

Thank you inadvance,

Antonella

mitchellsimoens
8 Mar 2012, 4:53 PM
So if you don't use the themeConfig object it works? Is that what you are asking about?

anto75
9 Mar 2012, 12:13 AM
Hi,
yes ... if I don't personalize the theme it works correctly:

32546

My question is about a solution to personalize colors by theme... I have the same problem with the colorsList attribute configuration.

It gives : colorString.match(me.colorStringRe) is null exception on
colorString = colorString.match(me.colorStringRe)[1];

in ext-all-debug.js (riga 35422)

Tx,

Anto