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 1077

Summary: AxisBreaks makes Annotation tool to disappear in Android
Product: Java TeeChart Reporter: yeray alonso <yeray>
Component: AndroidAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement CC: dzianis.frydliand
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://stackoverflow.com/questions/27805383/using-axisbreaks-with-candles-in-teechart-android/
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2015-01-08 07:51:50 EST
Having a chart with an Annotation tool, as soon as I add an AxisBreak, the Annotation tool disappears.
Only for Android.

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

        Candle candle1 = new Candle(tChart1.getChart());

        candle1.fillSampleValues(80);

        DateTime dt = DateTime.getNow();
        for (int i = 0; i < candle1.getCount(); i++) {
            candle1.getXValues().setValue(i, dt.toDouble());
            dt.add(Calendar.MINUTE, 1);            
        }
        tChart1.getAxes().getBottom().getLabels().setDateTimeFormat("hh:mm");
        
        AxisBreaksTool axisBreaksTool1 = new AxisBreaksTool(tChart1.getAxes().getBottom());
        
        for (int i=0; i<3; i++) {
            AxisBreak axisBreak1 = new AxisBreak(axisBreaksTool1);
            axisBreak1.setStartValue(candle1.getXValues().getValue(10*(i+1)));
            axisBreak1.setEndValue(candle1.getXValues().getValue(10*(i+1)+5));
            axisBreak1.setStyle(AxisBreakStyle.LINE);
            axisBreaksTool1.getBreaks().add(axisBreak1);
        }
        
        Annotation annotation1 = new Annotation(tChart1.getChart());
        annotation1.setText("My Text");
        annotation1.setLeft(10);
        annotation1.setTop(10);