User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1
I would recommend to create a simple *.svg template in Inkscape for
each type, which could be used internally, see attached very rough
demo file.
The template *.svg files could be modified in a way, that certain
keywords for the X and Y axis are used and a data area is defined.
This would enable a system, that a user could use its own *.svg
templates in step 2 to export the data.
Do you know what I mean?
Best,
Philip
Am 27.02.20 um 14:07 schrieb Yash
Bharatiya:
Hi,
Yes, I meant using this SVG code generated by batik as a
reference to create the template for different charts
For e.g-
PrintWriter printWriter = null;
/*
USE PRINTWRITER TO PRINT SVG CODE TO A FILE HERE
*/
printWriter=new PrintWriter(new File(filename));
/*
printWriter.println(); // SVG code to print to the file goes inside this print statement.
the current SVG export is fine and uses Apache Batik and
other dependencies to export the data.
I would like to have a second solution without using these
dependencies, via a template. The template for Bar-, Line-
and Scatter-Charts shall define one x and one y axis, which
is populated by the export script. The line series shall be
exported as "one" connected line instead of separate
elements.
Best,
Philip
Am 26.02.20 um 15:18 schrieb Yash Bharatiya:
Hi,
I looked into how Graphics2D generated the .svg
export for different charts and found
that it consists of three sections of code-
1) General declaration of xml document and SVG
object,this will be common to all templates.
--
~~~~~~~~~~~~~~~~~~~~~~~~
OpenChrom - the open source alternative for chromatography / mass spectrometry
Dr. Philip Wenig » Founder » philip.wenig@xxxxxxxxxxxxx » http://www.openchrom.net
~~~~~~~~~~~~~~~~~~~~~~~~
--
~~~~~~~~~~~~~~~~~~~~~~~~
OpenChrom - the open source alternative for chromatography / mass spectrometry
Dr. Philip Wenig » Founder » philip.wenig@xxxxxxxxxxxxx » http://www.openchrom.net
~~~~~~~~~~~~~~~~~~~~~~~~