Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 812 - Option to export a chart and append it into an existing svg file
Summary: Option to export a chart and append it into an existing svg file
Status: RESOLVED FIXED
Alias: None
Product: Java TeeChart
Classification: Unclassified
Component: Exporting (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-25 11:09 EDT by yeray alonso
Modified: 2014-06-27 04:55 EDT (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2014-06-25 11:09:19 EDT
This option should remove the last line in the existing svg file (the line containing "</svg>") and then add the exported chart into the same file without the header.

Related: Option to set an origin for the chart different than 0,0 so the second chart don't overlap the first one.
Comment 1 yeray alonso 2014-06-27 04:55:09 EDT
New SVGFormat save() function that accepts a Point to start drawing the new chart and a boolean to choose if you want the new chart to be appended into the given fileName or not.
So you'll be able to do this:

try {
  tChart1.getExport().getImage().getSVG().save("E:\\tmp\\testJava1.svg");
  tChart2.getExport().getImage().getSVG().save("E:\\tmp\\testJava1.svg", new Point(tChart2.getX(), 0), true);
} catch (FileNotFoundException ex) {
  Logger.getLogger(ChartJFrame.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
  Logger.getLogger(ChartJFrame.class.getName()).log(Level.SEVERE, null, ex);
}