📜  如何制作不可复制的图例chartjs - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:29.053000             🧑  作者: Mango

代码示例1
let chart = new Chart(elem.find('canvas')[0], {
                type: 'line',
                data: {
                    labels: [],
                    datasets: []
                },
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    legend: {
                        onClick: (e) => e.stopPropagation()
                    }
                }
            });