jose_ignacio23
Posts: 4
Joined: Thu Mar 09, 2017 8:23 pm

How to change double y Axis Names

I've been trying to change the names of a couple double y-axis charts from "Values", but I can't seem to get it right.

The steps I follow are these:

1. Go to Customize
2. Select Advanced
3.Go to the Option folder titled yAxis/zAxis
4. Go to the subfolder called "title"
5. Change "text"

It doesn't work....

Here are the charts I've been working on:

https://cloud.highcharts.com/charts/ilagawi/
https://cloud.highcharts.com/charts/agewamo/
https://cloud.highcharts.com/charts/ehefefi/
https://cloud.highcharts.com/charts/ahawyti/
pawel_d
Posts: 1910
Joined: Thu Jun 02, 2016 10:28 am

Re: How to change double y Axis Names

Hi Jose,

If you are adding the second yAxis in the Custom code section, you should also add the title for specific axis there. Your code should look like this:

Code: Select all

Highcharts.extend(options, Highcharts.merge(options, {
  yAxis: [{
    title: {
      text: 'First yAxis'
    },
    opposite: false
  }, {
    title: {
      text: 'Second yAxis'
    },
    opposite: true
  }]
}));
The title.text option in Advanced section will work if you do not extend chart with additional yAxis options.

API Reference:
http://api.highcharts.com/highcharts/yAxis.title.text

Example:
http://cloud.highcharts.com/show/yhilevo

Regards.
Paweł Dalek
Highcharts Developer
jose_ignacio23
Posts: 4
Joined: Thu Mar 09, 2017 8:23 pm

Re: How to change double y Axis Names

Thank you, very much! I did it!

Return to “Highcharts Cloud”