|
From: Nathaniel G. A. <nat...@ya...> - 2003-04-22 12:14:44
|
there is code in the users guide. Just uncomment the call to the AxisProperties constructor to
make it horizontal.
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= new double[][]{ { 250, 45, 36, 66, 145, 80, 55 }, { 150, 15, 6, 62, 54, 10, 84 },
{ 250, 45, 36, 66, 145, 80, 55 } };
String[] legendLabels= { "Bugs", "Security Holes", "Backdoors" };
Paint[] paints= TestDataGenerator.getRandomPaints( 3 );
StackedBarChartProperties stackedBarChartProperties= new StackedBarChartProperties();
AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints,
ChartType.BAR_STACKED, stackedBarChartProperties );
dataSeries.addIAxisPlotDataSet( axisChartDataSet );
ChartProperties chartProperties= new ChartProperties();
//---to make this plot horizontally, pass true to the AxisProperties Constructor
//AxisProperties axisProperties= new AxisProperties( true );
AxisProperties axisProperties= new AxisProperties();
LegendProperties legendProperties= new LegendProperties();
AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties,
AxisCharts.width, AxisCharts.height );
--- "ssa...@ti..." <ssa...@ti...> wrote:
> Hello,
> I'm new in the place and i would like to know if It is possible to have the entire source code
> of the example "Horizontal Stacked Bar" at jcharts.sourceforge.net. It's exactly what i need (i
> have to to a population pyramid) but i'm really newbie and it's too hard for me (for instance)
> ...
>
> ************ VITE, C'EST LE MOMENT DE VOUS ABONNER A L'ADSL !!! **********
> Du 3 avril au 5 mai, série limitée ADSL 128K, cliquez vite ici :
> http://register.tiscali.fr/adsl/
> Offre promotionnelle soumise à conditions, réservée aux nouveaux abonnés ADSL Tiscali.
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> jCharts-users mailing list
> jCh...@li...
> https://lists.sourceforge.net/lists/listinfo/jcharts-users
=====
__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com
|