Program: 26275
Project: 26275
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
  setContentView(R.layout.activity_horizontalbarchart);
  tvX=(TextView)findViewById(R.id.tvXMax);
  tvY=(TextView)findViewById(R.id.tvYMax);
  mSeekBarX=(SeekBar)findViewById(R.id.seekBar1);
  mSeekBarY=(SeekBar)findViewById(R.id.seekBar2);
  mChart=(HorizontalBarChart)findViewById(R.id.chart1);
  mChart.setOnChartValueSelectedListener(this);
  mChart.setDrawBarShadow(false);
  mChart.setDrawValueAboveBar(true);
  mChart.setDescription("String_Node_Str");
  mChart.setMaxVisibleValueCount(60);
  mChart.setPinchZoom(false);
  mChart.setDrawGridBackground(false);
  XAxis xl=mChart.getXAxis();
  xl.setPosition(XAxisPosition.BOTTOM);
  xl.setTypeface(mTfLight);
  xl.setDrawAxisLine(true);
  xl.setDrawGridLines(false);
  xl.setGridLineWidth(0.3f);
  xl.setGranularity(10f);
  YAxis yl=mChart.getAxisLeft();
  yl.setTypeface(mTfLight);
  yl.setDrawAxisLine(true);
  yl.setDrawGridLines(true);
  yl.setAxisMinValue(0f);
  YAxis yr=mChart.getAxisRight();
  yr.setTypeface(mTfLight);
  yr.setDrawAxisLine(true);
  yr.setDrawGridLines(false);
  yr.setAxisMinValue(0f);
  setData(12,50);
  mChart.setFitBars(true);
  mChart.animateY(2500);
  mSeekBarY.setProgress(50);
  mSeekBarX.setProgress(12);
  mSeekBarY.setOnSeekBarChangeListener(this);
  mSeekBarX.setOnSeekBarChangeListener(this);
  Legend l=mChart.getLegend();
  l.setPosition(LegendPosition.BELOW_CHART_LEFT);
  l.setFormSize(8f);
  l.setXEntrySpace(4f);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
  setContentView(R.layout.activity_horizontalbarchart);
  tvX=(TextView)findViewById(R.id.tvXMax);
  tvY=(TextView)findViewById(R.id.tvYMax);
  mSeekBarX=(SeekBar)findViewById(R.id.seekBar1);
  mSeekBarY=(SeekBar)findViewById(R.id.seekBar2);
  mChart=(HorizontalBarChart)findViewById(R.id.chart1);
  mChart.setOnChartValueSelectedListener(this);
  mChart.setDrawBarShadow(false);
  mChart.setDrawValueAboveBar(true);
  mChart.setDescription("String_Node_Str");
  mChart.setMaxVisibleValueCount(60);
  mChart.setPinchZoom(false);
  mChart.setDrawGridBackground(false);
  XAxis xl=mChart.getXAxis();
  xl.setPosition(XAxisPosition.BOTTOM);
  xl.setTypeface(mTfLight);
  xl.setDrawAxisLine(true);
  xl.setDrawGridLines(false);
  xl.setGranularity(10f);
  YAxis yl=mChart.getAxisLeft();
  yl.setTypeface(mTfLight);
  yl.setDrawAxisLine(true);
  yl.setDrawGridLines(true);
  yl.setAxisMinValue(0f);
  YAxis yr=mChart.getAxisRight();
  yr.setTypeface(mTfLight);
  yr.setDrawAxisLine(true);
  yr.setDrawGridLines(false);
  yr.setAxisMinValue(0f);
  setData(12,50);
  mChart.setFitBars(true);
  mChart.animateY(2500);
  mSeekBarY.setProgress(50);
  mSeekBarX.setProgress(12);
  mSeekBarY.setOnSeekBarChangeListener(this);
  mSeekBarX.setOnSeekBarChangeListener(this);
  Legend l=mChart.getLegend();
  l.setPosition(LegendPosition.BELOW_CHART_LEFT);
  l.setFormSize(8f);
  l.setXEntrySpace(4f);
}