PDA

View Full Version : Legend in column chart



andresantos
16 Jan 2012, 4:32 AM
How can I put a legend inside the bar, like some images that have?

mitchellsimoens
16 Jan 2012, 8:31 AM
You can add a sprite but you don't have that much control over the legend.

andresantos
19 Jan 2012, 4:37 AM
Ok, I just need to show the value inside the bar, just like this image:
http://docs.sencha.com/touch-charts/1-0/images/Ext.chart.series.Column/Ext.chart.series.Column.png

How can I do that? In the documentation have this image but dont have any example.

Naga
2 Feb 2012, 2:32 AM
You can specify this to get labels inside the bar.

label: {
display: 'outsideEnd',
field: 'data1',
orientation: 'horizontal', // 'vertical'
color: '#0000FF',
'text-anchor': 'middle'
},