ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Wish: get SVG output to use <path> instead of couples of <line> and <use>
Posted by Olivier Msc on Mar-15-2016 06:59
The count of nodes in the parsed DOM of those chart SVG files would be much lower and that has advantages for some parsers having to interpret the SVG content.

  Re: Wish: get SVG output to use <path> instead of couples of <line> and <use>
Posted by Peter Kwan on Mar-16-2016 02:04
Hi Oliver,

Thanks a lot for your valuable suggestion. We will consider this in future versions of ChartDirector.

We are aware that the SVG created by ChartDirector is not the shortest. In many case, it is because in the "general case", the longer form may be necessary.

For example, in ChartDirector a "path" can have multiple line styles and colors (by using xZoneColor, yZoneColor, etc.). To implement this in SVG, we use the <path> <use> combination. In practice, most of the paths have one line style and color, and can be implemented using just one <path> tag. Since the <path> <use> implementation has already been developed and it can handle the "general case", we have not developed another implementation optimized for the special case of "single color - single style".

Regards
Peter Kwan