Plotly Examples Do Not Work in JS

https://plot.ly/~GarrettFitzgerald/60/#data

Data I am using:
const graphOptions = {
grid: { rows: 2, columns: 2, pattern: ‘independent’ },
};

[{“x”:[“9.87”,“9.93”,“10.0”,“10.61”,“11.06”,“11.48”,“12.11”,“12.78”,“12.88”,“13.58”,“13.81”,“13.97”,“14.11”,“14.17”,“15.39”,“15.46”,“17.05”,“17.11”,“17.42”,“17.65”,“17.94”,“19.64”,“21.23”,“22.93”,“0.0”,“0.07”,“0.38”,“1.05”,“2.19”,“2.19”,“2.98”,“3.12”,“3.6”,“3.99”,“4.07”,“4.33”,“4.42”,“4.52”,“6.43”,“6.79”,“6.88”,“6.92”,“7.0”,“7.19”,“7.26”,“7.27”,“7.42”,“7.8”,“7.84”,“7.85”,“7.91”,“8.05”,“8.5”,“8.55”,“8.73”,“8.73”,“8.87”,“9.19”,“9.23”,“9.33”,“9.47”,“9.55”,“9.96”,“10.38”,“10.42”,“10.52”,“10.62”,“10.94”,“11.2”,“11.29”,“11.39”,“11.91”,“12.22”,“12.58”,“12.75”,“12.82”,“12.87”,“13.1”,“13.2”,“13.2”,“13.28”,“14.01”,“14.1”,“14.11”,“14.12”,“14.17”,“14.36”,“14.44”,“14.47”,“14.58”,“14.74”,“14.74”,“14.95”,“15.0”,“15.04”,“15.12”,“15.14”,“15.16”,“15.2”,“15.21”,“15.29”,“15.3”,“15.32”,“15.41”,“15.41”,“15.51”,“15.56”,“15.62”,“15.75”,“15.77”,“15.88”,“15.9”,“16.01”,“16.1”,“16.12”,“16.16”,“16.17”,“16.18”,“16.21”,“16.24”,“16.29”,“16.35”,“16.4”,“16.41”,“16.43”,“16.45”,“16.46”,“16.49”,“16.54”,“16.65”,“16.71”,“16.71”,“16.73”,“16.76”,“16.77”,“16.9”,“16.9”,“16.92”,“16.92”,“16.94”,“16.95”,“16.95”,“17.12”,“17.13”,“17.22”,“17.23”,“17.23”,“17.25”,“17.29”,“17.5”,“17.56”,“17.62”,“17.62”,“17.66”,“17.69”,“17.75”,“17.77”,“17.79”,“17.83”,“17.83”,“17.83”,“18.12”,“18.17”,“18.18”,“18.2”,“18.33”,“18.35”,“18.35”,“18.49”,“18.5”,“18.53”,“18.53”,“18.62”,“18.7”,“18.79”,“18.81”,“18.82”,“18.99”,“19.0”,“19.07”,“19.09”,“19.11”,“19.16”,“19.25”,“19.3”,“19.33”,“19.46”,“19.5”,“19.56”,“19.65”,“19.84”,“19.91”,“20.02”,“20.25”,“20.26”,“20.34”,“20.49”,“20.83”,“21.25”,“21.29”,“21.5”,“22.02”,“22.16”,“22.23”,“22.57”,“22.77”,“23.15”,“23.92”,“24.06”,“25.94”,“26.09”,“26.59”,“29.07”,“29.67”,“30.13”,“30.67”,“31.93”,“32.92”,“36.41”],“y”:[-213,-422,-376,-513,-162,33,-234,-223,-626,-949,-1253,-741,-800,-1063,-1241,-761,-916,-975,-819,-590,-511,-1034,-3291,-3330,3659.0000000000005,3709.0000000000005,3912.0000000000005,3952.0000000000005,6016,5251,6827,6685,6560,10671,9579,8084,7869,7694,7336,7901,6936,8118,11226,11798,15596,19867,18691,17810,16933,18085,18525,18946,19164,20096,22463,20889,21285,25712,24678,23959,26856,27710,28479,28734,29643,29046,29666,29586,29849,29547,29202,30389,32415,29787,26773,25389,21218,21910,22257,22807,23554,23521,27531,27144,27952,28329,28205,27917,27674,26097,26309,26233,26101,25544,26196,26464,26707,26635,26869,26953,27721,27455,27310,27080,27895,28897,29845,29815,32204,32096,32093,32270,32308,32123,32031,33017,32742,32498,32513,32637,32603,32345,32758,32929,34369,34435,34354,34407,34413,32495,34192,35863,36530,36507,36484,36571,36532,36515,37581,37515,37368,37263,37334,37216,37187,37054,37113,37032,36975,36921,36524,37432,39781,39600,39789,39899,39751,39693,39683,39740,39677,39735,40675,40731,40708,40765,40876,42024,40408,40173,40239,40270,40302,40296,40286,39043,39098,38940,38966,39678,39723,39820,39743,39124,39152,38946,38947,39152,39121,39294,39449,29290,29121,29189,28922,27466,25222,24715,24690,24564,24800,27409,27523,27042,25719,25877,25413,25729,25404,27990,24551,24344,25373,24299,25261,26028,27224,28506,30231],“mode”:“markers”,“marker”:{“color”:“rgb(142, 124, 195)”,“size”:12,“line”:{“color”:“white”,“width”:0.5}},“type”:“scatter”},{“x”:[“9.87”,“9.93”,“10.0”,“10.61”,“11.06”,“11.48”,“12.11”,“12.78”,“12.88”,“13.58”,“13.81”,“13.97”,“14.11”,“14.17”,“15.39”,“15.46”,“17.05”,“17.11”,“17.42”,“17.65”,“17.94”,“19.64”,“21.23”,“22.93”,“0.0”,“0.07”,“0.38”,“1.05”,“2.19”,“2.19”,“2.98”,“3.12”,“3.6”,“3.99”,“4.07”,“4.33”,“4.42”,“4.52”,“6.43”,“6.79”,“6.88”,“6.92”,“7.0”,“7.19”,“7.26”,“7.27”,“7.42”,“7.8”,“7.84”,“7.85”,“7.91”,“8.05”,“8.5”,“8.55”,“8.73”,“8.73”,“8.87”,“9.19”,“9.23”,“9.33”,“9.47”,“9.55”,“9.96”,“10.38”,“10.42”,“10.52”,“10.62”,“10.94”,“11.2”,“11.29”,“11.39”,“11.91”,“12.22”,“12.58”,“12.75”,“12.82”,“12.87”,“13.1”,“13.2”,“13.2”,“13.28”,“14.01”,“14.1”,“14.11”,“14.12”,“14.17”,“14.36”,“14.44”,“14.47”,“14.58”,“14.74”,“14.74”,“14.95”,“15.0”,“15.04”,“15.12”,“15.14”,“15.16”,“15.2”,“15.21”,“15.29”,“15.3”,“15.32”,“15.41”,“15.41”,“15.51”,“15.56”,“15.62”,“15.75”,“15.77”,“15.88”,“15.9”,“16.01”,“16.1”,“16.12”,“16.16”,“16.17”,“16.18”,“16.21”,“16.24”,“16.29”,“16.35”,“16.4”,“16.41”,“16.43”,“16.45”,“16.46”,“16.49”,“16.54”,“16.65”,“16.71”,“16.71”,“16.73”,“16.76”,“16.77”,“16.9”,“16.9”,“16.92”,“16.92”,“16.94”,“16.95”,“16.95”,“17.12”,“17.13”,“17.22”,“17.23”,“17.23”,“17.25”,“17.29”,“17.5”,“17.56”,“17.62”,“17.62”,“17.66”,“17.69”,“17.75”,“17.77”,“17.79”,“17.83”,“17.83”,“17.83”,“18.12”,“18.17”,“18.18”,“18.2”,“18.33”,“18.35”,“18.35”,“18.49”,“18.5”,“18.53”,“18.53”,“18.62”,“18.7”,“18.79”,“18.81”,“18.82”,“18.99”,“19.0”,“19.07”,“19.09”,“19.11”,“19.16”,“19.25”,“19.3”,“19.33”,“19.46”,“19.5”,“19.56”,“19.65”,“19.84”,“19.91”,“20.02”,“20.25”,“20.26”,“20.34”,“20.49”,“20.83”,“21.25”,“21.29”,“21.5”,“22.02”,“22.16”,“22.23”,“22.57”,“22.77”,“23.15”,“23.92”,“24.06”,“25.94”,“26.09”,“26.59”,“29.07”,“29.67”,“30.13”,“30.67”,“31.93”,“32.92”,“36.41”],“y”:[-213,-422,-376,-513,-162,33,-234,-223,-626,-949,-1253,-741,-800,-1063,-1241,-761,-916,-975,-819,-590,-511,-1034,-3291,-3330,3659.0000000000005,3709.0000000000005,3912.0000000000005,3952.0000000000005,6016,5251,6827,6685,6560,10671,9579,8084,7869,7694,7336,7901,6936,8118,11226,11798,15596,19867,18691,17810,16933,18085,18525,18946,19164,20096,22463,20889,21285,25712,24678,23959,26856,27710,28479,28734,29643,29046,29666,29586,29849,29547,29202,30389,32415,29787,26773,25389,21218,21910,22257,22807,23554,23521,27531,27144,27952,28329,28205,27917,27674,26097,26309,26233,26101,25544,26196,26464,26707,26635,26869,26953,27721,27455,27310,27080,27895,28897,29845,29815,32204,32096,32093,32270,32308,32123,32031,33017,32742,32498,32513,32637,32603,32345,32758,32929,34369,34435,34354,34407,34413,32495,34192,35863,36530,36507,36484,36571,36532,36515,37581,37515,37368,37263,37334,37216,37187,37054,37113,37032,36975,36921,36524,37432,39781,39600,39789,39899,39751,39693,39683,39740,39677,39735,40675,40731,40708,40765,40876,42024,40408,40173,40239,40270,40302,40296,40286,39043,39098,38940,38966,39678,39723,39820,39743,39124,39152,38946,38947,39152,39121,39294,39449,29290,29121,29189,28922,27466,25222,24715,24690,24564,24800,27409,27523,27042,25719,25877,25413,25729,25404,27990,24551,24344,25373,24299,25261,26028,27224,28506,30231],“mode”:“markers”,“marker”:{“color”:“rgb(142, 124, 195)”,“size”:12,“line”:{“color”:“white”,“width”:0.5}},“type”:“scatter”,“xaxis”:“x2”,“yaxis”:“y2”}]

Two objects in the data array, one without any xaxis, yaxis field, and the other with xaxis: x2, and yxaxis: y2.

After further research, it seems the example itself does not work. There are supposed to be two subplots, not one.

https://plot.ly/~GarrettFitzgerald/90#plot

var trace1 = {
x: [1, 2, 3],
y: [4, 5, 6],
type: ‘scatter’
};

var trace2 = {
x: [20, 30, 40],
y: [50, 60, 70],
type: ‘scatter’,
xaxis: ‘x2’,
yaxis: ‘y’,
};

var data = [trace1, trace2];

var layout = {
grid: { subplots: [[‘xy’, ‘x2y’]] },
};

plotly.plot(data, layout);