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

1 Answer 1

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

1
  • how would it be if you want to avoid disabling all data groups so that at least one remains displayed?
    – Tomas
    Jun 1 at 13:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.