Package org.krysalis.jcharts.properties

Examples of org.krysalis.jcharts.properties.LegendProperties


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

    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

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



  /*************************************************************************************************/
  private void borderColor() throws Throwable
  {
    LegendProperties legendProperties= new LegendProperties();

    ChartStroke borderStroke= new ChartStroke( new BasicStroke( 2.0f ), Color.blue );
    legendProperties.setBorderStroke( borderStroke );

    super.exportImage( this.getChart( legendProperties ), "borderColor" );
  }
View Full Code Here


  /*************************************************************************************************/
  private void chartPadding() throws Throwable
  {
    LegendProperties legendProperties= new LegendProperties();
    legendProperties.setChartPadding( 30 );

    super.exportImage( this.getChart( legendProperties ), "chartPadding" );
  }
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

    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, "stackedArea" );
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

    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

    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

    yAxis.setNumItems( 10 );
    yAxis.setRoundToNearest( -3 );



    LegendProperties legendProperties = new LegendProperties();

    AxisChart axisChart = new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, 500, 400 );

    ChartTestDriver.exportImage( axisChart, "BarChartTest.png" );
View Full Code Here

TOP

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

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.