Package org.krysalis.jcharts.chartData

Examples of org.krysalis.jcharts.chartData.StockChartDataSet


    int dataSize= xAxisLabels.length;
      int numberOfDataSets= 1;


      StockChartDataSet stockChartDataSet;

    double[] highs= TestDataGenerator.getRandomNumbers( dataSize, 500, 1000 );
    double[] lows= TestDataGenerator.getRandomNumbers( dataSize, 100, 300 );
    double[] opens= TestDataGenerator.getRandomNumbers( dataSize, 350, 450 );
    double[] closes= TestDataGenerator.getRandomNumbers( dataSize, 350, 450 );

      StockChartProperties stockChartProperties= new StockChartProperties();

    stockChartDataSet= new StockChartDataSet( highs, "High", lows, "Low", Color.black, stockChartProperties );
    stockChartDataSet.setOpenValues( opens, "Open", Color.red );
    stockChartDataSet.setCloseValues( closes, "Close", Color.green );

    dataSeries.addIAxisPlotDataSet( stockChartDataSet );


View Full Code Here


    int dataSize= xAxisLabels.length;
      int numberOfDataSets= 1;


      StockChartDataSet stockChartDataSet;

    double[] highs= TestDataGenerator.getRandomNumbers( dataSize, 500, 1000 );
    double[] lows= TestDataGenerator.getRandomNumbers( dataSize, 100, 300 );
    double[] opens= TestDataGenerator.getRandomNumbers( dataSize, 350, 450 );
    double[] closes= TestDataGenerator.getRandomNumbers( dataSize, 350, 450 );

      StockChartProperties stockChartProperties= new StockChartProperties();
    stockChartProperties.setHiLowStroke( new BasicStroke( 3.0f ) );
    stockChartProperties.setCloseStroke( new BasicStroke( 2.5f ) );

    stockChartDataSet= new StockChartDataSet( highs, "High", lows, "Low", Color.black, stockChartProperties );
    stockChartDataSet.setOpenValues( opens, "Open", Color.red );
    stockChartDataSet.setCloseValues( closes, "Close", Color.green );

    dataSeries.addIAxisPlotDataSet( stockChartDataSet );

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

    int dataSize= xAxisLabels.length;
      int numberOfDataSets= 1;


      StockChartDataSet stockChartDataSet;

    double[] highs= TestDataGenerator.getRandomNumbers( dataSize, 500, 1000 );
    double[] lows= TestDataGenerator.getRandomNumbers( dataSize, 100, 300 );
    double[] opens= TestDataGenerator.getRandomNumbers( dataSize, 350, 450 );
    double[] closes= TestDataGenerator.getRandomNumbers( dataSize, 350, 450 );

      StockChartProperties stockChartProperties= new StockChartProperties();
    stockChartProperties.setOpenPixelLength( 10 );
    stockChartProperties.setClosePixelLength( 20 );

    stockChartDataSet= new StockChartDataSet( highs, "High", lows, "Low", Color.black, stockChartProperties );
    stockChartDataSet.setOpenValues( opens, "Open", Color.red );
    stockChartDataSet.setCloseValues( closes, "Close", Color.green );

    dataSeries.addIAxisPlotDataSet( stockChartDataSet );

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

TOP

Related Classes of org.krysalis.jcharts.chartData.StockChartDataSet

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.