option to disable hiding dataline by clicking on legend item

is there an option to disable the possibility to hide a dataset from the chart when clicking on the corresponding legend item? i.e. when clicking on the legend item nothing should happen!

plus i don’t find the strikethrough very pleasing when a dataset is hidden. maybe it’s possible to greyscale the legend item? or even an option to define the disabled text- and dataset-color?

Author: Fantashit

1 thought on “option to disable hiding dataline by clicking on legend item

  1. I don’t know if we will implement this in the core, but one way to disable it would be to do:

    options: {
      legend: {
        onClick: null
      }
    }

Comments are closed.