0

How to disable just the click effect on the billboard.js Donut Chart?

I tried different variants, but nothing works.

enter image description here

Aljoša
  • 65
  • 5

1 Answers1

0

After some variations, I found the solution. This worked for me on billboard.js Donut Chart (v 3.0.3)

legend: {
  item: {
    onclick: function(id) {
      false;
    },
  },
},

I used the reference from here https://naver.github.io/billboard.js/release/latest/doc/Options.html#.legend

Aljoša
  • 65
  • 5
  • how would it be if you want to avoid disabling all data groups so that at least one remains displayed? – Tomas Jun 01 '23 at 13:45