krysalis-jcharts/src/java/org/krysalis/jcharts/chartData/processors AxisChartDataProcessor.java,1.4,1.5

Gann Bierner <[email protected]> Mon, 18 Oct 2004 03:04:18 +0000
Newsgroups gmane.comp.krysalis.jcharts.cvs
Message-ID <[email protected]>
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/chartData/processors
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10190/src/java/org/krysalis/jcharts/chartData/processors

Modified Files:
	AxisChartDataProcessor.java 
Log Message:
Allow horizontal/bar combo charts.  Allow rendering of combo charts in order of addition.  Fixed bug when rending axis chart with no data.

Index: AxisChartDataProcessor.java
===================================================================
RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/chartData/processors/AxisChartDataProcessor.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** AxisChartDataProcessor.java	21 Sep 2004 03:49:50 -0000	1.4
--- AxisChartDataProcessor.java	18 Oct 2004 03:04:15 -0000	1.5
***************
*** 128,134 ****
  		//---need to set the number of items on the scale in case there are no labels displayed
  		Iterator iterator = axisChart.getIAxisDataSeries().getIAxisPlotDataSetIterator();
! 		IAxisPlotDataSet iAxisPlotDataSet = ( IAxisPlotDataSet ) iterator.next();
! 		this.numberOfElementsInADataSet= iAxisPlotDataSet.getNumberOfDataItems();
! 
  
  //todo does it make sense to do the legend label processing here?
--- 128,138 ----
  		//---need to set the number of items on the scale in case there are no labels displayed
  		Iterator iterator = axisChart.getIAxisDataSeries().getIAxisPlotDataSetIterator();
!                 if (iterator.hasNext()) {
!                     IAxisPlotDataSet iAxisPlotDataSet = ( IAxisPlotDataSet ) iterator.next();
!                     this.numberOfElementsInADataSet= iAxisPlotDataSet.getNumberOfDataItems();
!                 } else {
!                     this.numberOfElementsInADataSet= 0;
!                 }
!                 
  
  //todo does it make sense to do the legend label processing here?



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl