View Full Version : Labels in Line Chart not showing up.

7 Oct 2014, 3:29 AM
Hi all,
I have a requirement to show the labels in charts{ at each data point I have to write the value above or below the plot}. ExtJs 4.2 has default config called "label : {} " that I have used as

label : {
display: 'outside',
'text-anchor': 'middle',
field: columnNames[i]['name'], //check the axis here
orientation: 'horizontal',
color: '#333',
font: '10px Arial'
this works fine for all kinds of charts except "LINE". For line chart, initially the label is getting behind the line.
I have tried different configurations for the same yet no use. In our tool, for the first time its not showing up at all. On click of the legend again, then they are getting visible.

Please suggest a fix for this. I have a fiddle for the same whose link is below here. Please help..



7 Oct 2014, 8:18 AM
This looks very similar to the following: http://www.sencha.com/forum/showthread.php?188384-EXT4.1-RC1-Ext.chart.series.Line-label-position-doesn-t-seem-to-work-as-intended