Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

Export Charts error: TypeError: h.measureText is not a function

Tyson asked on March 6, 2018

We are having issues exporting flexmonster charts. Note it is only for some clients, and therefore I presume dependent on the data being exported. The js console stack trace is:

raven.js:80 Export Charts error: TypeError: h.measureText is not a function
at W.d.Element.text.renderChild (canvg.min.js?2.402:1)
at W.d.Element.text.renderChildren (canvg.min.js?2.402:1)
at W.d.Element.text.render (canvg.min.js?2.402:1)
at W.d.Element.g.renderChildren (canvg.min.js?2.402:1)
at W.d.Element.g.render (canvg.min.js?2.402:1)
at W.d.Element.g.renderChildren (canvg.min.js?2.402:1)
at W.d.Element.g.render (canvg.min.js?2.402:1)
at W.d.Element.svg.renderChildren (canvg.min.js?2.402:1)
at W.d.Element.svg.render (canvg.min.js?2.402:1)
at s (canvg.min.js?2.402:1)
at Object.W.d.loadXmlDoc (canvg.min.js?2.402:1)
at Object.W.d.loadXml (canvg.min.js?2.402:1)
at canvg (canvg.min.js?2.402:1)
at (flexmonster.js?~v=M71RHJHSS0TmNc77kRD1SLw6U1Fdn-859lRNoA41xgI1:9)
at o.Md (flexmonster.js?~v=M71RHJHSS0TmNc77kRD1SLw6U1Fdn-859lRNoA41xgI1:9)
at HTMLScriptElement.C [as onreadystatechange] (flexmonster.js?~v=M71RHJHSS0TmNc77kRD1SLw6U1Fdn-859lRNoA41xgI1:9)

Any ideas on how to resolve? Note that a reproducing sample is not going to be easy due to the data dependent nature.

5 answers

Dmytro Zvazhii Flexmonster March 6, 2018

Hello Tyson,

Could you please confirm that the issue is reproducible with the latest version of Flexmonster, which is 2.415 now? You can get the component’s version by pressing Ctrl + Alt + i. In case you need to update the component, please follow the guideline –

Waiting for the update from you.


Victor Vilaça de Freitas July 18, 2018

I have the same issue that Tyson has reported. I’ve updated to the latest version (2.5.7), and the issue seemed to be fixed, because now I can export the files. But, when I open the exported files, there is no chart in there. I’m sending the exported files in attachment.
Also, I’ve noticed that the problem only happens when I try to export PDF or Image from a Pie Chart. The other types of chart work fine.

Ian Sadovy Ian Sadovy Flexmonster July 19, 2018

Hello Victor,
Thank you for reporting.
We have reproduced the issue with pie chart export on our side and will fix it in the next minor release (ETA Aug 13).
BTW, could you please advice what the name of your company is so that we can find it in our records? This would be helpful.

Victor Vilaça de Freitas July 19, 2018

Thank you for the answer.
The name of my company is Viridis Energy. 

Dmytro Zvazhii Flexmonster August 13, 2018

Hello Victor Vilaça de Freitas,
We are glad to inform you that the version with the fix is already available on our website. You are welcome to update the component.

Please login or Register to Submit Answer