🍉 Meet Flexmonster Pivot Table & Charts 2.9.Check out all hot features!
Get Free Trial

Flexmonster format does not reflects to Google-chart and E-chart?

Saiprasad Devare asked on January 18, 2019

Hello there,
I am facing the problem where, I am changing the format of the data i.e changing the decimal places for 0 to something 2, and the data that gets to google chart is not getting updated ones. Flexmonster gives me the default data i.e without decimal places, but which i changed to decimal places 2. I am using this format for showing on the graph as “Annotation” i.e label. 
Flexmonster version = “2.6.3”.
Please provide you input

5 answers

Iryna Kulchytska Iryna Kulchytska Flexmonster January 18, 2019

Hello Saiprasad,
Thank you for posting your question on our forum.
You are right, the change of the number formatting does not trigger the updateHandler in getData() API call for external charts like Google Charts. I would like to suggest listening to the number format change (reportchange event) and when it is triggered re-run the code for creating the Google chart. Here is a sample for this approach: https://jsfiddle.net/flexmonster/acv8jgo9/
Do you use flexmonster.googlecharts.getNumberFormat(format) and flexmonster.googlecharts.getNumberFormatPattern(format) in your code to convert the Flexmonster number formatting to the Google Charts format? They are used in the sample above and might be useful for your case as well.
Please let me know if the reply is helpful for your case.
Kind regards,

Saiprasad Devare January 20, 2019

Hi Iryna,
Thanks for quick reply. Right now, we are not using the flexmonster.googlecharts.getNumberFormat(format) and flexmonster.googlecharts.getNumberFormatPattern(format) as shown in jsfiddle.
One more things, whether this is going to fix in latter flex-monster update.  As you said “it does not trigger the updateHandler(update) in getData()

Dmytro Zvazhii Dmytro Zvazhii Flexmonster January 22, 2019

Hello Saiprasad,
Thank you for your feedback.
Our dev team is going to add the update which should allow triggering updateHandler in getData() when the format was changed, ETA Feb 11.
We will keep you updated.

Saiprasad Devare January 22, 2019

Hello Dmytro,
Thanks for update.

Dmytro Zvazhii Dmytro Zvazhii Flexmonster February 12, 2019

Hello Saiprasad,
We are glad to inform you that the update for the getData() has already been released.
You are welcome to update the component.

Please login or Register to Submit Answer