Chart.js #animation test01
HTML
<script src="https://www.chartjs.org/dist/master/Chart.min.js"></script>
<canvas id="chart"></canvas>
JavaScript
new Chart(document.getElementById('chart'), {
type: 'line',
data: {
labels: [0, 1, 2, 3],
datasets: [{
data: [0, 2, 1 ,3],
pointHoverRadius: 20
}]
},
options: {
hover: {
mode: 'nearest',
intersect: false
},
tooltips: {
mode: 'nearest',
intersect: false
}
}
});