Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1429 - CandleStyle.CANDLEBAR with hidden Open and Close pens doesn't show value when High=Low
Summary: CandleStyle.CANDLEBAR with hidden Open and Close pens doesn't show value when...
Status: RESOLVED FIXED
Alias: None
Product: Java TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 3.2015.0108
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-02 07:41 EST by yeray alonso
Modified: 2016-02-02 07:43 EST (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2016-02-02 07:41:20 EST
Having a Candle series with CandleStyle.CANDLEBAR and hidden Open and Close pens, if at some value you have High=Low, then no candle is drawn on that value.

In example:

        tChart1.getAspect().setView3D(false);
        tChart1.getLegend().setVisible(false);

        tChart1.getAxes().getLeft().getGrid().setStyle(DashStyle.SOLID);
        tChart1.getAxes().getBottom().getGrid().setStyle(DashStyle.SOLID);

        Candle series = new Candle(tChart1.getChart());
        
        series.setUpCloseColor(Color.GREEN);

        series.fillSampleValues(5);
        DateTime tmpDate = DateTime.getToday();
        tmpDate.add(Calendar.DAY_OF_YEAR, -series.getCount());
        for (int i=0; i<series.getCount(); i++) {
            tmpDate.add(Calendar.DAY_OF_YEAR, 1);
            series.getDateValues().setValue(i, tmpDate.toDouble());
        }

        series.getPen().setWidth(20);

        series.setStyle(CandleStyle.CANDLEBAR);
        series.setShowOpen(false);
        series.setShowClose(false);

        double tmp = series.getHighValues().getValue(2);
        series.getLowValues().setValue(2, tmp);
        //series.getOpenValues().setValue(2, tmp);
        //series.getCloseValues().setValue(2, tmp);