score:1
Accepted answer
i found the solution!
just by adding mouseout
event to the chart events
option, i got it resolved.
the custom added tooltip now hides when mouse is moved or clicked outside the chart area.
code:
options: {
events: ["click", "mouseout"],
....
...
here is the link to my updated js fiddel example.
Source: stackoverflow.com
Related Query
- ChartJs (ver: 2.8.0): Custom tooltip does not hide if clicked (or mouse pointer is moved) outside the chart canvas area
- Chart.js click event to open a custom tooltip does not work sometimes
- Chartjs v3 tooltip label not showing tooltip label color on custom calbacks
- show label in tooltip but not in x axis for chartjs line chart
- ChartJs custom tooltip position
- chartjs height does not follow parent container
- Chart JS custom tooltip not showing
- ChartJS multiple tooltip callbacks not working
- Create an interactive custom tooltip for chartjs
- ChartJS v2 custom tooltip for rLabel
- ChartJS - Custom tooltip with icon
- chartjs plugin datalabels does not show value on charts
- Chartjs bar-chart does not render when values are equal
- Bar Chart of ChartJS does not Render
- Chartjs not working with d3 from csv source
- Chartjs and ChartDataLabels does not work in mdb5 pro version 2
- Chartjs does not show annotations when x axis is of type time
- How to create a custom tooltip for chartJS graph with data in JSON array in JavaScript?
- Chartjs does not show on pdf in yii2 despite showing in html view
- ChartJS does not display when using local Chart.js file
- Chartjs not giving 'xLabel' properly on tooltip
- How to hide the labels of graphs that are not toggled in ChartJS
- Chartjs / ng2-charts line on hover does not work
- Custom text in tooltip and legend: ChartJs
- Chartjs does not render chart when set responsive option to true
- Tooltip does not appear
- Chartjs 3 ToolTip styling is not being picked up
- How to toggle between Custom tooltip and normal tooltip in chartjs and angular
- ChartJs Memory Leak | Garbage Collection does not clean Chart Object or Arrays after render
- ChartJS add custom tooltip to a stacked bar chart
More Query from same tag
- how to change Y axis value dynamically based on user input in Chartjs for Line chart?
- Chart.js - annotation Vertical line moves with mouse in Angular 6
- ChartJS does not render correctly
- Sorting arrays and comparing array values php
- Angular 9 chartJs is not updating view after data update
- chart.js TypeError: item is null
- Chart not displaying from JSON data
- create Chart using Chartjs and PHP
- chart.js with JSON Data on Same page not displaying
- ChartJs 2.0 How do I obtain point information being clicked upon?
- special characters in title of charts of Charts Js
- Display two datasets from an array using chart.js in node.js
- Chartjs multi dimensional bar chart
- chart.js how to make x-axis labels position top
- react-chartjs-2 Line Chart not updating with State
- Customize legend AngularJS
- Chart.JS Underfined with JSON
- How can I keep label string length from affecting size of a Polar Area chart?
- Place tooltip on the outer side of the doughnut chart
- Chart.JS: Show custom labels permanentely on doughnut chart
- How do I import chartjs as an es6 module?
- How can I move a label left, paint it black, or remove it (Chart.JS)?
- How to fill my chart (chart.js) with my own data from API
- Dynamically update the options of a chart in chartjs using Javascript
- Create Chart.js pie chart data from PHP
- How to create chart from a dict?
- How to sum the array value in javascript like chartjs data array and input value sum
- Anyone know how to add extra comma and string to array?
- how to add Thousand separator in pie chart tooltips of charts.js
- Chart.js: Get point index from chart.getPointsAtEvent(e)