//LOOP
for( int i = 0; i < iDataSeries.getNumberOfAxisLabels(); i++ )
{
if( iDataSeries.getAxisLabel( i ) == null )
{
throw new ChartDataException( "None of the axis labels can be NULL." );
}
textTagGroup.addLabel( iDataSeries.getAxisLabel( i ) );
}
this.yAxis.setAxisLabelsGroup( textTagGroup );
}
}
else
{
//---X AXIS---------------------------------------------------------------------------
AxisTypeProperties axisTypeProperties = this.getAxisProperties().getXAxisProperties();
this.xAxis = new XAxis( this, axisChartDataProcessor.getNumberOfElementsInADataSet() );
if( axisTypeProperties.showAxisLabels() )
{
TextTagGroup textTagGroup = new TextTagGroup( axisTypeProperties.getScaleChartFont(), fontRenderContext );
//LOOP
for( int i = 0; i < iDataSeries.getNumberOfAxisLabels(); i++ )
{
if( iDataSeries.getAxisLabel( i ) == null )
{
throw new ChartDataException( "None of the axis labels can be NULL." );
}
textTagGroup.addLabel( iDataSeries.getAxisLabel( i ) );
}
this.xAxis.setAxisLabelsGroup( textTagGroup );