txusballesteros / fit-chart

Fit Chart is an Android view similar to Google Fit wheel chart.
685 stars 114 forks source link

set the end cap of last slice of chart to overlap the beginning point of first slice #10

Open DalveerSinghDaiya opened 8 years ago

DalveerSinghDaiya commented 8 years ago

if this helps!!

device-2016-10-07-123328

FaisalFiyyaz commented 5 years ago

Hi @DalveerSinghDaiya, I know its very late but did you manage to fix this problem?

FaisalFiyyaz commented 5 years ago

Anyone have this problem in future, I have fixed this issue. what you need to do is set fitchart like this: <com.txusballesteros.widgets.FitChart android:id="@+id/fitChart" style="@style/chart_style" app:backStrokeColor="#your first color first progress slice" android:layout_gravity="center" app:animationMode="overdraw" /> then increase max value of fitchart by 5, like this

fitChart = view.findViewById(R.id.fitChart); fitChart.setMinValue(0f); fitChart.setMaxValue(105f);