Examples of DataAxisProperties


Examples of org.krysalis.jcharts.properties.DataAxisProperties

    legendProperties.setChartFont(legendFont);
    legendProperties.setChartPadding(10);

    //Arrondi � la puissance 10
    //Round up to the power of 10
    DataAxisProperties dataAxisProperties= (DataAxisProperties) axisProperties.getYAxisProperties();
    dataAxisProperties.setRoundToNearest(1);

    //Parametrage du nombre de graduation sur l'axe des ordonn�es
    //Set the number of ticks(?) for the ordinal axis
    dataAxisProperties.setNumItems(6);

    //utilisation de la virgule s'il y a lieu (normalement non)
    // Set the use of the comma if there are any (usually not)
    dataAxisProperties.setUseCommas(false);

    //Ne pas afficher les bordures sup�rieur et droite du chart
    // Don't attach upper borders and the right of the chart
    axisProperties.getYAxisProperties().setShowEndBorder(false);
    axisProperties.getXAxisProperties().setShowEndBorder(false);
View Full Code Here

Examples of org.krysalis.jcharts.properties.DataAxisProperties

  {
    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

Examples of org.krysalis.jcharts.properties.DataAxisProperties

  static final void render( AxisChart axisChart, IStockChartDataSet iStockChartDataSet )
  {
    StockChartProperties stockChartProperties=(StockChartProperties) iStockChartDataSet.getChartTypeProperties();
    Graphics2D g2d=axisChart.getGraphics2D();

    DataAxisProperties dataAxisProperties= (DataAxisProperties) axisChart.getAxisProperties().getYAxisProperties();
      IDataSeries iDataSeries= (IDataSeries) axisChart.getIAxisDataSeries();


    //---cache the computed values
    //float[][] yAxisCoordinates=new float[ iStockChartDataSet.getNumberOfDataSets() ][ iStockChartDataSet.getNumberOfDataItems() ];
View Full Code Here

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

Examples of org.krysalis.jcharts.properties.DataAxisProperties

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



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

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

Examples of org.krysalis.jcharts.properties.DataAxisProperties

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

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

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

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