Get Free Trial
Get Free Trial

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

1 answer

Public
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

Please login or Register to Submit Answer