Apexcharts.js: Multi Axis Chart: set the display of tooltip of one specific y axis

Created on 9 Apr 2020  路  8Comments  路  Source: apexcharts/apexcharts.js

Hi. I am working with a Multi Axis line chart.
Is there a way to set the display of a tooltip of one specific y axis?
I can't see an option such as enabledOnSeries so I tried the following:

https://codepen.io/niklhs/pen/OJyyzoa

Is there any possibility to do this right now?

Thanks.

bug yaxis

Most helpful comment

A new release is coming in 2 days.
You will just have to update apexcharts, not vue-apexcharts

All 8 comments

To be more precise: I want the tooltip of the y axis that is not shown (index 2 of the yaxis array) to hide.

tooltip: {
    enabledOnSeries: [0, 1]
}

This should work.

Unfortunately it doesn't work for me (unless I'm doing something wrong)

{
    seriesName: 'TEAM A',
    showAlways: true,
    title: {
      text: 'A-Axis'
    },
    tooltip: {
      enabledOnSeries: [0, 1]
    }
}

This is the configuration of my first yaxis or do I have to move the tooltip object somewhere else?

Updated pen:
https://codepen.io/niklhs/pen/yLYBeJb

@junedchhipa could you please provide an example/update my existing codepen?

I'm sorry, I misunderstood the question and thought you were talking about the normal tooltip.

I just checked your codepen, and it looks like the y-axis tooltip cannot be disabled in a multi-yaxis chart.
I will address the bug soon.

Fixed it.
From the next version, this will work fine

yaxis: [
  {
    show: true,
    tooltip: {
      enabled: true
    }
  },
  {
    show: false,
    tooltip: {
      enabled: false
    }
  }
]

Thank you very much @junedchhipa!
When can we expect the new version to roll out?
Will it also be available in apexcharts-vue?

A new release is coming in 2 days.
You will just have to update apexcharts, not vue-apexcharts

Was this page helpful?
0 / 5 - 0 ratings

Related issues

georgehardy picture georgehardy  路  3Comments

jeroenpol picture jeroenpol  路  3Comments

EroTiXx picture EroTiXx  路  3Comments

tcarlsen picture tcarlsen  路  3Comments

felixalguzman picture felixalguzman  路  3Comments