View Full Version : Setting space between labels in LineChart

Pavol Kaiser
24 Mar 2010, 5:53 AM

I am trying to set spacing between labels on xAxis of a LineChart so that the labels are not so dense. I expected that attribute labelSpacing should do so but this does not work:

this.eloChart = new Ext.chart.LineChart({
region: 'center',
store: this.eloDevelopmentStore,
xField: 'date',
yField: 'elo',
baseCls: 'common_tab_inner_panel',
wmode: 'transparent',
extraStyle: {
background: {
alpha: 0.0
xAxis : {
labelSpacing: 100
series: [{
style: {
yAxis: new Ext.chart.NumericAxis({
alwaysShowZero: false

Do you have any idea how to setup the spacing? If attribute labelSpacing is not meant to do this what exactly is it supposed to do?

Tahnk you

16 Jun 2012, 4:46 AM
Was there an answer to this as it seems to be one of the XAxis objects that doesn't seem to do anything?

23 Jun 2012, 1:56 AM
I've set up label spacing too, but nothing happens like above. Has anyone ever had this working?