Sungam Yang
Sungam Yang

Reputation: 615

How to remove blank spaces between xAxis labels?

I'm using Highcharts to draw graphs on the fly.

As you see the below picture, there are a lot of blank spaces between years.

How can I shrink it?

I want to use the spaces to expand width of each column item.

enter image description here

Upvotes: 0

Views: 1288

Answers (2)

msapkal
msapkal

Reputation: 8346

You can increase the column width by using pointWidth and shrink the spaces between years using groupPadding.

http://api.highcharts.com/highcharts#plotOptions.column.pointWidth

plotOptions: {
        series: {
            groupPadding: 0.01,
            pointWidth: 50
        }
    }

Upvotes: 1

Cihad Turhan
Cihad Turhan

Reputation: 2849

Assign your groupPadding value very close to zero (or zero).

plotOptions: {
        series: {
            groupPadding: 0.01
        }
    },

Since you didn't post your code, I'll show another example

Upvotes: 1

Related Questions