Belvia
Belvia

Reputation: 129

Highstocks - Step line does not appear on chart export

I refer to: http://jsfiddle.net/e4c1hLmo/1/. The following contains the objects for the 3 series.

{
    "name": "Step Series 1",
    "data": [{
        "x": 1323532800000,
        "y": 5
    }, {
        "x": 1418227200000,
        "y": 5
    }],
    "step": true,
    "color": "#0000ff",
    "id": "stepSeries1",
    "yAxis": "testAxis"
},{
    "data": [................],
    "color": "#000000",
    "type": "line",
    "name": "Test Series 1",
    "yAxis": "testAxis",
    "id": "testSeries1"
},{
    "name": "Step Series 2",
    "data": [{
        "x": 1323532800000,
        "y": 4
    }, {
        "x": 1418227200000,
        "y": 4
    }],
    "step": true,
    "color": "#f1c232",
    "id": "stepSteries2",
    "yAxis": "testAxis"
}

Currently, when we perform the chart export, "Step Series 2" does not seem to appear. Now, when I swap the order of the series object around, all the series will appear during export.

Does anyone have any idea why?

Upvotes: 0

Views: 346

Answers (1)

Raein Hashemi
Raein Hashemi

Reputation: 3384

Its because of the min and max value you set for the xAxis. The datetime values for Step Series 1 and Step Series 2 are not specifically in that range. I commented the lines and it works fine: http://jsfiddle.net/e4c1hLmo/7/

Upvotes: 1

Related Questions