ApexCharts LogoAPEXCHARTS
  • Projects
  • Demos
  • Docs
  • Pricing
  • Embedded Analytics
☰
  • Get Started
  • Chart Essentials
  • Chart Types
  • Design
  • Integrations
  • How to
  • Options (Reference)
  • Methods

Formatting Axes Labels

Many times, you will find yourself in situations to change the actual text whether it be in dataLabels or in axes.

Formatting Axes Labels

Axes labels formatting can be controlled by yaxis.labels.formatter and xaxis.labels.formatter.

yaxis: {
  labels: {
    formatter: function (value) {
      return value + "$";
    }
  },
},
xaxis: {
  labels: {
    formatter: function (value) {
      return value;
    }
  }
}