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

Summary: Option to export a chart and append it into an existing svg file
Product: Java TeeChart Reporter: yeray alonso <yeray>
Component: ExportingAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

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);
}