chartElement.addElement( "height" ).setText( Integer.toString( height ) ); //$NON-NLS-1$
for ( int row = 0; row < chartDataDefinition.getSeriesCount(); row++ ) {
for ( int column = 0; column < chartDataDefinition.getItemCount( row ); column++ ) {
Number value = chartDataDefinition.getY( row, column );
Comparable rowKey = chartDataDefinition.getSeriesKey( row );
RegularTimePeriod columnKey = chartDataDefinition.getSeries( row ).getTimePeriod( column );
Element valueElement = chartElement.addElement( "value2D" ); //$NON-NLS-1$
valueElement.addElement( "value" ).setText( value.toString() ); //$NON-NLS-1$
valueElement.addElement( "row-key" ).setText( rowKey.toString() ); //$NON-NLS-1$
valueElement.addElement( "column-key" ).setText( columnKey.toString() ); //$NON-NLS-1$
}
}
String mapString = ImageMapUtilities.getImageMap( mapName, info );
chartElement.addElement( "imageMap" ).setText( mapString ); //$NON-NLS-1$
chartElement.addElement( "image" ).setText( fileName ); //$NON-NLS-1$