javascript - Multiple X shared axis in plot.ly subplots -


i have 2 subplots shared x axis , want able zoom them both - when zoom 1 second adjust automatically have problem: x axis can presented on first axis or on second axis. how can display x axis below both plots?

cheers, fih

var trace1 = {    x: [1, 2, 3],    y: [2, 3, 4],    type: 'scatter'  };    var trace3 = {    x: [2, 3, 4],    y: [600, 700, 800],    xaxis: 'x',    yaxis: 'y3',    type: 'scatter'  };    var data = [trace1, trace3];    var layout = {    xaxis: {      domain: [0, 1],      anchor: ('y', 'y3'),    },    yaxis: {      domain: [0, 0.45],    },    yaxis3: {      domain: [0.55, 1]},      anchor: 'x',    };    plotly.newplot('compgraph', data, layout);


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -