Examples of AxisChartDataSet


Examples of org.krysalis.jcharts.chartData.AxisChartDataSet

    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

Examples of org.krysalis.jcharts.chartData.AxisChartDataSet

    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

Examples of org.krysalis.jcharts.chartData.AxisChartDataSet

  {
    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

Examples of org.krysalis.jcharts.chartData.AxisChartDataSet

  {
    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

Examples of org.krysalis.jcharts.chartData.AxisChartDataSet

              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

Examples of org.krysalis.jcharts.chartData.AxisChartDataSet

    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

Examples of org.krysalis.jcharts.chartData.AxisChartDataSet

    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

Examples of org.krysalis.jcharts.chartData.AxisChartDataSet

    Shape[] shapes= { PointChartProperties.SHAPE_CIRCLE };
    boolean[] fillPointFlags= { true };
    Paint[] outlinePaints= { 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

Examples of org.krysalis.jcharts.chartData.AxisChartDataSet

      IAxisDataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, title );

      double[][] data = new double[][]{{1500, 6880, 4510, 2600, 1200, 1580, 8000, 4555, 4000, 6120}};
      String[] legendLabels = {"Bugs"};
      Paint[] paints = new Paint[]{Color.blue.darker()};
      dataSeries.addIAxisPlotDataSet( new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR, this.barChartProperties ) );

      AxisChart axisChart = new AxisChart( dataSeries, this.chartProperties, this.axisProperties, this.legendProperties, this.width, this.height );

      //---this call will render the chart to an internal BufferedImage, creating all the image map coordinates
      axisChart.renderWithImageMap();
View Full Code Here

Examples of org.krysalis.jcharts.chartData.AxisChartDataSet

    double[][] data= TestDataGenerator.getRandomNumbers( 3, 7, 0, 5000 );
    String[] legendLabels= { "Bugs", "Security Holes", "Backdoors" };
    Paint[] paints= TestDataGenerator.getRandomPaints( 3 );

    AreaChartProperties areaChartProperties= new AreaChartProperties();
    AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ChartType.AREA, areaChartProperties );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );


    data= TestDataGenerator.getRandomNumbers( 2, 7, 1000, 5000 );
    legendLabels= new String[]{ "Patches", "New Patch Bugs" };
    paints= new Paint[]{ Color.black, Color.red };

    Stroke[] strokes= { LineChartProperties.DEFAULT_LINE_STROKE, LineChartProperties.DEFAULT_LINE_STROKE };
    Shape[] shapes= { PointChartProperties.SHAPE_CIRCLE, PointChartProperties.SHAPE_TRIANGLE };
    LineChartProperties lineChartProperties= new LineChartProperties( strokes, shapes );
    axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ChartType.LINE, lineChartProperties );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );


    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.