Package org.krysalis.jcharts.properties

Examples of org.krysalis.jcharts.properties.LegendProperties


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

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

                RadarChart chart = new RadarChart( dataSet, legendProperties, chartProperties , 500, 400 );

                ChartTestDriver.exportImage( chart, "RadarChartTest.png" );
        }
View Full Code Here

    DataAxisProperties xAxis = (DataAxisProperties) axisProperties.getXAxisProperties();
    xAxis.setRoundToNearest( 1 );
    xAxis.setUserDefinedScale( -300, 200 );
*/

    LegendProperties legendProperties = new LegendProperties();

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

    axisChart.renderWithImageMap();

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

    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

        Color[] poleBarev = Arrays.copyOfRange(COLORS, 0, legendLabels.length);
        PieChart2DProperties properties = new PieChart2DProperties();
        if (showChartLabels)
            properties.setPieLabelType(PieLabelType.VALUE_LABELS);
        PieChartDataSet dataset = new PieChartDataSet(title, data, legendLabels, poleBarev, properties);
        LegendProperties legend = new LegendProperties();
        legend.setNumColumns(1);
        ChartProperties chartProperties = new ChartProperties();
        chartProperties.setUseAntiAliasing(true);
        PieChart2D chart = new PieChart2D(dataset, legend, chartProperties, width, height);

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.