PDA

View Full Version : Multiple labelfield in bar charts



anoopmishra
6 Dec 2012, 3:59 AM
Hi
i am very new to sencha. I just wanted to know how can we display multiple labelfields in series
here is my code of Series
series: [{
type: 'bar',
xField: 'type',
yField: ['converted','lost','YTdecide'],
labelField: 'number',
stacked:false,
axis: 'left',
highlightCfg: {
shadowColor: 'black',
strokeStyle: 'white',
shadowBlur: 15,
zIndex: 15,
fill: '#dd8',
lineWidth: 2
},
label: {
font: '14px Helvetica'
},
listeners: {
itemtap: {
fn: function() {
if(this.getStacked()){
this.setStacked(false);}
else{this.setStacked(true);}
},
}
}

}

so in the above code i want the labelfields to be "converted','lost','YTdecide"
how can i do that?

mitchellsimoens
8 Dec 2012, 6:27 AM
Is this actually a Sencha Touch 2 question?

danyvalenzuela
17 Dec 2012, 5:24 AM
Hello.
Any answer for this?
I have the same problem. I need to show the label but is not displayed. Works only with one field.


yField: ['value1',
'value2,
'value3']


labelField:?

Thanks.

anoopmishra
19 Dec 2012, 4:43 AM
it belongs to sencha charts. is it not the right place to post???

danyvalenzuela
19 Dec 2012, 4:50 AM
Ok thanks.
Anyway now that you've made the question. Do you know what is the answer?

anoopmishra
20 Dec 2012, 2:13 AM
No i still didnt find any answer..:s:s:s

anoopmishra
2 Jan 2013, 10:01 PM
Any solution to this problem?