KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

How to trigger "afterDatasetUpdate" hook in plugins of chart js #2643

Open DVBI opened this topic on on Apr 21, 2022 - 2 comments

DVBI commented on Apr 21, 2022

Hi, I am working on a bubble chart... there we have three inputs (x,y, and r).. here r will denote the radius of the bubble... i need to increase the bubble size without changing the value of "r"... can you help me with how can i do so? I have found solution like on "afterDatasetUpdate" hook we can increase size i can't able to trigger a function with these hooks https://stackoverflow.com/questions/63623783/change-size-of-bubble-radius-without-changing-r-value

Sebastian Morales commented on Apr 21, 2022

It looks like current Chartjs' plugins property only allows for plugin files. We will see if we could extend it to support plugin hooks like what you describe. We will post update on this matter in this topic for you. Tks,

Sebastian Morales commented on May 27, 2022

Hi, we've just added support for inline plugins for Chartjs plugin core API hooks. If you would like to try this feature pls send an email to support@koolreport.com / support@koolphp.net. Rgds,

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

ChartJS