Apexcharts.js: Same series is passed to tooltip value formatter when shared tooltip is true in multiple-y-axis graph

Created on 13 Sep 2018  路  7Comments  路  Source: apexcharts/apexcharts.js

Hello,

when I hover over series data (multiple-y-axis), my options.tooltip.y.formatter callback gets data for just one series so I'm unable to reflect different formats to different y-axis.

bug

Most helpful comment

Sorry, I didn't updated the docs for it
Actually, you need to pass an array to tooltip.y property, I'll show a demo

All 7 comments

I confirm this issue.
Just had a quick look at tooltip.y code and indeed it ignores multiple y-axis.
Will be fixed soon, thanks for reporting

Fixed in v1.5.3

Unfortunately it didn't fix the problem for me. Imagine I have multiple y axis graph so when a shared tooltip is being shown I want to add a unit to my values so I need this callback to be called multiple times for each value (y axis) with either series name or index in order to properly identify what kind of value it is.

Sorry, I didn't updated the docs for it
Actually, you need to pass an array to tooltip.y property, I'll show a demo

Where did you put the demo, please?

Demo

Updated the docs too

Man. Thank you very much. Works perfectly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

artfulrobot picture artfulrobot  路  3Comments

felixalguzman picture felixalguzman  路  3Comments

piyushSinghalDemo picture piyushSinghalDemo  路  3Comments

jeroenpol picture jeroenpol  路  3Comments

georgehardy picture georgehardy  路  3Comments