Package org.krysalis.jcharts.properties

Examples of org.krysalis.jcharts.properties.ChartProperties


   *
   **********************************************************************************************/
  public void init()
  {
    this.legendProperties = new LegendProperties();
    this.chartProperties = new ChartProperties();
    this.axisProperties = new AxisProperties( true );
    ChartFont axisScaleFont = new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 13 ), Color.black );
    axisProperties.getXAxisProperties().setScaleChartFont( axisScaleFont );
    axisProperties.getYAxisProperties().setScaleChartFont( axisScaleFont );

View Full Code Here


      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,
                                                     axisProperties,
View Full Code Here

    String[] labels= { "BMW M5", "BMW M3", "Viper GTS-R", "Corvette Z06" };
    Paint[] paints= { Color.lightGray, Color.green, Color.blue, Color.red };

    PieChartDataSet pieChartDataSet= new PieChartDataSet( "Cars That Own", data, labels, paints, pieChart2DProperties );

    PieChart2D pieChart2D= new PieChart2D( pieChartDataSet, new LegendProperties(), new ChartProperties(), 400, 350 );
    super.exportImage( pieChart2D, name );
  }
View Full Code Here

    double[] data= { 81d, 55d, 39d, 20.6d };
    String[] labels= { "BMW M5", "BMW M3", "Viper GTS-R", "Audi S6" };
    Paint[] paints= { Color.lightGray, Color.green, Color.blue, Color.red };

    PieChartDataSet pieChartDataSet= new PieChartDataSet( "Cars That Own", data, labels, paints, pieChart2DProperties );
    PieChart2D pieChart2D= new PieChart2D( pieChartDataSet, null, new ChartProperties(), 400, 350 );
    super.exportImage( pieChart2D, "pieChartLegendLabels" );
  }
View Full Code Here

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

    return axisChart;
View Full Code Here

    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();
    legendProperties.setIconBorderPaint( Color.red );
View Full Code Here

    String[] labels= { "BMW M5", "BMW M3", "Viper GTS-R", "Corvette Z06" };
    Paint[] paints= { Color.lightGray, Color.green, Color.blue, Color.red };

    PieChartDataSet pieChartDataSet= new PieChartDataSet( "Cars That Own", data, labels, paints, pieChart3DProperties );

    PieChart3D pieChart3D= new PieChart3D( pieChartDataSet, new LegendProperties(), new ChartProperties(), 600, 350 );
    super.exportImage( pieChart3D, name );
  }
View Full Code Here

    double[] data= { 81d, 55d, 39d, 20.6d };
    String[] labels= { "BMW M5", "BMW M3", "Viper GTS-R", "Audi S6" };
    Paint[] paints= { Color.lightGray, Color.green, Color.blue, Color.red };

    PieChartDataSet pieChartDataSet= new PieChartDataSet( "Cars That Own", data, labels, paints, pieChart3DProperties );
    PieChart3D pieChart3D= new PieChart3D( pieChartDataSet, null, new ChartProperties(), 400, 350 );
    super.exportImage( pieChart3D, "pieChart3DLegendLabels" );
  }
View Full Code Here

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

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

TOP

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

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.