![]() | Steema Issues DatabaseNote: 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. |
| Summary: | CandleStyle.CANDLEBAR with hidden Open and Close pens doesn't show value when High=Low | ||
|---|---|---|---|
| Product: | Java TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Series | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | ||
| Priority: | --- | ||
| Version: | 3.2015.0108 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
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);