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 - AxisBreaks makes Annotation tool to disappear in Android
Summary: AxisBreaks makes Annotation tool to disappear in Android
Status: CONFIRMED
Alias: None
Product: Java TeeChart
Classification: Unclassified
Component: Android (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://stackoverflow.com/questions/27...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-08 07:51 EST by yeray alonso
Modified: 2015-01-08 13:23 EST (History)
1 user (show)

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