SumitRajpal / ChartAndroid

3 stars 2 forks source link

Using MPAndroidChart:v3.0.3 Because MPAndroidChart:v2.0.9 is Unable to Resolve #1

Open empaguia84 opened 5 years ago

empaguia84 commented 5 years ago

Hi @SumitRajpal, can you help me regarding this?

I do not know if the version or not, if I used your 2.0.9 version, gradle failed to sync, that's why I used 3.0.3...

in this line:

                    data = new BarData(names,yAxis);

image

and chart.setDescription(""); image

tqaw19 commented 5 years ago

I'm having the same issue, I fixed by adding this: BarChart chart = new BarChart(this); setContentView(chart);

    BarData data = new BarData((IBarDataSet) labels, dataset);
    chart.setData(data);

Sadly, the application crashes when compiling.