Package org.krysalis.jcharts.properties

Examples of org.krysalis.jcharts.properties.LegendProperties


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


    DataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, title );

    dataSeries.addIAxisPlotDataSet( AxisChartsGuide.createAxisChartDataSet( ChartType.AREA, new AreaChartProperties(), 200, 5000 ) );

    ChartProperties chartProperties = new ChartProperties();
    LegendProperties legendProperties = new LegendProperties();

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

    return axisChart;
  }
View Full Code Here

    DataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, title );
    AxisChartDataSet axisChartDataSet = new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR, new BarChartProperties() );

    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

    AxisChart axisChart = new AxisChart( dataSeries, new ChartProperties(), axisProperties, new LegendProperties(), width, height );
    super.exportImage( axisChart, "horizontalPlots" );
  }
View Full Code Here

    DataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, title );
    AxisChartDataSet axisChartDataSet = new AxisChartDataSet( data, legendLabels, paints, ChartType.AREA, new AreaChartProperties() );

    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

    AxisChart axisChart = new AxisChart( dataSeries, new ChartProperties(), axisProperties, new LegendProperties(), width, height );
    super.exportImage( axisChart, "gridLines" );
  }
View Full Code Here


    DataSeries dataSeries = new DataSeries( xAxisLabels, null, yAxisTitle, title );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );

    AxisChart axisChart = new AxisChart( dataSeries, new ChartProperties(), new AxisProperties(), new LegendProperties(), width, height );
    super.exportImage( axisChart, "axisTitles" );

    AxisProperties axisProperties = new AxisProperties();
    ChartFont yAxisFont = new ChartFont( new Font( "Arial Narrow", Font.BOLD, 14 ), Color.blue );
    axisProperties.getYAxisProperties().setAxisTitleChartFont( yAxisFont );

    axisChart = new AxisChart( dataSeries, new ChartProperties(), axisProperties, new LegendProperties(), width, height );
    super.exportImage( axisChart, "axisTitleFont" );
  }
View Full Code Here

   ******************************************************************************************/
  static void test() throws ChartDataException, PropertyException
  {
    PieChart2D pieChart2D;
    PieChartDataSet pieChartDataSet;
    LegendProperties legendProperties;
    ChartProperties chartProperties;

    int dataSize;
    int width;
    int height;
    int numTestsToRun = 15;
    String fileName;

    HTMLGenerator htmlGenerator = new HTMLGenerator( ChartTestDriver.OUTPUT_PATH + "pieChart2dTest.html" );

    for( int i = 0; i < numTestsToRun; i++ )
    {
      boolean createImageMap = true; //( TestDataGenerator.getRandomNumber( 1 ) > 0.5d );

      dataSize = (int) TestDataGenerator.getRandomNumber( 1, 10 );
      pieChartDataSet = PieTestDriver.getPieChartDataSet( dataSize, 1, 7 );

      width = (int) TestDataGenerator.getRandomNumber( 100, 600 );
      height = (int) TestDataGenerator.getRandomNumber( 100, 600 );

      legendProperties = new LegendProperties();
      TestDataGenerator.randomizeLegend( legendProperties );
      //legendProperties.setBorderStroke( new BasicStroke( 2.0f ) );

      chartProperties = new ChartProperties();
      //areaProperties.setEdgePadding( (int) TestDataGenerator.getRandomNumber( 0, 50 ) );
View Full Code Here

   ******************************************************************************************/
  static void test() throws ChartDataException, PropertyException
  {
    PieChart2D pieChart2D;
    PieChartDataSet pieChartDataSet;
    LegendProperties legendProperties;
    ChartProperties chartProperties;

    int dataSize;
    int width;
    int height;
    int numTestsToRun = 15;
    String fileName;

    HTMLGenerator htmlGenerator = new HTMLGenerator( ChartTestDriver.OUTPUT_PATH + "pieChart2dTest.html" );

    for( int i = 0; i < numTestsToRun; i++ )
    {
      boolean createImageMap = true; //( TestDataGenerator.getRandomNumber( 1 ) > 0.5d );

      dataSize = (int) TestDataGenerator.getRandomNumber( 1, 10 );
      pieChartDataSet = Pie3DTestDriver.getPieChartDataSet( dataSize, 1, 7 );

      width = (int) TestDataGenerator.getRandomNumber( 100, 600 );
      height = (int) TestDataGenerator.getRandomNumber( 100, 600 );

      legendProperties = new LegendProperties();
      TestDataGenerator.randomizeLegend( legendProperties );
      //legendProperties.setBorderStroke( new BasicStroke( 2.0f ) );

      chartProperties = new ChartProperties();
      //areaProperties.setEdgePadding( (int) TestDataGenerator.getRandomNumber( 0, 50 ) );
View Full Code Here

    pieChart3DProperties.setZeroDegreeOffset( 60 );

    pieChart3DProperties.setDepth( 15 );

    LegendProperties legendProperties = new LegendProperties();
    legendProperties.setPlacement( LegendAreaProperties.RIGHT );
    legendProperties.setNumColumns( 1 );
    //legendProperties.setBorderStroke( null );

    PieChartDataSet pieChartDataSet = new PieChartDataSet( "Investment Categories", data, labels, paints, pieChart3DProperties );

    ChartProperties chartProperties = new ChartProperties();
View Full Code Here

            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);
            final ByteCounter byteCounter = new ByteCounter(); byteCounter.bytes = 0;
            PNGEncoder.encode(axisChart,new OutputStream() {
              public void write(int b) throws IOException {
View Full Code Here

   ******************************************************************************************/
  static void test() throws ChartDataException, PropertyException
  {
    PieChart2D pieChart2D;
    PieChartDataSet pieChartDataSet;
    LegendProperties legendProperties;
    ChartProperties chartProperties;

    int dataSize;
    int width;
    int height;
    int numTestsToRun = 15;
    String fileName;

    HTMLGenerator htmlGenerator = new HTMLGenerator( ChartTestDriver.OUTPUT_PATH + "pieChart2dTest.html" );

    for( int i = 0; i < numTestsToRun; i++ )
    {
      boolean createImageMap = true; //( TestDataGenerator.getRandomNumber( 1 ) > 0.5d );

      dataSize = (int) TestDataGenerator.getRandomNumber( 1, 10 );
      pieChartDataSet = PieTestDriver.getPieChartDataSet( dataSize, 1, 7 );

      width = (int) TestDataGenerator.getRandomNumber( 100, 600 );
      height = (int) TestDataGenerator.getRandomNumber( 100, 600 );

      legendProperties = new LegendProperties();
      TestDataGenerator.randomizeLegend( legendProperties );
      //legendProperties.setBorderStroke( new BasicStroke( 2.0f ) );

      chartProperties = new ChartProperties();
      //areaProperties.setEdgePadding( (int) TestDataGenerator.getRandomNumber( 0, 50 ) );
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.