From: Nathaniel G. A. <nat...@ya...> - 2002-12-02 13:52:39
|
oh. that is a bug in the documentation. I will add a task to fix that. good find! --- Srini <sr...@le...> wrote: > Following code is found above the chart: This code indicates only one legend > label. > > String[] xAxisLabels= { "1998", "1999", "2000", "2001", "2002", "2003", > "2004" }; > String xAxisTitle= "Years"; > String yAxisTitle= "Problems"; > String title= "Micro$oft at Work"; > DataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, > title ); > > double[][] data= { .... }; > String[] legendLabels= { "Bugs" }; > Paint[] paints= ...; > > ClusteredBarChartProperties clusteredBarChartProperties= new > ClusteredBarChartProperties(); > AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, > paints, ChartType.BAR_CLUSTERED, clusteredBarChartProperties ); > > dataSeries.addIAxisChartDataSet( axisChartDataSet ); > > ChartProperties chartProperties= new ChartProperties(); > AxisProperties axisProperties= new AxisProperties(); > LegendProperties legendProperties= new LegendProperties(); > > AxisChart axisChart= new AxisChart( dataSeries, chartProperties, > axisProperties, legendProperties, 500, 300 ); > > ===== An easy read on your Digital Rights Disappearing [http://newsforge.com/newsforge/02/10/21/1449250.shtml?tid=19] __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |