22

I am using ApexCharts to show some stats. I wanted to hide the x-axis tooltip which is marked in red in the imageenter image description here

junedchhipa
  • 4,694
  • 1
  • 28
  • 28
Archana
  • 233
  • 1
  • 2
  • 7

4 Answers4

43
options = {
  xaxis: {
    tooltip: {
      enabled: false
    }
  }
}

https://apexcharts.com/docs/options/xaxis/#tooltip

junedchhipa
  • 4,694
  • 1
  • 28
  • 28
2

In another way, you can hide Xaxis using:

xaxis: {
  labels: {
    show: false
  }
}
Mahrez BenHamad
  • 1,791
  • 1
  • 15
  • 21
0

xaxis: { tooltip: { enabled: false }, labels: { show: true } },

Eibs
  • 86
  • 8
-1

I don't think the above actually answer the OPs question. Based on their image and question they just wanted to remove the x-axis value at the bottom. You can do that by using CSS as follows:

.apexcharts-xaxistooltip-bottom {
  display: none;
}
Gavin
  • 460
  • 4
  • 11