@laravel_creative_3103

По какой причине datasets не скрывается после того, как label был нажат в chart js?

По какой причине в Chart js после того, как был нажат labels, информация datasets о нем не скрывается?
Вот результат:
65e21d52c84f7235715029.png

Вот опция:
export const options= (config)=> ({ data: data,
    type: "doughnut",
    aspectRatio: 0,
    options: {
        resonsive: true,
        maintainAspectRatio: false,
        radius: "80%",
        layout: {
            padding: { top: 16, bottom: 16 },
        },
        hoverOffset: 5,
        elements: {
            arc: {
                borderWidth: 0,
            },
        },
        animation: {
            animatescale: true,
            animaterotate: true,
        },
        rotation: config.rotation !== undefined ? config.rotation : 45,
        scales: {
            yAxes: [
                {
                    ticks: {
                        reverse: false,
                    },
                },
            ],
        },
        plugins: {
            legend: {
                display: true,
                position: "right",
                // onClick: function (event, legendItem) {

                // },
                labels: {
                    font: { size: 14 },
                    color: "white",
                },
            },
        },
    },
    plugins: [
        doughnutLabelsLine_v2,
        // bgColorPlugin,
        // doughnutLabel
    ],
});
  • Вопрос задан
  • 9 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы