Skip to content Skip to sidebar Skip to footer

Android AChartEngine : Hide Tick Marks In Axes

Am trying out some graphs in an Android App with AChartEngine (version 1.2.0). I want to hide the tick marks in the axes (i.e. the small lines at each label displayed on the axes).

Solution 1:

What you have to do is:

mSetRenderer.setXLabels(0);



for(int i=0;i<=14;i++)
{
  if(i==4 || i==5)
  {
       // Do nothing(this will prevent to show ticks on 4th and 5th Value of X axis)
  }
  else
  {
      mSetRenderer.addXTextLabel(i,String.valueOf(i));
  }

}

Post a Comment for "Android AChartEngine : Hide Tick Marks In Axes"