Package org.krysalis.jcharts.chartData

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


      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

    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

  {
    int dataSize = (int) TestDataGenerator.getRandomNumber( 2, 25 );
    int numberOfDataSets = 1; //(int) TestDataGenerator.getRandomNumber( 1, 3 );


    AxisChartDataSet axisChartDataSet;


    DataSeries dataSeries = super.createDataSeries( dataSize );

    axisChartDataSet = super.createAxisChartDataSet( ChartType.BAR,
View Full Code Here


    double[][] data = {{.40, .60, .04, .3 }};
    Paint[] paints = {Color.green};
    String[] legendLabels = {"Test Legend Label"};
    AxisChartDataSet axisChartDataSet = new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR, barChartProperties );

    String[] axisLabels = {"1900", "2000", "2010", "2050" };
    //String[] axisLabels = {"1900", "1910", "1920", "1930", "1940", "1950", "1960", "1970", "1980", "1990", "2000" };
    IAxisDataSeries dataSeries = new DataSeries( axisLabels, "Wonka Bars", "Years", "Oompa Loompa Productivity" );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );
View Full Code Here

    String xAxisTitle = "Months";
    String yAxisTitle = "Bugs";
    String title = "Micro$oft At Work";

    DataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, title );
    AxisChartDataSet axisChartDataSet = new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR, new BarChartProperties() );

    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

    AxisChart axisChart = new AxisChart( dataSeries, new ChartProperties(), axisProperties, new LegendProperties(), width, height );
    super.exportImage( axisChart, "horizontalPlots" );
View Full Code Here

    String xAxisTitle = "Months";
    String yAxisTitle = "Bugs";
    String title = "Micro$oft At Work";

    DataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, title );
    AxisChartDataSet axisChartDataSet = new AxisChartDataSet( data, legendLabels, paints, ChartType.AREA, new AreaChartProperties() );

    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

    AxisChart axisChart = new AxisChart( dataSeries, new ChartProperties(), axisProperties, new LegendProperties(), width, height );
    super.exportImage( axisChart, "gridLines" );
View Full Code Here

    String[] legendLabels = {"New Bugs in Windows Per Month"};
    Paint[] paints = {Color.blue};
    String xAxisTitle = "Months";
    String yAxisTitle = "Bugs";
    String title = "Micro$oft At Work";
    AxisChartDataSet axisChartDataSet = new AxisChartDataSet( data, legendLabels, paints, ChartType.AREA, new AreaChartProperties() );


    DataSeries dataSeries = new DataSeries( xAxisLabels, null, yAxisTitle, title );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );
View Full Code Here

                                           int maxValue ) throws ChartDataException
  {
    double[][] data = TestDataGenerator.getRandomNumbers( numberOfDataSets, 7, minValue, maxValue );
    Paint[] paints = TestDataGenerator.getRandomPaints( numberOfDataSets );

    return new AxisChartDataSet( data, legendLabels, paints, chartType, chartTypeProperties );
  }
View Full Code Here

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

    return new AxisChartDataSet( data, legendLabels, paints, chartType, chartTypeProperties );
  }
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.