Examples of AxisProperties


Examples of org.krysalis.jcharts.properties.AxisProperties

    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

Examples of org.krysalis.jcharts.properties.AxisProperties

    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

Examples of org.krysalis.jcharts.properties.AxisProperties

    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

Examples of org.krysalis.jcharts.properties.AxisProperties

    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

Examples of org.krysalis.jcharts.properties.AxisProperties


  /*****************************************************************************************/
  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

Examples of org.krysalis.jcharts.properties.AxisProperties


  /*****************************************************************************************/
  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

Examples of org.krysalis.jcharts.properties.AxisProperties


  /*****************************************************************************************/
  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

Examples of org.krysalis.jcharts.properties.AxisProperties

    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

Examples of org.krysalis.jcharts.properties.AxisProperties

//todo what about ScaleCalculator implementations?

  /*****************************************************************************************/
  private void numberOfItemsOnYAxis() throws ChartDataException
  {
    AxisProperties axisProperties = new AxisProperties();
    DataAxisProperties dataAxisProperties = (DataAxisProperties) axisProperties.getYAxisProperties();
    dataAxisProperties.setNumItems( 8 );

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

Examples of org.krysalis.jcharts.properties.AxisProperties


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

    ChartStroke xAxisGridLines = new ChartStroke( new BasicStroke( 1.0f ), Color.red );
    axisProperties.getXAxisProperties().setGridLineChartStroke( xAxisGridLines );
    axisProperties.getXAxisProperties().setShowGridLines( AxisTypeProperties.GRID_LINES_ONLY_WITH_LABELS );

    axisProperties.getYAxisProperties().setShowGridLines( AxisTypeProperties.GRID_LINES_NONE );


    double[][] data = {{3444d, 1506.3d, 2777d, 2550.345d, 659.667d, 950.6644d, 4500.3453d, 1200.67583d, 3000.4354d, 1268.0001d, 2444.432d, 5003d}};
    String[] xAxisLabels = {"January", "Febuary", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
    String[] legendLabels = {"New Bugs in Windows Per Month"};
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.