Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <head>
  <!-- Plotly.js -->
  <script src="https://rawgit.com/plotly/plotly.js/master/dist/plotly.js"></script>
</head>

<body>
  <button id="resize-button" style="display:block;">resize to cause issue ropensci/plotly 525</button>
    <button id="originalsize-button" style="display:block;">back to original</button>
  <div id="myDiv" style="width: 450px; height: 700px;"><!-- Plotly chart will be drawn inside this DIV --></div>
  <script>
    <!-- JAVASCRIPT CODE GOES HERE -->
  </script>
</body>
              
            
!

CSS

              
                
              
            
!

JS

              
                var d3 = Plotly.d3;

var x = JSON.parse('{"data":[{"x":[15.2],"y":[150],"text":"mpg: 15.2<br>hp: 150<br>rowname: AMC Javelin","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(248,118,109)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(248,118,109)"}},"name":"AMC Javelin","legendgroup":"AMC Javelin","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[10.4],"y":[205],"text":"mpg: 10.4<br>hp: 205<br>rowname: Cadillac Fleetwood","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(240,126,76)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(240,126,76)"}},"name":"Cadillac Fleetwood","legendgroup":"Cadillac Fleetwood","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[13.3],"y":[245],"text":"mpg: 13.3<br>hp: 245<br>rowname: Camaro Z28","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(230,134,19)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(230,134,19)"}},"name":"Camaro Z28","legendgroup":"Camaro Z28","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[14.7],"y":[230],"text":"mpg: 14.7<br>hp: 230<br>rowname: Chrysler Imperial","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(218,142,0)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(218,142,0)"}},"name":"Chrysler Imperial","legendgroup":"Chrysler Imperial","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[22.8],"y":[93],"text":"mpg: 22.8<br>hp: 93<br>rowname: Datsun 710","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(205,150,0)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(205,150,0)"}},"name":"Datsun 710","legendgroup":"Datsun 710","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[15.5],"y":[150],"text":"mpg: 15.5<br>hp: 150<br>rowname: Dodge Challenger","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(189,157,0)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(189,157,0)"}},"name":"Dodge Challenger","legendgroup":"Dodge Challenger","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[14.3],"y":[245],"text":"mpg: 14.3<br>hp: 245<br>rowname: Duster 360","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(171,163,0)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(171,163,0)"}},"name":"Duster 360","legendgroup":"Duster 360","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[19.7],"y":[175],"text":"mpg: 19.7<br>hp: 175<br>rowname: Ferrari Dino","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(150,169,0)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(150,169,0)"}},"name":"Ferrari Dino","legendgroup":"Ferrari Dino","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[32.4],"y":[66],"text":"mpg: 32.4<br>hp: 66<br>rowname: Fiat 128","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(124,174,0)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(124,174,0)"}},"name":"Fiat 128","legendgroup":"Fiat 128","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[27.3],"y":[66],"text":"mpg: 27.3<br>hp: 66<br>rowname: Fiat X1-9","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(89,179,0)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(89,179,0)"}},"name":"Fiat X1-9","legendgroup":"Fiat X1-9","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[15.8],"y":[264],"text":"mpg: 15.8<br>hp: 264<br>rowname: Ford Pantera L","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(12,183,2)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(12,183,2)"}},"name":"Ford Pantera L","legendgroup":"Ford Pantera L","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[30.4],"y":[52],"text":"mpg: 30.4<br>hp: 52<br>rowname: Honda Civic","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(0,187,70)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(0,187,70)"}},"name":"Honda Civic","legendgroup":"Honda Civic","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[21.4],"y":[110],"text":"mpg: 21.4<br>hp: 110<br>rowname: Hornet 4 Drive","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(0,190,103)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(0,190,103)"}},"name":"Hornet 4 Drive","legendgroup":"Hornet 4 Drive","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[18.7],"y":[175],"text":"mpg: 18.7<br>hp: 175<br>rowname: Hornet Sportabout","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(0,192,130)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(0,192,130)"}},"name":"Hornet Sportabout","legendgroup":"Hornet Sportabout","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[10.4],"y":[215],"text":"mpg: 10.4<br>hp: 215<br>rowname: Lincoln Continental","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(0,193,154)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(0,193,154)"}},"name":"Lincoln Continental","legendgroup":"Lincoln Continental","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[30.4],"y":[113],"text":"mpg: 30.4<br>hp: 113<br>rowname: Lotus Europa","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(0,192,176)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(0,192,176)"}},"name":"Lotus Europa","legendgroup":"Lotus Europa","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[15],"y":[335],"text":"mpg: 15<br>hp: 335<br>rowname: Maserati Bora","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(0,191,196)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(0,191,196)"}},"name":"Maserati Bora","legendgroup":"Maserati Bora","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[21],"y":[110],"text":"mpg: 21<br>hp: 110<br>rowname: Mazda RX4","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(0,188,215)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(0,188,215)"}},"name":"Mazda RX4","legendgroup":"Mazda RX4","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[21],"y":[110],"text":"mpg: 21<br>hp: 110<br>rowname: Mazda RX4 Wag","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(0,184,231)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(0,184,231)"}},"name":"Mazda RX4 Wag","legendgroup":"Mazda RX4 Wag","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[22.8],"y":[95],"text":"mpg: 22.8<br>hp: 95<br>rowname: Merc 230","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(0,177,244)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(0,177,244)"}},"name":"Merc 230","legendgroup":"Merc 230","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[24.4],"y":[62],"text":"mpg: 24.4<br>hp: 62<br>rowname: Merc 240D","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(0,169,255)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(0,169,255)"}},"name":"Merc 240D","legendgroup":"Merc 240D","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[19.2],"y":[123],"text":"mpg: 19.2<br>hp: 123<br>rowname: Merc 280","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(73,160,255)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(73,160,255)"}},"name":"Merc 280","legendgroup":"Merc 280","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[17.8],"y":[123],"text":"mpg: 17.8<br>hp: 123<br>rowname: Merc 280C","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(132,148,255)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(132,148,255)"}},"name":"Merc 280C","legendgroup":"Merc 280C","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[16.4],"y":[180],"text":"mpg: 16.4<br>hp: 180<br>rowname: Merc 450SE","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(170,136,255)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(170,136,255)"}},"name":"Merc 450SE","legendgroup":"Merc 450SE","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[17.3],"y":[180],"text":"mpg: 17.3<br>hp: 180<br>rowname: Merc 450SL","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(199,124,255)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(199,124,255)"}},"name":"Merc 450SL","legendgroup":"Merc 450SL","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[15.2],"y":[180],"text":"mpg: 15.2<br>hp: 180<br>rowname: Merc 450SLC","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(221,113,250)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(221,113,250)"}},"name":"Merc 450SLC","legendgroup":"Merc 450SLC","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[19.2],"y":[175],"text":"mpg: 19.2<br>hp: 175<br>rowname: Pontiac Firebird","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(237,104,237)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(237,104,237)"}},"name":"Pontiac Firebird","legendgroup":"Pontiac Firebird","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[26],"y":[91],"text":"mpg: 26<br>hp: 91<br>rowname: Porsche 914-2","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(248,98,222)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(248,98,222)"}},"name":"Porsche 914-2","legendgroup":"Porsche 914-2","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[33.9],"y":[65],"text":"mpg: 33.9<br>hp: 65<br>rowname: Toyota Corolla","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(255,97,204)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(255,97,204)"}},"name":"Toyota Corolla","legendgroup":"Toyota Corolla","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[21.5],"y":[97],"text":"mpg: 21.5<br>hp: 97<br>rowname: Toyota Corona","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(255,99,184)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(255,99,184)"}},"name":"Toyota Corona","legendgroup":"Toyota Corona","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[18.1],"y":[105],"text":"mpg: 18.1<br>hp: 105<br>rowname: Valiant","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(255,104,161)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(255,104,161)"}},"name":"Valiant","legendgroup":"Valiant","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[21.4],"y":[109],"text":"mpg: 21.4<br>hp: 109<br>rowname: Volvo 142E","key":null,"type":"scatter","mode":"markers","marker":{"autocolorscale":false,"color":"rgb(254,110,136)","opacity":1,"size":5.66929133858268,"symbol":"circle","line":{"width":1.88976377952756,"color":"rgb(254,110,136)"}},"name":"Volvo 142E","legendgroup":"Volvo 142E","showlegend":true,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[10.4,10.6974683544304,10.9949367088608,11.2924050632911,11.5898734177215,11.8873417721519,12.1848101265823,12.4822784810127,12.779746835443,13.0772151898734,13.3746835443038,13.6721518987342,13.9696202531646,14.2670886075949,14.5645569620253,14.8620253164557,15.1594936708861,15.4569620253165,15.7544303797468,16.0518987341772,16.3493670886076,16.646835443038,16.9443037974684,17.2417721518987,17.5392405063291,17.8367088607595,18.1341772151899,18.4316455696203,18.7291139240506,19.026582278481,19.3240506329114,19.6215189873418,19.9189873417722,20.2164556962025,20.5139240506329,20.8113924050633,21.1088607594937,21.4063291139241,21.7037974683544,22.0012658227848,22.2987341772152,22.5962025316456,22.8936708860759,23.1911392405063,23.4886075949367,23.7860759493671,24.0835443037975,24.3810126582278,24.6784810126582,24.9759493670886,25.273417721519,25.5708860759494,25.8683544303797,26.1658227848101,26.4632911392405,26.7607594936709,27.0582278481013,27.3556962025316,27.653164556962,27.9506329113924,28.2481012658228,28.5455696202532,28.8430379746835,29.1405063291139,29.4379746835443,29.7354430379747,30.0329113924051,30.3303797468354,30.6278481012658,30.9253164556962,31.2227848101266,31.520253164557,31.8177215189873,32.1151898734177,32.4126582278481,32.7101265822785,33.0075949367089,33.3050632911392,33.6025316455696,33.9],"y":[217.538969021973,220.418099131752,222.855973764645,224.8578709471,226.429068705565,227.57484506649,228.300478056322,228.61124570151,228.512426028503,228.009297063748,227.101611500102,225.694634515989,223.816096862856,221.550282822465,218.981476676577,216.088879234587,212.547082952934,208.658745297025,204.278935213402,198.838476198358,192.622814640737,185.932303112894,179.067294187184,172.32814043596,166.015194431578,160.425117308924,155.469227083055,150.87116330859,146.483482444155,142.158740948375,137.812218473997,133.828723659393,130.17271390597,126.68542612697,123.208097235641,119.581964145227,115.549951794157,111.127263213198,107.43113506866,103.763679570741,100.229890719645,96.9347625155803,93.9742550143756,91.2884448599325,88.8292001679313,86.5817855696966,84.531465696553,82.6635051798248,80.9631686508366,79.415720740913,78.0064260813785,76.7205493035577,75.5433550387749,74.4601079183548,73.4560725736219,72.5165136359007,71.6266957365157,70.7741109241734,70.0276435945081,69.4173488917451,68.9316583039376,68.5590033191389,68.2878154254024,68.1065261107814,68.0035668633293,67.9673691710993,67.9863645221448,68.0489844045191,68.1576636804997,68.3394311305571,68.595790394362,68.9270460913972,69.3335028411458,69.8154652630909,70.3732379767154,71.0071256015023,71.7174327569346,72.5044640624954,73.3685241376676,74.3099176019342],"text":["mpg: 10.4<br>hp: 217.54<br>rowname: #3366FF<br>mpg: 10.4<br>hp: 217.54","mpg: 10.7<br>hp: 220.42<br>rowname: #3366FF<br>mpg: 10.7<br>hp: 220.42","mpg: 10.99<br>hp: 222.86<br>rowname: #3366FF<br>mpg: 10.99<br>hp: 222.86","mpg: 11.29<br>hp: 224.86<br>rowname: #3366FF<br>mpg: 11.29<br>hp: 224.86","mpg: 11.59<br>hp: 226.43<br>rowname: #3366FF<br>mpg: 11.59<br>hp: 226.43","mpg: 11.89<br>hp: 227.57<br>rowname: #3366FF<br>mpg: 11.89<br>hp: 227.57","mpg: 12.18<br>hp: 228.3<br>rowname: #3366FF<br>mpg: 12.18<br>hp: 228.3","mpg: 12.48<br>hp: 228.61<br>rowname: #3366FF<br>mpg: 12.48<br>hp: 228.61","mpg: 12.78<br>hp: 228.51<br>rowname: #3366FF<br>mpg: 12.78<br>hp: 228.51","mpg: 13.08<br>hp: 228.01<br>rowname: #3366FF<br>mpg: 13.08<br>hp: 228.01","mpg: 13.37<br>hp: 227.1<br>rowname: #3366FF<br>mpg: 13.37<br>hp: 227.1","mpg: 13.67<br>hp: 225.69<br>rowname: #3366FF<br>mpg: 13.67<br>hp: 225.69","mpg: 13.97<br>hp: 223.82<br>rowname: #3366FF<br>mpg: 13.97<br>hp: 223.82","mpg: 14.27<br>hp: 221.55<br>rowname: #3366FF<br>mpg: 14.27<br>hp: 221.55","mpg: 14.56<br>hp: 218.98<br>rowname: #3366FF<br>mpg: 14.56<br>hp: 218.98","mpg: 14.86<br>hp: 216.09<br>rowname: #3366FF<br>mpg: 14.86<br>hp: 216.09","mpg: 15.16<br>hp: 212.55<br>rowname: #3366FF<br>mpg: 15.16<br>hp: 212.55","mpg: 15.46<br>hp: 208.66<br>rowname: #3366FF<br>mpg: 15.46<br>hp: 208.66","mpg: 15.75<br>hp: 204.28<br>rowname: #3366FF<br>mpg: 15.75<br>hp: 204.28","mpg: 16.05<br>hp: 198.84<br>rowname: #3366FF<br>mpg: 16.05<br>hp: 198.84","mpg: 16.35<br>hp: 192.62<br>rowname: #3366FF<br>mpg: 16.35<br>hp: 192.62","mpg: 16.65<br>hp: 185.93<br>rowname: #3366FF<br>mpg: 16.65<br>hp: 185.93","mpg: 16.94<br>hp: 179.07<br>rowname: #3366FF<br>mpg: 16.94<br>hp: 179.07","mpg: 17.24<br>hp: 172.33<br>rowname: #3366FF<br>mpg: 17.24<br>hp: 172.33","mpg: 17.54<br>hp: 166.02<br>rowname: #3366FF<br>mpg: 17.54<br>hp: 166.02","mpg: 17.84<br>hp: 160.43<br>rowname: #3366FF<br>mpg: 17.84<br>hp: 160.43","mpg: 18.13<br>hp: 155.47<br>rowname: #3366FF<br>mpg: 18.13<br>hp: 155.47","mpg: 18.43<br>hp: 150.87<br>rowname: #3366FF<br>mpg: 18.43<br>hp: 150.87","mpg: 18.73<br>hp: 146.48<br>rowname: #3366FF<br>mpg: 18.73<br>hp: 146.48","mpg: 19.03<br>hp: 142.16<br>rowname: #3366FF<br>mpg: 19.03<br>hp: 142.16","mpg: 19.32<br>hp: 137.81<br>rowname: #3366FF<br>mpg: 19.32<br>hp: 137.81","mpg: 19.62<br>hp: 133.83<br>rowname: #3366FF<br>mpg: 19.62<br>hp: 133.83","mpg: 19.92<br>hp: 130.17<br>rowname: #3366FF<br>mpg: 19.92<br>hp: 130.17","mpg: 20.22<br>hp: 126.69<br>rowname: #3366FF<br>mpg: 20.22<br>hp: 126.69","mpg: 20.51<br>hp: 123.21<br>rowname: #3366FF<br>mpg: 20.51<br>hp: 123.21","mpg: 20.81<br>hp: 119.58<br>rowname: #3366FF<br>mpg: 20.81<br>hp: 119.58","mpg: 21.11<br>hp: 115.55<br>rowname: #3366FF<br>mpg: 21.11<br>hp: 115.55","mpg: 21.41<br>hp: 111.13<br>rowname: #3366FF<br>mpg: 21.41<br>hp: 111.13","mpg: 21.7<br>hp: 107.43<br>rowname: #3366FF<br>mpg: 21.7<br>hp: 107.43","mpg: 22<br>hp: 103.76<br>rowname: #3366FF<br>mpg: 22<br>hp: 103.76","mpg: 22.3<br>hp: 100.23<br>rowname: #3366FF<br>mpg: 22.3<br>hp: 100.23","mpg: 22.6<br>hp: 96.93<br>rowname: #3366FF<br>mpg: 22.6<br>hp: 96.93","mpg: 22.89<br>hp: 93.97<br>rowname: #3366FF<br>mpg: 22.89<br>hp: 93.97","mpg: 23.19<br>hp: 91.29<br>rowname: #3366FF<br>mpg: 23.19<br>hp: 91.29","mpg: 23.49<br>hp: 88.83<br>rowname: #3366FF<br>mpg: 23.49<br>hp: 88.83","mpg: 23.79<br>hp: 86.58<br>rowname: #3366FF<br>mpg: 23.79<br>hp: 86.58","mpg: 24.08<br>hp: 84.53<br>rowname: #3366FF<br>mpg: 24.08<br>hp: 84.53","mpg: 24.38<br>hp: 82.66<br>rowname: #3366FF<br>mpg: 24.38<br>hp: 82.66","mpg: 24.68<br>hp: 80.96<br>rowname: #3366FF<br>mpg: 24.68<br>hp: 80.96","mpg: 24.98<br>hp: 79.42<br>rowname: #3366FF<br>mpg: 24.98<br>hp: 79.42","mpg: 25.27<br>hp: 78.01<br>rowname: #3366FF<br>mpg: 25.27<br>hp: 78.01","mpg: 25.57<br>hp: 76.72<br>rowname: #3366FF<br>mpg: 25.57<br>hp: 76.72","mpg: 25.87<br>hp: 75.54<br>rowname: #3366FF<br>mpg: 25.87<br>hp: 75.54","mpg: 26.17<br>hp: 74.46<br>rowname: #3366FF<br>mpg: 26.17<br>hp: 74.46","mpg: 26.46<br>hp: 73.46<br>rowname: #3366FF<br>mpg: 26.46<br>hp: 73.46","mpg: 26.76<br>hp: 72.52<br>rowname: #3366FF<br>mpg: 26.76<br>hp: 72.52","mpg: 27.06<br>hp: 71.63<br>rowname: #3366FF<br>mpg: 27.06<br>hp: 71.63","mpg: 27.36<br>hp: 70.77<br>rowname: #3366FF<br>mpg: 27.36<br>hp: 70.77","mpg: 27.65<br>hp: 70.03<br>rowname: #3366FF<br>mpg: 27.65<br>hp: 70.03","mpg: 27.95<br>hp: 69.42<br>rowname: #3366FF<br>mpg: 27.95<br>hp: 69.42","mpg: 28.25<br>hp: 68.93<br>rowname: #3366FF<br>mpg: 28.25<br>hp: 68.93","mpg: 28.55<br>hp: 68.56<br>rowname: #3366FF<br>mpg: 28.55<br>hp: 68.56","mpg: 28.84<br>hp: 68.29<br>rowname: #3366FF<br>mpg: 28.84<br>hp: 68.29","mpg: 29.14<br>hp: 68.11<br>rowname: #3366FF<br>mpg: 29.14<br>hp: 68.11","mpg: 29.44<br>hp: 68<br>rowname: #3366FF<br>mpg: 29.44<br>hp: 68","mpg: 29.74<br>hp: 67.97<br>rowname: #3366FF<br>mpg: 29.74<br>hp: 67.97","mpg: 30.03<br>hp: 67.99<br>rowname: #3366FF<br>mpg: 30.03<br>hp: 67.99","mpg: 30.33<br>hp: 68.05<br>rowname: #3366FF<br>mpg: 30.33<br>hp: 68.05","mpg: 30.63<br>hp: 68.16<br>rowname: #3366FF<br>mpg: 30.63<br>hp: 68.16","mpg: 30.93<br>hp: 68.34<br>rowname: #3366FF<br>mpg: 30.93<br>hp: 68.34","mpg: 31.22<br>hp: 68.6<br>rowname: #3366FF<br>mpg: 31.22<br>hp: 68.6","mpg: 31.52<br>hp: 68.93<br>rowname: #3366FF<br>mpg: 31.52<br>hp: 68.93","mpg: 31.82<br>hp: 69.33<br>rowname: #3366FF<br>mpg: 31.82<br>hp: 69.33","mpg: 32.12<br>hp: 69.82<br>rowname: #3366FF<br>mpg: 32.12<br>hp: 69.82","mpg: 32.41<br>hp: 70.37<br>rowname: #3366FF<br>mpg: 32.41<br>hp: 70.37","mpg: 32.71<br>hp: 71.01<br>rowname: #3366FF<br>mpg: 32.71<br>hp: 71.01","mpg: 33.01<br>hp: 71.72<br>rowname: #3366FF<br>mpg: 33.01<br>hp: 71.72","mpg: 33.31<br>hp: 72.5<br>rowname: #3366FF<br>mpg: 33.31<br>hp: 72.5","mpg: 33.6<br>hp: 73.37<br>rowname: #3366FF<br>mpg: 33.6<br>hp: 73.37","mpg: 33.9<br>hp: 74.31<br>rowname: #3366FF<br>mpg: 33.9<br>hp: 74.31"],"type":"scatter","mode":"lines","name":"fitted values","line":{"width":3.77952755905512,"color":"rgb(51,102,255)","dash":"solid"},"showlegend":false,"xaxis":"x","yaxis":"y","hoverinfo":"text"},{"x":[10.4,10.6974683544304,10.9949367088608,11.2924050632911,11.5898734177215,11.8873417721519,12.1848101265823,12.4822784810127,12.779746835443,13.0772151898734,13.3746835443038,13.6721518987342,13.9696202531646,14.2670886075949,14.5645569620253,14.8620253164557,15.1594936708861,15.4569620253165,15.7544303797468,16.0518987341772,16.3493670886076,16.646835443038,16.9443037974684,17.2417721518987,17.5392405063291,17.8367088607595,18.1341772151899,18.4316455696203,18.7291139240506,19.026582278481,19.3240506329114,19.6215189873418,19.9189873417722,20.2164556962025,20.5139240506329,20.8113924050633,21.1088607594937,21.4063291139241,21.7037974683544,22.0012658227848,22.2987341772152,22.5962025316456,22.8936708860759,23.1911392405063,23.4886075949367,23.7860759493671,24.0835443037975,24.3810126582278,24.6784810126582,24.9759493670886,25.273417721519,25.5708860759494,25.8683544303797,26.1658227848101,26.4632911392405,26.7607594936709,27.0582278481013,27.3556962025316,27.653164556962,27.9506329113924,28.2481012658228,28.5455696202532,28.8430379746835,29.1405063291139,29.4379746835443,29.7354430379747,30.0329113924051,30.3303797468354,30.6278481012658,30.9253164556962,31.2227848101266,31.520253164557,31.8177215189873,32.1151898734177,32.4126582278481,32.7101265822785,33.0075949367089,33.3050632911392,33.6025316455696,33.9,33.9,33.9,33.6025316455696,33.3050632911392,33.0075949367089,32.7101265822785,32.4126582278481,32.1151898734177,31.8177215189873,31.520253164557,31.2227848101266,30.9253164556962,30.6278481012658,30.3303797468354,30.0329113924051,29.7354430379747,29.4379746835443,29.1405063291139,28.8430379746835,28.5455696202532,28.2481012658228,27.9506329113924,27.653164556962,27.3556962025316,27.0582278481013,26.7607594936709,26.4632911392405,26.1658227848101,25.8683544303797,25.5708860759494,25.273417721519,24.9759493670886,24.6784810126582,24.3810126582278,24.0835443037975,23.7860759493671,23.4886075949367,23.1911392405063,22.8936708860759,22.5962025316456,22.2987341772152,22.0012658227848,21.7037974683544,21.4063291139241,21.1088607594937,20.8113924050633,20.5139240506329,20.2164556962025,19.9189873417722,19.6215189873418,19.3240506329114,19.026582278481,18.7291139240506,18.4316455696203,18.1341772151899,17.8367088607595,17.5392405063291,17.2417721518987,16.9443037974684,16.646835443038,16.3493670886076,16.0518987341772,15.7544303797468,15.4569620253165,15.1594936708861,14.8620253164557,14.5645569620253,14.2670886075949,13.9696202531646,13.6721518987342,13.3746835443038,13.0772151898734,12.779746835443,12.4822784810127,12.1848101265823,11.8873417721519,11.5898734177215,11.2924050632911,10.9949367088608,10.6974683544304,10.4,10.4],"y":[272.01104324848,269.940583366813,267.904717845934,265.919565263549,263.999045714986,262.152083324959,260.37900646759,258.667750429335,256.991003808835,255.305630270525,253.547878508186,251.518530092795,249.178872200622,246.578760591822,243.777237008244,240.698407211857,236.889381135513,232.752009292479,228.046504342572,222.14365594525,215.696302792023,209.281007025889,203.239932050816,197.653535842853,192.431935587921,187.437272345165,182.563334507946,177.982934986807,173.769697370291,169.578111877985,164.829461019155,159.885420253471,155.348180458389,151.560241815957,148.420990507421,145.358395218004,141.507058078798,137.215627050821,133.858111150887,130.762408742626,127.993052484262,125.418024886166,122.826463932073,120.347141842369,118.062639452949,115.984358302569,114.124150652215,112.489391836387,111.079228813823,109.882164899274,108.875112393784,108.023884123255,107.284900055766,106.607763686745,105.938373202806,105.222366822829,104.4089155017,103.460420573241,102.547207058101,101.761885576274,101.101184324878,100.56315528338,100.147465040655,99.856123419657,99.6946304545054,99.6734847660358,99.8099311563808,100.12972618996,100.69224014594,101.595789412228,102.883447021901,104.587995579616,106.732361301958,109.329258122658,112.382151154541,115.887109417911,119.834995145607,124.213529524774,129.008969361296,134.207313936366,14.4125212675028,14.4125212675028,17.7280789140394,20.795398600217,23.5998703682625,26.1271417850933,28.3643247988902,30.3016724035233,31.9346443803335,33.2660966031783,34.3081337668234,35.0830728488867,35.6230872150591,35.9682426190785,36.1627978879088,36.2612535761628,36.3125032721532,36.3569288019059,36.4281658101498,36.5548513548975,36.7621322829968,37.0728122072159,37.5080801309152,38.0878012751056,38.8444759713315,39.8106604489722,40.9737719444377,42.3124521499645,43.8018100217835,45.4172144838604,47.1377397689729,48.9492765825521,50.8471084878503,52.8376185232626,54.9387807408906,57.1792128368247,59.5957608829136,62.2297478774959,65.1220460966785,68.451500144995,72.4667289550289,76.7649503988557,81.0041589864337,85.0388993755752,89.5928455095167,93.8055330724503,97.9952039638613,101.810610437984,104.997247353551,107.772027065316,110.794975928839,114.739370018765,119.19726751802,123.759391630374,128.375119658164,133.412962272683,139.598453275234,147.002745029068,154.894656323552,162.5835991999,169.549326489452,175.533296451466,180.511366084232,184.565481301571,188.204784770354,191.479351257316,194.185716344909,196.521805053108,198.45332152509,199.870738939183,200.655344492018,200.712963856971,200.033848248171,198.554740973686,196.221949645055,192.997606808021,188.859091696144,183.79617663065,177.807229683356,170.895614896691,163.066894795467,272.01104324848],"text":["mpg: 10.4<br>hp: 217.54<br>rowname: #3366FF<br>mpg: 10.4<br>hp: 217.54","mpg: 10.7<br>hp: 220.42<br>rowname: #3366FF<br>mpg: 10.7<br>hp: 220.42","mpg: 10.99<br>hp: 222.86<br>rowname: #3366FF<br>mpg: 10.99<br>hp: 222.86","mpg: 11.29<br>hp: 224.86<br>rowname: #3366FF<br>mpg: 11.29<br>hp: 224.86","mpg: 11.59<br>hp: 226.43<br>rowname: #3366FF<br>mpg: 11.59<br>hp: 226.43","mpg: 11.89<br>hp: 227.57<br>rowname: #3366FF<br>mpg: 11.89<br>hp: 227.57","mpg: 12.18<br>hp: 228.3<br>rowname: #3366FF<br>mpg: 12.18<br>hp: 228.3","mpg: 12.48<br>hp: 228.61<br>rowname: #3366FF<br>mpg: 12.48<br>hp: 228.61","mpg: 12.78<br>hp: 228.51<br>rowname: #3366FF<br>mpg: 12.78<br>hp: 228.51","mpg: 13.08<br>hp: 228.01<br>rowname: #3366FF<br>mpg: 13.08<br>hp: 228.01","mpg: 13.37<br>hp: 227.1<br>rowname: #3366FF<br>mpg: 13.37<br>hp: 227.1","mpg: 13.67<br>hp: 225.69<br>rowname: #3366FF<br>mpg: 13.67<br>hp: 225.69","mpg: 13.97<br>hp: 223.82<br>rowname: #3366FF<br>mpg: 13.97<br>hp: 223.82","mpg: 14.27<br>hp: 221.55<br>rowname: #3366FF<br>mpg: 14.27<br>hp: 221.55","mpg: 14.56<br>hp: 218.98<br>rowname: #3366FF<br>mpg: 14.56<br>hp: 218.98","mpg: 14.86<br>hp: 216.09<br>rowname: #3366FF<br>mpg: 14.86<br>hp: 216.09","mpg: 15.16<br>hp: 212.55<br>rowname: #3366FF<br>mpg: 15.16<br>hp: 212.55","mpg: 15.46<br>hp: 208.66<br>rowname: #3366FF<br>mpg: 15.46<br>hp: 208.66","mpg: 15.75<br>hp: 204.28<br>rowname: #3366FF<br>mpg: 15.75<br>hp: 204.28","mpg: 16.05<br>hp: 198.84<br>rowname: #3366FF<br>mpg: 16.05<br>hp: 198.84","mpg: 16.35<br>hp: 192.62<br>rowname: #3366FF<br>mpg: 16.35<br>hp: 192.62","mpg: 16.65<br>hp: 185.93<br>rowname: #3366FF<br>mpg: 16.65<br>hp: 185.93","mpg: 16.94<br>hp: 179.07<br>rowname: #3366FF<br>mpg: 16.94<br>hp: 179.07","mpg: 17.24<br>hp: 172.33<br>rowname: #3366FF<br>mpg: 17.24<br>hp: 172.33","mpg: 17.54<br>hp: 166.02<br>rowname: #3366FF<br>mpg: 17.54<br>hp: 166.02","mpg: 17.84<br>hp: 160.43<br>rowname: #3366FF<br>mpg: 17.84<br>hp: 160.43","mpg: 18.13<br>hp: 155.47<br>rowname: #3366FF<br>mpg: 18.13<br>hp: 155.47","mpg: 18.43<br>hp: 150.87<br>rowname: #3366FF<br>mpg: 18.43<br>hp: 150.87","mpg: 18.73<br>hp: 146.48<br>rowname: #3366FF<br>mpg: 18.73<br>hp: 146.48","mpg: 19.03<br>hp: 142.16<br>rowname: #3366FF<br>mpg: 19.03<br>hp: 142.16","mpg: 19.32<br>hp: 137.81<br>rowname: #3366FF<br>mpg: 19.32<br>hp: 137.81","mpg: 19.62<br>hp: 133.83<br>rowname: #3366FF<br>mpg: 19.62<br>hp: 133.83","mpg: 19.92<br>hp: 130.17<br>rowname: #3366FF<br>mpg: 19.92<br>hp: 130.17","mpg: 20.22<br>hp: 126.69<br>rowname: #3366FF<br>mpg: 20.22<br>hp: 126.69","mpg: 20.51<br>hp: 123.21<br>rowname: #3366FF<br>mpg: 20.51<br>hp: 123.21","mpg: 20.81<br>hp: 119.58<br>rowname: #3366FF<br>mpg: 20.81<br>hp: 119.58","mpg: 21.11<br>hp: 115.55<br>rowname: #3366FF<br>mpg: 21.11<br>hp: 115.55","mpg: 21.41<br>hp: 111.13<br>rowname: #3366FF<br>mpg: 21.41<br>hp: 111.13","mpg: 21.7<br>hp: 107.43<br>rowname: #3366FF<br>mpg: 21.7<br>hp: 107.43","mpg: 22<br>hp: 103.76<br>rowname: #3366FF<br>mpg: 22<br>hp: 103.76","mpg: 22.3<br>hp: 100.23<br>rowname: #3366FF<br>mpg: 22.3<br>hp: 100.23","mpg: 22.6<br>hp: 96.93<br>rowname: #3366FF<br>mpg: 22.6<br>hp: 96.93","mpg: 22.89<br>hp: 93.97<br>rowname: #3366FF<br>mpg: 22.89<br>hp: 93.97","mpg: 23.19<br>hp: 91.29<br>rowname: #3366FF<br>mpg: 23.19<br>hp: 91.29","mpg: 23.49<br>hp: 88.83<br>rowname: #3366FF<br>mpg: 23.49<br>hp: 88.83","mpg: 23.79<br>hp: 86.58<br>rowname: #3366FF<br>mpg: 23.79<br>hp: 86.58","mpg: 24.08<br>hp: 84.53<br>rowname: #3366FF<br>mpg: 24.08<br>hp: 84.53","mpg: 24.38<br>hp: 82.66<br>rowname: #3366FF<br>mpg: 24.38<br>hp: 82.66","mpg: 24.68<br>hp: 80.96<br>rowname: #3366FF<br>mpg: 24.68<br>hp: 80.96","mpg: 24.98<br>hp: 79.42<br>rowname: #3366FF<br>mpg: 24.98<br>hp: 79.42","mpg: 25.27<br>hp: 78.01<br>rowname: #3366FF<br>mpg: 25.27<br>hp: 78.01","mpg: 25.57<br>hp: 76.72<br>rowname: #3366FF<br>mpg: 25.57<br>hp: 76.72","mpg: 25.87<br>hp: 75.54<br>rowname: #3366FF<br>mpg: 25.87<br>hp: 75.54","mpg: 26.17<br>hp: 74.46<br>rowname: #3366FF<br>mpg: 26.17<br>hp: 74.46","mpg: 26.46<br>hp: 73.46<br>rowname: #3366FF<br>mpg: 26.46<br>hp: 73.46","mpg: 26.76<br>hp: 72.52<br>rowname: #3366FF<br>mpg: 26.76<br>hp: 72.52","mpg: 27.06<br>hp: 71.63<br>rowname: #3366FF<br>mpg: 27.06<br>hp: 71.63","mpg: 27.36<br>hp: 70.77<br>rowname: #3366FF<br>mpg: 27.36<br>hp: 70.77","mpg: 27.65<br>hp: 70.03<br>rowname: #3366FF<br>mpg: 27.65<br>hp: 70.03","mpg: 27.95<br>hp: 69.42<br>rowname: #3366FF<br>mpg: 27.95<br>hp: 69.42","mpg: 28.25<br>hp: 68.93<br>rowname: #3366FF<br>mpg: 28.25<br>hp: 68.93","mpg: 28.55<br>hp: 68.56<br>rowname: #3366FF<br>mpg: 28.55<br>hp: 68.56","mpg: 28.84<br>hp: 68.29<br>rowname: #3366FF<br>mpg: 28.84<br>hp: 68.29","mpg: 29.14<br>hp: 68.11<br>rowname: #3366FF<br>mpg: 29.14<br>hp: 68.11","mpg: 29.44<br>hp: 68<br>rowname: #3366FF<br>mpg: 29.44<br>hp: 68","mpg: 29.74<br>hp: 67.97<br>rowname: #3366FF<br>mpg: 29.74<br>hp: 67.97","mpg: 30.03<br>hp: 67.99<br>rowname: #3366FF<br>mpg: 30.03<br>hp: 67.99","mpg: 30.33<br>hp: 68.05<br>rowname: #3366FF<br>mpg: 30.33<br>hp: 68.05","mpg: 30.63<br>hp: 68.16<br>rowname: #3366FF<br>mpg: 30.63<br>hp: 68.16","mpg: 30.93<br>hp: 68.34<br>rowname: #3366FF<br>mpg: 30.93<br>hp: 68.34","mpg: 31.22<br>hp: 68.6<br>rowname: #3366FF<br>mpg: 31.22<br>hp: 68.6","mpg: 31.52<br>hp: 68.93<br>rowname: #3366FF<br>mpg: 31.52<br>hp: 68.93","mpg: 31.82<br>hp: 69.33<br>rowname: #3366FF<br>mpg: 31.82<br>hp: 69.33","mpg: 32.12<br>hp: 69.82<br>rowname: #3366FF<br>mpg: 32.12<br>hp: 69.82","mpg: 32.41<br>hp: 70.37<br>rowname: #3366FF<br>mpg: 32.41<br>hp: 70.37","mpg: 32.71<br>hp: 71.01<br>rowname: #3366FF<br>mpg: 32.71<br>hp: 71.01","mpg: 33.01<br>hp: 71.72<br>rowname: #3366FF<br>mpg: 33.01<br>hp: 71.72","mpg: 33.31<br>hp: 72.5<br>rowname: #3366FF<br>mpg: 33.31<br>hp: 72.5","mpg: 33.6<br>hp: 73.37<br>rowname: #3366FF<br>mpg: 33.6<br>hp: 73.37","mpg: 33.9<br>hp: 74.31<br>rowname: #3366FF<br>mpg: 33.9<br>hp: 74.31","mpg: 33.9<br>hp: 74.31<br>rowname: #3366FF<br>mpg: 33.9<br>hp: 74.31","mpg: 33.9<br>hp: 74.31<br>rowname: #3366FF<br>mpg: 33.9<br>hp: 74.31","mpg: 33.6<br>hp: 73.37<br>rowname: #3366FF<br>mpg: 33.6<br>hp: 73.37","mpg: 33.31<br>hp: 72.5<br>rowname: #3366FF<br>mpg: 33.31<br>hp: 72.5","mpg: 33.01<br>hp: 71.72<br>rowname: #3366FF<br>mpg: 33.01<br>hp: 71.72","mpg: 32.71<br>hp: 71.01<br>rowname: #3366FF<br>mpg: 32.71<br>hp: 71.01","mpg: 32.41<br>hp: 70.37<br>rowname: #3366FF<br>mpg: 32.41<br>hp: 70.37","mpg: 32.12<br>hp: 69.82<br>rowname: #3366FF<br>mpg: 32.12<br>hp: 69.82","mpg: 31.82<br>hp: 69.33<br>rowname: #3366FF<br>mpg: 31.82<br>hp: 69.33","mpg: 31.52<br>hp: 68.93<br>rowname: #3366FF<br>mpg: 31.52<br>hp: 68.93","mpg: 31.22<br>hp: 68.6<br>rowname: #3366FF<br>mpg: 31.22<br>hp: 68.6","mpg: 30.93<br>hp: 68.34<br>rowname: #3366FF<br>mpg: 30.93<br>hp: 68.34","mpg: 30.63<br>hp: 68.16<br>rowname: #3366FF<br>mpg: 30.63<br>hp: 68.16","mpg: 30.33<br>hp: 68.05<br>rowname: #3366FF<br>mpg: 30.33<br>hp: 68.05","mpg: 30.03<br>hp: 67.99<br>rowname: #3366FF<br>mpg: 30.03<br>hp: 67.99","mpg: 29.74<br>hp: 67.97<br>rowname: #3366FF<br>mpg: 29.74<br>hp: 67.97","mpg: 29.44<br>hp: 68<br>rowname: #3366FF<br>mpg: 29.44<br>hp: 68","mpg: 29.14<br>hp: 68.11<br>rowname: #3366FF<br>mpg: 29.14<br>hp: 68.11","mpg: 28.84<br>hp: 68.29<br>rowname: #3366FF<br>mpg: 28.84<br>hp: 68.29","mpg: 28.55<br>hp: 68.56<br>rowname: #3366FF<br>mpg: 28.55<br>hp: 68.56","mpg: 28.25<br>hp: 68.93<br>rowname: #3366FF<br>mpg: 28.25<br>hp: 68.93","mpg: 27.95<br>hp: 69.42<br>rowname: #3366FF<br>mpg: 27.95<br>hp: 69.42","mpg: 27.65<br>hp: 70.03<br>rowname: #3366FF<br>mpg: 27.65<br>hp: 70.03","mpg: 27.36<br>hp: 70.77<br>rowname: #3366FF<br>mpg: 27.36<br>hp: 70.77","mpg: 27.06<br>hp: 71.63<br>rowname: #3366FF<br>mpg: 27.06<br>hp: 71.63","mpg: 26.76<br>hp: 72.52<br>rowname: #3366FF<br>mpg: 26.76<br>hp: 72.52","mpg: 26.46<br>hp: 73.46<br>rowname: #3366FF<br>mpg: 26.46<br>hp: 73.46","mpg: 26.17<br>hp: 74.46<br>rowname: #3366FF<br>mpg: 26.17<br>hp: 74.46","mpg: 25.87<br>hp: 75.54<br>rowname: #3366FF<br>mpg: 25.87<br>hp: 75.54","mpg: 25.57<br>hp: 76.72<br>rowname: #3366FF<br>mpg: 25.57<br>hp: 76.72","mpg: 25.27<br>hp: 78.01<br>rowname: #3366FF<br>mpg: 25.27<br>hp: 78.01","mpg: 24.98<br>hp: 79.42<br>rowname: #3366FF<br>mpg: 24.98<br>hp: 79.42","mpg: 24.68<br>hp: 80.96<br>rowname: #3366FF<br>mpg: 24.68<br>hp: 80.96","mpg: 24.38<br>hp: 82.66<br>rowname: #3366FF<br>mpg: 24.38<br>hp: 82.66","mpg: 24.08<br>hp: 84.53<br>rowname: #3366FF<br>mpg: 24.08<br>hp: 84.53","mpg: 23.79<br>hp: 86.58<br>rowname: #3366FF<br>mpg: 23.79<br>hp: 86.58","mpg: 23.49<br>hp: 88.83<br>rowname: #3366FF<br>mpg: 23.49<br>hp: 88.83","mpg: 23.19<br>hp: 91.29<br>rowname: #3366FF<br>mpg: 23.19<br>hp: 91.29","mpg: 22.89<br>hp: 93.97<br>rowname: #3366FF<br>mpg: 22.89<br>hp: 93.97","mpg: 22.6<br>hp: 96.93<br>rowname: #3366FF<br>mpg: 22.6<br>hp: 96.93","mpg: 22.3<br>hp: 100.23<br>rowname: #3366FF<br>mpg: 22.3<br>hp: 100.23","mpg: 22<br>hp: 103.76<br>rowname: #3366FF<br>mpg: 22<br>hp: 103.76","mpg: 21.7<br>hp: 107.43<br>rowname: #3366FF<br>mpg: 21.7<br>hp: 107.43","mpg: 21.41<br>hp: 111.13<br>rowname: #3366FF<br>mpg: 21.41<br>hp: 111.13","mpg: 21.11<br>hp: 115.55<br>rowname: #3366FF<br>mpg: 21.11<br>hp: 115.55","mpg: 20.81<br>hp: 119.58<br>rowname: #3366FF<br>mpg: 20.81<br>hp: 119.58","mpg: 20.51<br>hp: 123.21<br>rowname: #3366FF<br>mpg: 20.51<br>hp: 123.21","mpg: 20.22<br>hp: 126.69<br>rowname: #3366FF<br>mpg: 20.22<br>hp: 126.69","mpg: 19.92<br>hp: 130.17<br>rowname: #3366FF<br>mpg: 19.92<br>hp: 130.17","mpg: 19.62<br>hp: 133.83<br>rowname: #3366FF<br>mpg: 19.62<br>hp: 133.83","mpg: 19.32<br>hp: 137.81<br>rowname: #3366FF<br>mpg: 19.32<br>hp: 137.81","mpg: 19.03<br>hp: 142.16<br>rowname: #3366FF<br>mpg: 19.03<br>hp: 142.16","mpg: 18.73<br>hp: 146.48<br>rowname: #3366FF<br>mpg: 18.73<br>hp: 146.48","mpg: 18.43<br>hp: 150.87<br>rowname: #3366FF<br>mpg: 18.43<br>hp: 150.87","mpg: 18.13<br>hp: 155.47<br>rowname: #3366FF<br>mpg: 18.13<br>hp: 155.47","mpg: 17.84<br>hp: 160.43<br>rowname: #3366FF<br>mpg: 17.84<br>hp: 160.43","mpg: 17.54<br>hp: 166.02<br>rowname: #3366FF<br>mpg: 17.54<br>hp: 166.02","mpg: 17.24<br>hp: 172.33<br>rowname: #3366FF<br>mpg: 17.24<br>hp: 172.33","mpg: 16.94<br>hp: 179.07<br>rowname: #3366FF<br>mpg: 16.94<br>hp: 179.07","mpg: 16.65<br>hp: 185.93<br>rowname: #3366FF<br>mpg: 16.65<br>hp: 185.93","mpg: 16.35<br>hp: 192.62<br>rowname: #3366FF<br>mpg: 16.35<br>hp: 192.62","mpg: 16.05<br>hp: 198.84<br>rowname: #3366FF<br>mpg: 16.05<br>hp: 198.84","mpg: 15.75<br>hp: 204.28<br>rowname: #3366FF<br>mpg: 15.75<br>hp: 204.28","mpg: 15.46<br>hp: 208.66<br>rowname: #3366FF<br>mpg: 15.46<br>hp: 208.66","mpg: 15.16<br>hp: 212.55<br>rowname: #3366FF<br>mpg: 15.16<br>hp: 212.55","mpg: 14.86<br>hp: 216.09<br>rowname: #3366FF<br>mpg: 14.86<br>hp: 216.09","mpg: 14.56<br>hp: 218.98<br>rowname: #3366FF<br>mpg: 14.56<br>hp: 218.98","mpg: 14.27<br>hp: 221.55<br>rowname: #3366FF<br>mpg: 14.27<br>hp: 221.55","mpg: 13.97<br>hp: 223.82<br>rowname: #3366FF<br>mpg: 13.97<br>hp: 223.82","mpg: 13.67<br>hp: 225.69<br>rowname: #3366FF<br>mpg: 13.67<br>hp: 225.69","mpg: 13.37<br>hp: 227.1<br>rowname: #3366FF<br>mpg: 13.37<br>hp: 227.1","mpg: 13.08<br>hp: 228.01<br>rowname: #3366FF<br>mpg: 13.08<br>hp: 228.01","mpg: 12.78<br>hp: 228.51<br>rowname: #3366FF<br>mpg: 12.78<br>hp: 228.51","mpg: 12.48<br>hp: 228.61<br>rowname: #3366FF<br>mpg: 12.48<br>hp: 228.61","mpg: 12.18<br>hp: 228.3<br>rowname: #3366FF<br>mpg: 12.18<br>hp: 228.3","mpg: 11.89<br>hp: 227.57<br>rowname: #3366FF<br>mpg: 11.89<br>hp: 227.57","mpg: 11.59<br>hp: 226.43<br>rowname: #3366FF<br>mpg: 11.59<br>hp: 226.43","mpg: 11.29<br>hp: 224.86<br>rowname: #3366FF<br>mpg: 11.29<br>hp: 224.86","mpg: 10.99<br>hp: 222.86<br>rowname: #3366FF<br>mpg: 10.99<br>hp: 222.86","mpg: 10.7<br>hp: 220.42<br>rowname: #3366FF<br>mpg: 10.7<br>hp: 220.42","mpg: 10.4<br>hp: 217.54<br>rowname: #3366FF<br>mpg: 10.4<br>hp: 217.54","mpg: 10.4<br>hp: 217.54<br>rowname: #3366FF<br>mpg: 10.4<br>hp: 217.54"],"type":"scatter","mode":"lines","line":{"width":3.77952755905512,"color":"transparent","dash":"solid"},"fill":"tozerox","fillcolor":"rgba(153,153,153,0.4)","hoverinfo":"x+y","showlegend":false,"xaxis":"x","yaxis":"y","name":""}]}')

console.log(x);

Plotly.newPlot('myDiv', x.data, {height:700, width: 400});

d3.select("#resize-button")
  .on("click",function(){
    d3.select("#myDiv").node()._fullLayout.height=300
 
    Plotly.relayout("myDiv", {height: 300});
  });

d3.select("#originalsize-button")
  .on("click",function(){
    Plotly.relayout("myDiv", {width: 400, height: 700});
  });
              
            
!
999px

Console