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

Charts fail with errors when using certain calculated measures

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:
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,

2 answers

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,

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,

Please login or Register to Submit Answer