Package org.krysalis.jcharts.properties

Examples of org.krysalis.jcharts.properties.ChartProperties



    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 ) );
      chartProperties.setBackgroundPaint( TestDataGenerator.getRandomPaint() );
      //chartProperties.setBorderStroke( new BasicStroke( 1f ) );

      pieChart2D = new PieChart2D( pieChartDataSet, legendProperties, chartProperties, width, height );

      fileName = ChartTestDriver.OUTPUT_PATH + "pieChart2d" + i + ChartTestDriver.EXTENSION;
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 ) );
      chartProperties.setBackgroundPaint( TestDataGenerator.getRandomPaint() );
      //chartProperties.setBorderStroke( new BasicStroke( 1f ) );

      pieChart2D = new PieChart2D( pieChartDataSet, legendProperties, chartProperties, width, height );

      fileName = ChartTestDriver.OUTPUT_PATH + "pieChart2d" + i + ChartTestDriver.EXTENSION;
View Full Code Here

    legendProperties.setNumColumns( 1 );
    //legendProperties.setBorderStroke( null );

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

    ChartProperties chartProperties = new ChartProperties();
    chartProperties.setBorderStroke( ChartStroke.DEFAULT_CHART_OUTLINE );

    PieChart3D pieChart = new PieChart3D( pieChartDataSet, legendProperties, chartProperties, 600, 200 );
    //PieChart2D pieChart = new PieChart2D( pieChartDataSet, legendProperties, chartProperties, 400, 300 );

    ChartTestDriver.exportImage( pieChart, "pie3d.png" );
View Full Code Here

            }
            AxisChartDataSet axisChartDataSet = new AxisChartDataSet(points,labels,paint,ChartType.LINE,lineChartProperties);
            DataSeries dataSeries = new DataSeries(xAxisLabels,"Date","Time in Hours","Online Statistics for " + jid);
            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();
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 ) );
      chartProperties.setBackgroundPaint( TestDataGenerator.getRandomPaint() );
      //chartProperties.setBorderStroke( new BasicStroke( 1f ) );

      pieChart2D = new PieChart2D( pieChartDataSet, legendProperties, chartProperties, width, height );

      fileName = ChartTestDriver.OUTPUT_PATH + "pieChart2d" + i + ChartTestDriver.EXTENSION;
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 ) );
      chartProperties.setBackgroundPaint( TestDataGenerator.getRandomPaint() );
      //chartProperties.setBorderStroke( new BasicStroke( 1f ) );

      pieChart2D = new PieChart2D( pieChartDataSet, legendProperties, chartProperties, width, height );

      fileName = ChartTestDriver.OUTPUT_PATH + "pieChart2d" + i + ChartTestDriver.EXTENSION;
View Full Code Here

    legendProperties.setNumColumns( 1 );
    //legendProperties.setBorderStroke( null );

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

    ChartProperties chartProperties = new ChartProperties();
    chartProperties.setBorderStroke( ChartStroke.DEFAULT_CHART_OUTLINE );

    PieChart3D pieChart = new PieChart3D( pieChartDataSet, legendProperties, chartProperties, 600, 200 );
    //PieChart2D pieChart = new PieChart2D( pieChartDataSet, legendProperties, chartProperties, 400, 300 );

    ChartTestDriver.exportImage( pieChart, "pie3d.png" );
View Full Code Here

                Paint[] paints = {Color.red , Color.blue};
                String[] legendLabels = {"Test Legend Label", "other data"};
                String[] axisLabels = {"label1", "label2", "label3", "label4","label5","label16", "label7"};
                RadarChartDataSet dataSet = new RadarChartDataSet( "sample title", data, legendLabels, paints, axisLabels, radarChartProperties );

                ChartProperties chartProperties = new ChartProperties();

                LegendProperties legendProperties = new LegendProperties();
                legendProperties.setPlacement( LegendAreaProperties.RIGHT );
                legendProperties.setNumColumns( 1 );
View Full Code Here

    String[] axisLabels = {"1900", "1950", "2000", "2050", "3000", "3050", "4000", "4050" };
    IAxisDataSeries dataSeries = new DataSeries( axisLabels, "Cookies", "Years", null );
    dataSeries.addIAxisPlotDataSet( axisChartDataSet );


    ChartProperties chartProperties = new ChartProperties();
    AxisProperties axisProperties = new AxisProperties( false );


    //axisProperties.getXAxisProperties().setShowAxisLabels( false );
    //axisProperties.getYAxisProperties().setShowAxisLabels( false );
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.