jeudi 29 octobre 2020

How do you disable tooltips in ember-cli-chart?

I am using ember-cli-chart which is a wrapper for chart js. I am trying to disable the tooltips.

I have tried the following code but it does nothing:

chartData: computed('model', function() {
    return {
      labels: ['1', '2'],
      datasets: [{
          label: 'Example Label',
          data: [this.model.example1, this.model.example2],
          options: {
            tooltips: {
              enabled: false,
            }
          }
      }]
    }
  }),

Why does this not disable the tooltips?




Aucun commentaire:

Enregistrer un commentaire