User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1
Hi Yash,
yep, that's how I thought that it should be implemented.
The template defines one X and Y axis, e.g. with 7 tics. The values
of the scale are populated while exporting the data and the line or
bar series are exported simply by filling the "data" elements.
Best,
Philip
Am 16.02.20 um 09:06 schrieb yash
Bharatiya:
Hi,
I think the most basic approach to export as *.svg
templates would be to use I/O methods to print XML code to a
file.
We can convert XSeriesData and YSeriesData from the given
chart using IAxisScaleConverter like you have done in
RScriptExportHandler Class
the plan to export an SVG file to Inkscape doesn't mean to
use code of Inkscape, but to produce a kind of *.svg
template for the following chart types:
* BarChart
* LineChart
* ScatterChart
* StepChart
* PieChart (will be included hopefully soon)
As SWTChart handles XY series, the template could be easily
filled with the XY data, which makes it independent of the
display size. Sanatt already did a great job to add the
Batik SVG export. Another way would be to use a template.
Best,
Philip
Am 12.02.20 um 11:18 schrieb Sanatt Abrol:
Hey Yash,
Inkscape is licensed under GPL and hence we can't
use it with Eclipse SWTChart which is licensed under
EPL 2.0 .
Best,
Sanatt
On Wed, Feb 12, 2020
at 9:59 PM yash Bharatiya <yashsoc@xxxxxxxxx>
wrote:
Hi,
Currently SWTChart uses Apache Batik's
SVGGraphics2D to export as *.svg file ,
but how do we use Inkscape inside java code for
exporting as *.svg format.
Normally we can export SWTChart as *.jpg format
and then use Inkscape to convert that .jpg file
into .svg file using Inkscape.
Is there any java support available for
Inkscape to be used like SVGGraphics2D.
Also about Extending R-Script export for
SWTChart,I saw that it is already available in the
sample charts given.
--
~~~~~~~~~~~~~~~~~~~~~~~~
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
~~~~~~~~~~~~~~~~~~~~~~~~