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
Thank you for posting your question on our forum.
You are right, the change of the number formatting does not trigger the
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.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.
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
Thank you for your feedback.
Our dev team is going to add the update which should allow triggering
getData() when the format was changed, ETA Feb 11.
We will keep you updated.
Thanks for update.
We are glad to inform you that the update for the
getData() has already been released.
You are welcome to update the component.