We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

Charts fail with errors when using certain calculated measures

Answered
Yousif Ahmed asked on October 28, 2019

Hi all,
 
We have recently upgraded from version 2.7.14 to 2.7.17 in order to make use of the new 'chartclick' event, and we have noticed that our charts are no longer rendering when we apply a weighted average calculated measure to the slice. The browser console shows lots of errors from d3:
 
"Error: <rect> attribute height: Expected length, "NaN"."
"Error: <rect> attribute y: Expected length, "NaN"."
I have made a jsfiddle example that exhibits the same problem:
 
https://jsfiddle.net/yahmed/oxh0nq29/15/
 
The exact same report was rendering correctly in previous versions - I have narrowed down the version in which the behaviour changed to 2.7.16 (charts render correctly in 2.7.15). Reading through the release notes I cannot see any obvious changes that would have an effect on this.
 
This is really important for us, firstly because this kind of weighted average calculated measure is used heavily in our app, and secondly because we really need the chartclick event added in 2.7.17 and right now this is blocking us from being able to upgrade
 
Any help you can offer would be greatly appreciated
 
Kind Regards,
 
Yousif

2 answers

Public
Vera Didenko Vera Didenko Flexmonster October 29, 2019

Hello, Yousif,
 
Thank you for writing to us and for providing a JSFiddle example for illustration.
This helped to understand the problem better.
 
Our team will provide the fix to this issue in the minor release version with the ETA 18th of November.
 
You are welcome to contact us in case questions arise.
 
Best Regards,
Vera

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster November 19, 2019

Hello, Yousif,
 
We are glad to inform you that the issue with charts when there is division by zero was fixed.
 
This is provided in the 2.7.19 version of Flexmonster: https://www.flexmonster.com/release-notes/.
 
You are welcome to update the component: https://www.flexmonster.com/doc/updating-to-the-latest-version/.
 
Please let us know if everything works.
 
Best Regards,
Illia

Please login or Register to Submit Answer