Search code examples
highchartsplotly.js

Is there support for subplots in highcharts as in plotly?


Looking for support for subplots in Highcharts

https://plot.ly/javascript/subplots/


Solution

  • In Highcharts you can create multiple charts or multiple axes:

    series: [{
        data: [...]
    }, {
        data: [...],
        yAxis: 1,
        xAxis: 1
    }],
    
    xAxis: [{
        left: '0%',
        width: '40%',
        offset: 0
    }, {
        left: '60%',
        width: '40%',
        offset: 0
    }],
    yAxis: [{
        left: '0%',
        width: '40%',
        offset: 0
    }, {
        left: '60%',
        width: '40%',
        offset: 0
    }]
    

    Live demo: http://jsfiddle.net/BlackLabel/8Lvmq6sh/

    API Reference: https://api.highcharts.com/highcharts/series.line.xAxis