I want to remove the scale from the barchart element.

When a user views a histogram element, the legend y value overrides the legend x values ββor the legend y values ββare displayed below the X axis.
Here is the code for the histogram element:
import ro.charttest.R; import android.content.Context; import android.graphics.Typeface; import android.view.LayoutInflater; import android.view.View; import com.github.mikephil.charting.charts.BarChart; import com.github.mikephil.charting.data.ChartData; import com.github.mikephil.charting.utils.ColorTemplate; import com.github.mikephil.charting.utils.Legend; import com.github.mikephil.charting.utils.XLabels; import com.github.mikephil.charting.utils.Legend.LegendPosition; import com.github.mikephil.charting.utils.XLabels.XLabelPosition; import com.github.mikephil.charting.utils.YLabels; import com.github.mikephil.charting.utils.YLabels.YLabelPosition; public class BarChartItem extends ChartItem { private ColorTemplate mCt; private Typeface mTf; public BarChartItem(ChartData cd, Context c) { super(cd); mCt = new ColorTemplate(); mCt.addDataSetColors(new int[]{ R.color.colorful_1}, c); mCt.addDataSetColors(new int[]{ R.color.greens_2}, c); mTf = Typeface.createFromAsset(c.getAssets(), "tahoma.ttf"); } @Override public int getItemType() { return TYPE_BARCHART; } @Override public View getView(int position, View convertView, Context c) { ViewHolder holder = null; if (convertView == null) { holder = new ViewHolder(); convertView = LayoutInflater.from(c).inflate( R.layout.list_item_barchart, null); holder.chart = (BarChart) convertView.findViewById(R.id.chart); convertView.setTag(holder); } else { holder = (ViewHolder) convertView.getTag(); }
}
source share