Skip to content

TSProcessor - save as SVG should allow saving as viewBox #233

@smalers

Description

@smalers

By default, the ProcessTSProduct command will save an SVG output file using the JFreeChart library with default settings. The top of the file has something like:

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:jfreesvg='http://www.jfree.org/jfreesvg/svg' width='600' height='400' text-rendering='auto' 

This causes the graph to be fixed size, which does not take advantage of SVG's ability to resize while retaining detail. If the top of the file is output as shown below, the file will resize, for example if viewed in a web browser and the window is resized. Need to have a way for the command to allow the user to specify command parameters to control the file properties.

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:jfreesvg='http://www.jfree.org/jfreesvg/svg' viewBox='0 0 721 400' preserveAspectRatio='slice' text-rendering='auto' 

Metadata

Metadata

Assignees

Labels

SSize: day or lessenhancementlowPriority: planned for future

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions