Package org.krysalis.jcharts.properties

Examples of org.krysalis.jcharts.properties.DataAxisProperties


    ScatterPlotDataSeries scatterPlotDataSeries = new ScatterPlotDataSeries( scatterPlotDataSet,
                                                     "X-Axis Title",
                                                     "Y-Axis Title",
                                                     "Chart Title" );

    DataAxisProperties xAxisProperties= new DataAxisProperties();
    xAxisProperties.setUserDefinedScale( -5, 3 );
    xAxisProperties.setNumItems( 10 );
    xAxisProperties.setRoundToNearest( 0 );

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

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

  /*****************************************************************************************/
  private void dollarSigns() throws ChartDataException
  {
    AxisProperties axisProperties = new AxisProperties();
    DataAxisProperties dataAxisProperties = (DataAxisProperties) axisProperties.getYAxisProperties();
    dataAxisProperties.setUseDollarSigns( true );
    super.exportImage( this.getChart( axisProperties ), "dollarSigns" );
  }
View Full Code Here

  /*****************************************************************************************/
  private void commas() throws ChartDataException
  {
    AxisProperties axisProperties = new AxisProperties();
    DataAxisProperties dataAxisProperties = (DataAxisProperties) axisProperties.getYAxisProperties();
    dataAxisProperties.setUseCommas( false );
    super.exportImage( this.getChart( axisProperties ), "commas" );
  }
View Full Code Here

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

    DataAxisProperties dataAxisProperties = (DataAxisProperties) axisProperties.getYAxisProperties();
    dataAxisProperties.setUserDefinedScale( -2000, 1200 );
    dataAxisProperties.setShowZeroLine( false );
    super.exportImage( this.getChart( axisProperties ), "noZeroLine" );

    dataAxisProperties.setShowZeroLine( true );

    BasicStroke stroke = new BasicStroke( 1f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 5f, new float[]{5f, 5f, 10f, 5f}, 4f );
    ChartStroke zeroLineChartStroke = new ChartStroke( stroke, Color.red );
    dataAxisProperties.setZeroLineChartStroke( zeroLineChartStroke );
    super.exportImage( this.getChart( axisProperties ), "zeroLinePaintStroke" );
  }
View Full Code Here

            dataSeries.addIAxisPlotDataSet(axisChartDataSet);
           
            ChartProperties chartProperties = new ChartProperties();
            AxisProperties axisProperties = new AxisProperties( );
            axisProperties.setXAxisLabelsAreVertical(true);
            DataAxisProperties dataAxisProperties= (DataAxisProperties) axisProperties.getYAxisProperties();
            dataAxisProperties.setRoundToNearest(-1);
            LegendProperties legendProperties = new LegendProperties();
            legendProperties.setPlacement(LegendProperties.RIGHT);
            legendProperties.setNumColumns(1);
           
            AxisChart axisChart = new AxisChart(dataSeries,chartProperties,axisProperties,legendProperties,width,height);
View Full Code Here

    float startingY;
    float width;
    float height;


    DataAxisProperties dataAxisProperties;


    if( axisChart.getAxisProperties().isPlotHorizontal() )
    {
      dataAxisProperties = (DataAxisProperties) axisChart.getAxisProperties().getXAxisProperties();
View Full Code Here

  {
    Graphics2D g2d=axisChart.getGraphics2D();
    PointChartProperties pointChartProperties=(PointChartProperties) iAxisChartDataSet.getChartTypeProperties();

    //---Point Charts can not be horizontal so we know the y-axis is DataAxisProperties
    DataAxisProperties dataAxisProperties= (DataAxisProperties) axisChart.getAxisProperties().getYAxisProperties();
    IDataSeries iDataSeries= (IDataSeries) axisChart.getIAxisDataSeries();


    float xPosition=axisChart.getXAxis().getTickStart();
    float yPosition;
View Full Code Here

TOP

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

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.