简体   繁体   中英

Highcharts X-axis and y-axis

I am using react-high-charts-official and I need to change the x-axis to a string values and y-axis to example: 1%, 2%, 3%. How do i achieve that? Also the bar graph tip should be round.

You can use axis label formatter. Reference: api.highcharts.com/highstock/yAxis.labels.formatter

 yAxis: {
  labels: {
    format: `${value} %`
  },
 }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM