Surender Bhyan
Surender Bhyan

Reputation: 61

Highchart- X-axis Irregular Time interval pointWidth

I am facing an issue with x-axis coordinates ticks and pointWidth with below data as x-axis is not following coordinates.

var temperatures = [
[Date.UTC(2016, 3, 1, 0 , 0), 0],
[Date.UTC(2016, 3, 1, 15, 0), 40],
[Date.UTC(2016, 3, 1, 15, 45), 30],
[Date.UTC(2016, 3, 1, 16, 20), 0],          

];

OR Here is the same data in integer form

data: [
            [1459490400000, 0],
            [1459522800000, 40],
            [1459525500000, 30],
            [1459527600000, 0]
        ]

Issue is that there must not be any gap between these to points as shown in below attachment. Click here to check Fiddle

Below is screenshot of issue

Any help will be appreciated.

Upvotes: 0

Views: 269

Answers (1)

Sebastian Bochan
Sebastian Bochan

Reputation: 37578

Instead of using pointWidth, set the pointRange parameter and then groupPadding and pointPadding as 0.

Upvotes: 1

Related Questions