How to remove series value from hover tooltip apex charts pie

Viewed 2840

enter image description here

I want to just remove the number 33 from this, I want it to just show series-4

enter image description here

what to do to hide it from tooltip?

1 Answers

You can customize the tooltip by providing formatters. In this case, you'll want to override both the title (seriesName) and the y value label. In place of the y value, return a blank string.

You'll need to provide a formatter for the title as well because not doing so will default to the series title being shown followed by a colon.

  tooltip: {
    y: {
      formatter: function(val) {
        return ''
      },
      title: {
        formatter: function (seriesName) {
          return seriesName
        }
      }
    }
  }
Related