Examples of DataSeries


Examples of org.krysalis.jcharts.chartData.DataSeries

    {
      String[] xAxisLabels = {"1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004"};
      String xAxisTitle = "Years";
      String yAxisTitle = "Problems";
      String title = "Micro$oft At Work";
      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.DataSeries

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

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

    String[] legendLabels= new String[]{ "Bugs", "Security Holes", "Backdoors" };
    dataSeries.addIAxisPlotDataSet( AxisChartsGuide.createAxisChartDataSet( ChartType.LINE, lineChartProperties, 3, legendLabels, 200, 5000 ) );

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();

    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );
View Full Code Here

Examples of org.krysalis.jcharts.chartData.DataSeries

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

    ClusteredBarChartProperties clusteredBarChartProperties= new ClusteredBarChartProperties();

    String[] legendLabels= new String[]{ "Bugs", "Security Holes", "Backdoors" };
    dataSeries.addIAxisPlotDataSet( AxisChartsGuide.createAxisChartDataSet( ChartType.BAR_CLUSTERED, clusteredBarChartProperties, 3, legendLabels, 200, 5000 ) );

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();

    LegendProperties legendProperties= new LegendProperties();
View Full Code Here

Examples of org.krysalis.jcharts.chartData.DataSeries

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

Examples of org.krysalis.jcharts.chartData.DataSeries


    AxisChartDataSet axisChartDataSet;


    DataSeries dataSeries = super.createDataSeries( dataSize );

    axisChartDataSet = super.createAxisChartDataSet( ChartType.BAR,
                                     getChartTypeProperties( numberOfDataSets ),
                                     numberOfDataSets,
                                     dataSize,
                                     -200,
                                     400 );

    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

    return dataSeries;
  }
View Full Code Here

Examples of org.krysalis.jcharts.chartData.DataSeries

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


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

Examples of org.krysalis.jcharts.chartData.DataSeries

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

    dataSeries.addIAxisPlotDataSet( AxisChartsGuide.createAxisChartDataSet( ChartType.AREA, new AreaChartProperties(), 200, 5000 ) );

    ChartProperties chartProperties = new ChartProperties();
    LegendProperties legendProperties = new LegendProperties();

    AxisChart axisChart = new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );
View Full Code Here

Examples of org.krysalis.jcharts.chartData.DataSeries

    Paint[] paints = {Color.blue};
    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

Examples of org.krysalis.jcharts.chartData.DataSeries

    Paint[] paints = {Color.blue};
    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

Examples of org.krysalis.jcharts.chartData.DataSeries

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

    AxisChart axisChart = new AxisChart( dataSeries, new ChartProperties(), new AxisProperties(), new LegendProperties(), width, height );
    super.exportImage( axisChart, "axisTitles" );

    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.