I’d like to increase the width of the line and its points when hovering the mouse cursor over a line. Animate parameters such as marker size and line width somehow when the mouse cursor is over them. How can I do that?
<head>
<script src="https://cdn.plot.ly/plotly-2.24.2.min.js" charset="utf-8"></script>
</head>
<body>
<div id="myDiv"></div>
<script>
var data = [
{
x: ['2013-10-04 22:23:00', '2013-11-04 22:23:00', '2013-12-04 22:23:00'],
y: [1, 3, 6],
type: 'scatter',
mode: "lines+markers",
marker: {
size: 10
},
line: {
width: 4
}
}
];
Plotly.newPlot('myDiv', data);
</script>
</body>