Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a hover event for tooltip text #430

Open
itispal opened this issue Dec 21, 2018 · 1 comment
Open

Add a hover event for tooltip text #430

itispal opened this issue Dec 21, 2018 · 1 comment

Comments

@itispal
Copy link

itispal commented Dec 21, 2018

tooltip: {
      useHTML: true,
      shadow:false,
      //backgroundColor: 'none',
      borderWidth:0,
      borderRadius:0,
      shared: true,
      formatter: function(chart) {
        //console.log(this.point)
        var p = this.point
        let patients = ''
        p.patient_list.map((patient, index) => {
          patients+= '<div class="Second_Level_Bubble" data-patient="'+patient+'">P-'+patient+'</div>'
          return null
        })
        return ('<div class="Bubble_Container" style="width:200px;text-align:center"><p>LT : '+p.y+'</p>'+patients+'</div>')
      },
events:{
hover: function() {
console.log('------')
}
}
    },

i m trying to add an event(hover) on "Second_Level_Bubble" class elements but it's not fire an event. is there anyway to do this?

@itispal itispal changed the title Add a click event for tooltip text Add a hover event for tooltip text Dec 22, 2018
@kirjs
Copy link
Owner

kirjs commented Oct 13, 2019

Please help us by reproducing your issue here:
https://stackblitz.com/fork/react-highcharts-demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants