score:8
Accepted answer
you can fix the issue by making var chart;
global (put it right before your myfunction()
call). then your destroy should be if(chart) chart.destroy();
Source: stackoverflow.com
Related Query
- Chart Js Show the old data on mouse hover
- Chart js shows old data on mouse hover
- Chart.js Mouse Over Show Old Chart Data
- how to remove old data from Chart js on mouse hover using mvc c#?
- chart js tooltip how to control the data that show
- Chart JS show multiple data points for the same label
- Angular chart how to show the legend data value by default along with legend name
- Chart js shows old chart data when hover
- How to show tooltip value of all data falling on the same axis in chart js?
- How to show the chartjs bar chart data values labels as text?
- ng2-Chart: can we show the tooltip data of pie chart on load?
- Chart Piechart in only show percentage on hover but it shows data and label with percentage both i just want to show percentage only percentage
- How to start the chart from specific time and offest hour and then show the data on chart from target datetime in chartjs
- angular-chart.js doughnut chart : how to show data in the center of a chart
- Chart.js how to make chart only show the most recent data
- charts.js chart showing old data on hover
- How to show the data labels without hovering the mouse on the bubbles
- Chartjs Bar Chart showing old data when hovering
- chartjs show dot point on hover over line chart
- Chart looks only grey, does not show the color - Chartjs,discordjs
- Add all data in the tooltip of Chart JS
- Draw a horizontal and vertical line on mouse hover in chart js
- Show data dynamically in line chart - ChartJS
- Chartjs - show elements in all datasets on hover using bar chart
- Remove the label and show only value in tooltips of a bar chart
- ChartJs line chart - display permanent icon above some data points with text on hover
- ChartJS: Show all labels of a mixed chart in the tooltip
- React ChartJS 2 : Get data on clicking the chart
- PrimeNg bar chart how to show a label for the y-axis
- Mouse over on line chart data active other data-set in Chart.js
More Query from same tag
- Remove redundant legends on the chart using generateLabels with ChartJS v3
- Chart js not display graph
- Cannot read properties of undefined with react-chartjs-2 and chart js problem
- what is fastest way to draw chartjs charts
- Data Visualization DataTables.js using chart.js
- ChartJS set color of Line chart points depending on Y Axis
- Load data into chartjs using promises in vue.js
- Unable to make y-axis to begin at zero on Charts.js v2.1.4
- Dynamic Chart in PHP using Chart js
- Chartjs not reading data from vuex mapped state
- How to set default colour for bars in Chart.js
- Building a 24h visualisation with chartjs
- How to subscribe to elements in a response object
- Stacked Horizontal Bars not in align Chart JS
- chart.js ajax pushing another dataset always "undefined"
- Assigning data structures to chartjs properties, NOT individually
- Limit chart.js X axis ticks
- How to hide tooltips with their respective dataset
- How to make Chart JS responsive?
- i18n with chart.js (javascript)
- How can I use an array of {x,y} objects to make a chart?
- Chart js - set width to a specific bar
- Not sure how to rerender chart in the app
- Chart.js two Y-Axis, one with negative values
- How to change z-index of chart js tooltip?
- Adding a Date adapter for Time Cartesian axis from a cdn
- Chart js - Line chart - How to hide the data label on the line?
- Chart.js -> line chart -> multiple points with the same X
- How to change position of labels in Doughnut chart?
- How to set gradient in legend box color in Chart,js