Package org.krysalis.jcharts.chartData

Examples of org.krysalis.jcharts.chartData.AxisChartDataSet


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

      AxisChart axisChart = new AxisChart( dataSeries, this.chartProperties, this.axisProperties, this.legendProperties, this.width, this.height );
      ServletEncoderHelper.encodeJPEG13( axisChart, 1.0f, httpServletResponse );
    }
    catch( Throwable throwable )
View Full Code Here


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

      double[][] data = new double[][]{{1500, 6880, 4510, 2600, -1200, -1580, 7000, 4555, 4000, 6120}};
      String[] legendLabels = {"Bugs"};
      Paint[] paints = new Paint[]{Color.yellow};
      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 );
      ServletEncoderHelper.encodeJPEG13( axisChart, 1.0f, httpServletResponse );
    }
    catch( Throwable throwable )
View Full Code Here

    Stroke[] strokes= { LineChartProperties.DEFAULT_LINE_STROKE };
    Shape[] shapes= { PointChartProperties.SHAPE_CIRCLE };
    LineChartProperties lineChartProperties= new LineChartProperties( strokes, shapes );

    AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ChartType.LINE, lineChartProperties );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

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

    strokes[ 0 ]= new BasicStroke( 3.5f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 5f, new float[]{ 5f, 5f, 10f, 5f}, 4f );
    strokes[ 1 ]= new BasicStroke( 5.0f );
    Shape[] shapes= { PointChartProperties.SHAPE_CIRCLE, null };
    LineChartProperties lineChartProperties= new LineChartProperties( strokes, shapes );

    AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ChartType.LINE, lineChartProperties );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

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

    Stroke[] strokes= { LineChartProperties.DEFAULT_LINE_STROKE };
    Shape[] shapes= { PointChartProperties.SHAPE_CIRCLE };
    LineChartProperties lineChartProperties= new LineChartProperties( strokes, shapes );

    AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ChartType.LINE, lineChartProperties );

    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

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

    double[][] data= TestDataGenerator.getRandomNumbers( 1, 7, 0, 6000 );
    String[] legendLabels= { "Bugs" };
    Paint[] paints= TestDataGenerator.getRandomPaints( 1 );

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

    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

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

    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 );

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

   ******************************************************************************************/
  DataSeries getDataSeries() throws ChartDataException
  {
    StackedBarChartProperties stackedBarChartProperties;
    DataSeries dataSeries;
    AxisChartDataSet axisChartDataSet;

    int dataSize=(int) TestDataGenerator.getRandomNumber( 1, 30 );
    int numberOfDataSets=(int) TestDataGenerator.getRandomNumber( 1, 5 );


View Full Code Here


    double[][] data = {{280, 16, 150, 90, 60, 200, 150, 60 }, {80, 216, 10, 30, 15, 90, 150, 87 } };
    Paint[] paints = {Color.yellow, Color.blue };
    String[] legendLabels = {"Test Legend Label", "second set"};
    AxisChartDataSet axisChartDataSet = new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR_STACKED, stackedBarChartProperties );

    String[] axisLabels = {"1900", "1950", "2000", "2050", "3000", "3050", "4000", "4050" };
    IAxisDataSeries dataSeries = new DataSeries( axisLabels, "Cookies", "Years", null );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );
View Full Code Here

      double[][] data= new double[][]{ { 250, 45, -36, 66, 145, 80, 55  } };
    String[] legendLabels= { "Bugs" };
    Paint[] paints= TestDataGenerator.getRandomPaints( 1 );

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

    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.