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 1263

Summary: Zoom Bug on Android 5.1.0
Product: Java TeeChart Reporter: Tilo <behrmann>
Component: AndroidAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: behrmann, sandra, yeray
Priority: Normal    
Version: 3.2015.0108   
Target Milestone: ---   
Hardware: Tablet   
OS: Android   
Chart Series: Bar Delphi / C++ Builder RAD IDE Version:

Description Tilo 2015-08-04 09:04:16 EDT
Hi, 

on our application we create a Chart with a bar series as follow:

private void createBarChart(int leakState)
{
  this.chart = new TChart(this.getContext());
  this.exampleBar = new Bar();

  //TODO Test Ende
  this.exampleBar.clear();
  this.exampleBar.add(new int[]{40, 20, 49, 60});
  this.chart.addSeries(this.exampleBar);
  //TODO Test
  this.chart.getZoom().setZoomStyle(Zoom.ZoomStyle.INCHART);

  LinearLayout chartLayout = (LinearLayout) this.findViewByID(R.id.layout_logger_detail_chart);
  chartLayout.addView(this.chart);
  chartLayout.setMinimumWidth(800);
}

If we zoom on the chart, the activity crashes, but only on Android 5.0 up to 5.1. If we do the same on Android 4.4.4 everything works fine.
Comment 1 yeray alonso 2015-10-06 05:37:53 EDT
Try disabling Hardware Acceleration in those platforms where it crashes. Ie:

  if (Build.VERSION.SDK_INT>10)
    tChart1.setLayerType(View.LAYER_TYPE_SOFTWARE, null);