Package org.krysalis.jcharts.properties

Examples of org.krysalis.jcharts.properties.AxisProperties


    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();
    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "barChart" );
  }
View Full Code Here


    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();
    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "barLabels" );
  }
View Full Code Here

    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();
    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "barBackground" );
  }
View Full Code Here

    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();
    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "stackedBarChart" );
  }
View Full Code Here

    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();
    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "clusteredBarChart" );
  }
View Full Code Here

    IAxisDataSeries dataSeries = new DataSeries( axisLabels, "Wonka Bars", "Years", "Oompa Loompa Productivity" );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );


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

    axisProperties.getYAxisProperties().setShowGridLines( AxisTypeProperties.GRID_LINES_ALL );
    axisProperties.getYAxisProperties().setAxisStroke( new ChartStroke( new BasicStroke( 1.5f ), Color.red ) );
      axisProperties.getYAxisProperties().setGridLineChartStroke( new ChartStroke( new BasicStroke( 1.5f ), Color.red ) );

    //axisProperties.setXAxisLabelsAreVertical( true );


    DataAxisProperties yAxis = (DataAxisProperties) axisProperties.getYAxisProperties();
//    yAxis.setUsePercentSigns( true );
//    yAxis.setUserDefinedScale( 0, 0.05 );
    yAxis.setNumItems( 10 );
    yAxis.setRoundToNearest( -3 );
View Full Code Here


  /*****************************************************************************************/
  private void horizontalPlots() throws ChartDataException
  {
    AxisProperties axisProperties = new AxisProperties( true );

    double[][] data = {{3444d, 1506.3d, 2777d, 2550.345d, 659.667d, 950.6644d, 4500.3453d, 1200.67583d}};
    String[] xAxisLabels = {"January", "Febuary", "March", "April", "May", "June", "July", "August"};
    String[] legendLabels = {"New Bugs in Windows Per Month"};
    Paint[] paints = {Color.blue};
View Full Code Here


  /*****************************************************************************************/
  private void rounding() throws ChartDataException
  {
    AxisProperties axisProperties = new AxisProperties();

    DataAxisProperties dataAxisProperties = (DataAxisProperties) axisProperties.getYAxisProperties();
    dataAxisProperties.setRoundToNearest( -2 );

    super.exportImage( this.getChart( axisProperties ), "axisRounding" );
  }
View Full Code Here


  /*****************************************************************************************/
  private void userDefinedScale() throws ChartDataException, PropertyException
  {
    AxisProperties axisProperties = new AxisProperties();

    DataAxisProperties dataAxisProperties = (DataAxisProperties) axisProperties.getYAxisProperties();
    dataAxisProperties.setUserDefinedScale( -2000, 850 );
    dataAxisProperties.setRoundToNearest( 0 );

    super.exportImage( this.getChart( axisProperties ), "userDefinedScale" );
  }
View Full Code Here

    DataAxisProperties yAxisProperties= new DataAxisProperties();
    yAxisProperties.setUserDefinedScale( -30, 50 );
    yAxisProperties.setNumItems( 10 );
    yAxisProperties.setRoundToNearest( 1 );

    AxisProperties axisProperties = new AxisProperties( xAxisProperties, yAxisProperties );
      ChartProperties chartProperties = new ChartProperties();
    LegendProperties legendProperties = new LegendProperties();

    ScatterPlotAxisChart scatterPlotAxisChart = new ScatterPlotAxisChart( scatterPlotDataSeries,
                                                   chartProperties,
View Full Code Here

TOP

Related Classes of org.krysalis.jcharts.properties.AxisProperties

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.