Series.Marks.OnTop property breaks SVG export
Posted: Thu Aug 09, 2012 1:00 pm
Setting the Series.Marks.OnTop property to True results in incorreclty generated (actually corrupted) SVG export code for charts with marks: chart has incorrect position and two closing </g> tags are missing.
Replication:
1. Set Series.Marks.OnTop = True for some series of a chart with marks visible (I set it programmatically);
2. Call SVG export for the chart above (in my case programmatically genertated SVG code is saved to a file);
3. Open the resulting SVG in web browser - FireFox gives XML parse error and does not open SVG at all, IE9 displays the chart in incorrect position.
Note that adding two closing </g> tags to the end of this SVG code allows this SVG to be opened in FireFox but the position of the chart is still incorrect.
Not using Series.Marks.OnTop (meaning it is False) produces openable and correct SVG code.
I am using Steema TChart version 2012.05.
Replication:
1. Set Series.Marks.OnTop = True for some series of a chart with marks visible (I set it programmatically);
2. Call SVG export for the chart above (in my case programmatically genertated SVG code is saved to a file);
3. Open the resulting SVG in web browser - FireFox gives XML parse error and does not open SVG at all, IE9 displays the chart in incorrect position.
Note that adding two closing </g> tags to the end of this SVG code allows this SVG to be opened in FireFox but the position of the chart is still incorrect.
Not using Series.Marks.OnTop (meaning it is False) produces openable and correct SVG code.
I am using Steema TChart version 2012.05.