vade
vade

Reputation: 73

How do I remove the legend, labels and all the numbers from the graphs from apex charts

enter image description here

I've tried everything I can. If anyone can help me out, it'll be great. I want the numbers on the graphs and the legend gone

Upvotes: 5

Views: 22105

Answers (2)

Helo
Helo

Reputation: 1

const options = {
  dataLabels: {
    enabled: false
  },
  legend: {
    show: false
  }
}

Upvotes: 0

junedchhipa
junedchhipa

Reputation: 5607

Legend and data-labels can be disabled by

const options = {
  dataLabels: {
    enabled: false
  },
  legend: {
    show: false
  }
}

EDIT

If you want to remove all the additional graphics, try using sparkline which will only keep the chart and hide everything.

sparkline: {
  enabled: true
}

Upvotes: 12

Related Questions