Categories

Friday, April 19, 2024
#919814419350 therichposts@gmail.com
Angular6Chartjs

Solved : Hovering over Chartjs Bar Chart Showing Old Data In Angular

Solved : Hovering over Chartjs Bar Chart Showing Old Data In Angular - The Rich Post

Hello to all, welcome to the therichpost.com. In this I will tell you how to Solved : hovering over Chartjs Bar Chart showing old data In Angular?

I am doing this code in Angular 6.

Chartjs is the very popular for barchart, line chart and many more. I was facing one problem during working with chartjs in my Angular application. When I change my chartjs bar chart event then hover again, It was showing me old data and this was the big issue for me but I am able to solved this and today I am sharing that code with all of you.

Here is the code for solved hovering over Chartjs Bar Chart showing old data and you can add this into your app.component.ts file:

window: any;
if(this.window != undefined)
this.window.destroy();
this.window = new Chart(this.ctx, {});

 If you have any query related to this post, then do comment below or ask questions.

Thank you

Therichpost.com

 

therichpost
the authortherichpost
Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am freelance full stack developer. I love coding. I know WordPress, Core php, Angularjs, Angular 14, Angular 15, Angular 16, Angular 17, Bootstrap 5, Nodejs, Laravel, Codeigniter, Shopify, Squarespace, jQuery, Google Map Api, Vuejs, Reactjs, Big commerce etc.

21 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.