PDA

View Full Version : [DUP] Adding renderer to Pie series label. Wrong format in code



sbeaulieu@hulix.co
9 Apr 2012, 4:20 AM
Hi,

I have a bad formating code, when trying to add renderer on pie series label.
{'field':'asset',
'display':'rotate',
'contrast':true,
'font':'12px Arial',
'renderer' : function(n) {
return n;
}
}

But it's formating like that
label: {
field: 'asset',
display: 'rotate',
contrast: true,
font: '12px Arial',
renderer: function(n){
returnn;
}
},


It's removing space between return and n


Designer 2 build 363
Thanks
Sebastien

aconran
9 Apr 2012, 10:08 AM
I'm unable to reproduce with the following steps.

Using build 363
Start an Ext Project
Drag out a Pie Chart
Choose the Series in the inspector
Search for "renderer"
Click plus next to renderer
add in code in the renderer node

sbeaulieu@hulix.co
9 Apr 2012, 11:25 AM
Using build 363
Start an Ext Project
Drag out a Pie Chart
Choose the Series in the inspector
Search for "label"
add the Code in label property

{'field':'asset',
'display':'rotate',
'contrast':true,
'font':'12px Arial',
'renderer' : function(n) {

return n;

}
}
Click on Code view
find the PieChart look at the label property in the code you should see returnn;


Sebastien

aconran
9 Apr 2012, 11:36 AM
Got it. Thanks for the report.