Package org.krysalis.jcharts.chartData

Examples of org.krysalis.jcharts.chartData.AxisChartDataSet


      double[][] data= new double[][]{ { 250, 45, -36, 66, 145, 80, 55  } };
    String[] legendLabels= { "Bugs" };
    Paint[] paints= new Paint[]{ Color.blue.darker() };
    BarChartProperties barChartProperties= new BarChartProperties();
    AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR, barChartProperties );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();
    LegendProperties legendProperties= new LegendProperties();
View Full Code Here


    valueLabelRenderer.setValueLabelPosition( ValueLabelPosition.AT_TOP );
    valueLabelRenderer.useVerticalLabels( false );
    barChartProperties.addPostRenderEventListener( valueLabelRenderer );


    AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR, barChartProperties );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties( true );
    LegendProperties legendProperties= new LegendProperties();
View Full Code Here

    //---paints over the background of every other bar area.
    BackgroundRenderer backgroundRenderer = new BackgroundRenderer( new Color( 20, 20, 20, 50 ) );
    barChartProperties.addPreRenderEventListener( backgroundRenderer );

    AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR, barChartProperties );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();
    LegendProperties legendProperties= new LegendProperties();
View Full Code Here

    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();
    AxisProperties axisProperties= new AxisProperties();
    LegendProperties legendProperties= new LegendProperties();
View Full Code Here

    double[][] data= new double[][]{ { 250, 45, -36, 66, 145, 80, 55  }, { 150, 15, 6, 62, -54, 10, 84  }, { 20, 145, 36, 6, 45, 18, } };
    String[] legendLabels= { "Bugs", "Security Holes", "Backdoors" };
    Paint[] paints= TestDataGenerator.getRandomPaints( 3 );
    ClusteredBarChartProperties clusteredBarChartProperties= new ClusteredBarChartProperties();
    AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR_CLUSTERED, clusteredBarChartProperties );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();
    LegendProperties legendProperties= new LegendProperties();
View Full Code Here

  {
    double[][] data= TestDataGenerator.getRandomNumbers( 3, 10, 0, 5000 );
    Paint[] paints= TestDataGenerator.getRandomPaints( 3 );
    String[] legendLabels= { "Bugs", "Security Holes", "Backdoors" };
    AreaChartProperties areaChartProperties= new AreaChartProperties();
    AxisChartDataSet axisChartDataSet = new AxisChartDataSet( data, legendLabels, paints, ChartType.AREA, areaChartProperties );

    String[] xAxisLabels= { "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004" };
    DataSeries dataSeries = new DataSeries( xAxisLabels, "Years", "Incidence", "Micro$oft At Work"  );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );
View Full Code Here

  {
    double[][] data= TestDataGenerator.getRandomNumbers( 3, 10, 0, 5000 );
    Paint[] paints= TestDataGenerator.getRandomPaints( 3 );
    String[] legendLabels= { "Bugs", "Security Holes", "Backdoors" };
    StackedAreaChartProperties stackedAreaChartProperties= new StackedAreaChartProperties();
    AxisChartDataSet axisChartDataSet = new AxisChartDataSet( data, legendLabels, paints, ChartType.AREA_STACKED, stackedAreaChartProperties );

    String[] xAxisLabels= { "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004" };
    DataSeries dataSeries = new DataSeries( xAxisLabels, "Years", "Incidence", "Micro$oft At Work"  );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );
View Full Code Here

              axisProperties.getYAxisProperties().setMaxRightAxis((double) (maxDataClustAbs));
            }
        }
      }

      dataSeries.addIAxisPlotDataSet( new AxisChartDataSet( dataClust, legendLabelsClust, clustPaints, ChartType.BAR_CLUSTERED, clusteredBarChartProperties ) );
      dataSeries.addIAxisPlotDataSet( new AxisChartDataSet( dataLine, legendLabelsLine, linePaints, ChartType.LINE, lineChartProperties ) );
      AxisChart axisChart = new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, width, height );
      ServletEncoderHelper.encodeJPEG13( axisChart, 1.0f, httpServletResponse );
    }
    catch( Throwable throwable ) {
View Full Code Here

    Shape[] shapes= { PointChartProperties.SHAPE_DIAMOND, PointChartProperties.SHAPE_TRIANGLE };
    boolean[] fillPointFlags= { true, true };
    Paint[] outlinePaints= { Color.black, Color.black };
    PointChartProperties pointChartProperties= new PointChartProperties( shapes, fillPointFlags, outlinePaints );

    AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ChartType.POINT, pointChartProperties );

    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();
View Full Code Here

    Shape[] shapes= { PointChartProperties.SHAPE_CIRCLE };
    boolean[] fillPointFlags= { false };
    Paint[] outlinePaints= { Color.red };
    PointChartProperties pointChartProperties= new PointChartProperties( shapes, fillPointFlags, outlinePaints );

    AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ChartType.POINT, pointChartProperties );

    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();
View Full Code Here

TOP

Related Classes of org.krysalis.jcharts.chartData.AxisChartDataSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.