var trace1 = { x: [ '2016-08-23','2016-08-23','2016-08-23','2016-08-23','2016-08-23','2016-08-23', '2016-08-24','2016-08-24','2016-08-24','2016-08-24','2016-08-24','2016-08-24' ], y: [ 100,120,125,125,125,128, 115,123,121,121,121,125 ], boxpoints: false, fillcolor: "#96c8fa", line: {color: "#96c8fa"}, showlegend: false, type: "box", whiskerwidth: 0, hoverinfo: 'text', text:[ "D:2016-08-23<br>O:120<br>h:128<br>l:100<br>c:125", "D:2016-08-24<br>O:123<br>h:125<br>l:115<br>c:121" ] }; var data = [trace1]; var layout = { title: "Box TEST", xaxis: {title: "date"}, yaxis: {title: "price"} }; Plotly.plot('plotDiv', data, layout);
How do you let the display the hover text to the plot ?