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

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

by therichpost
21 comments
chartjs-in-angular6

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

 

You may also like

21 comments

Lems March 16, 2019 - 1:12 am

thanks man… your the best..

Reply
Ajay Malhotra March 16, 2019 - 3:05 pm

Thank you

Reply
tukaram jahdav October 7, 2019 - 6:54 am

i have same problem please help me

Reply
Ajay Malhotra October 7, 2019 - 6:55 am

Did you apply this code?

Reply
tukaram jahdav October 7, 2019 - 7:56 am

yes i was apply this code but no show the proper result

Reply
Ajay Malhotra October 7, 2019 - 8:07 am

Email me with you code : therichposts@gmal.com

I will contact you after some time..

Reply
tukaram jahdav October 7, 2019 - 9:05 am

how to apply this code in Angular 2

Reply
Ajay Malhotra October 7, 2019 - 3:19 pm

I shared that one also for angular.

Reply
tukaram jahdav October 7, 2019 - 12:42 pm

i have line chart this chart work on the click on the search button
but i don’t have data click on the search button display chart
so it solve

Reply
Ajay Malhotra October 7, 2019 - 3:18 pm

Great..

Reply
tukaram jahdav October 15, 2019 - 7:17 am

hello

Reply
tukaram jahdav October 15, 2019 - 7:18 am

reopen the same issue please help me

Reply
Ajay Malhotra October 15, 2019 - 2:41 pm

you can share code with me.

Reply
tukaram jahdav October 17, 2019 - 10:17 am

send the code please check it send the reply

Reply
Tigran Galstyan April 16, 2020 - 9:09 pm

halp my place, a cant do it for react tsx

Reply
Ajay Malhotra April 17, 2020 - 3:01 am

I will update you.

Reply
Rodrigo Vieira May 29, 2020 - 2:21 pm

Please, help me to solve this with javascript in a ASP.Net/C# solution. The problem keep occuring…

Reply
Ajay Malhotra May 29, 2020 - 3:42 pm

I will update you soon.

Reply
Rathna Jayakanthan April 15, 2021 - 2:18 pm

Great. Thank you very much.

Reply
Rathna Jayakanthan April 15, 2021 - 2:22 pm

thank you very much. it resolved my problem.

Reply
Ajay Malhotra April 15, 2021 - 2:55 pm

Great.

Reply

Leave a Comment

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