jpierce42

stroke-dasharray="undefined" in chart SVG string

Recommended Posts

Hi folks,

 

We're using the chart SVG string to export downloadable images via our own Python server-side export handler.  Recently we've noticed that some charts have many instances of 

stroke-dasharray="undefined"

which is throwing an error in CairoSVG, the Python image processing library we're using to convert the SVG data to PNG.  Do you have any idea what might be causing this undefined value?  Unfortunately I don't think I can get an example of the chart XML for you, as our error traceback doesn't show the URL of the chart the user was originally viewing - I'll work on this, but in the mean time any insight you have would be welcome.   :)

 

See attached text file for SVG content - note 14 instances of "stroke-dasharray='undefined'".

valueerror.txt

Share this post


Link to post
Share on other sites

Yes, on closer inspection I discovered that we haven't seen any instances of this error since the day we deployed version 3.4.  Assuming it's resolved.  Thanks for your help!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now