|
@@ -277,6 +277,11 @@ public class PieChartView extends View {
|
|
|
if (modAngle > 90 && modAngle < 270) {
|
|
if (modAngle > 90 && modAngle < 270) {
|
|
|
left -= item.valueDescriptionWidth;
|
|
left -= item.valueDescriptionWidth;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // TODO: left padding?
|
|
|
|
|
+ if (left < 0)
|
|
|
|
|
+ left = 0;
|
|
|
|
|
+
|
|
|
// negative y have top shift by text height
|
|
// negative y have top shift by text height
|
|
|
if ((angleMiddle + 360) % 360 > 180) {
|
|
if ((angleMiddle + 360) % 360 > 180) {
|
|
|
top += item.valueDescriptionHeight;
|
|
top += item.valueDescriptionHeight;
|
|
@@ -446,8 +451,6 @@ public class PieChartView extends View {
|
|
|
|
|
|
|
|
public void setColorProvider(PieChartColorProvider colorProvider) {
|
|
public void setColorProvider(PieChartColorProvider colorProvider) {
|
|
|
this.colorProvider = colorProvider;
|
|
this.colorProvider = colorProvider;
|
|
|
-
|
|
|
|
|
- adapterChanged();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void adapterChanged() {
|
|
private void adapterChanged() {
|
|
@@ -473,4 +476,8 @@ public class PieChartView extends View {
|
|
|
|
|
|
|
|
adapterChanged();
|
|
adapterChanged();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ public void notifyDatasetChanged() {
|
|
|
|
|
+ adapterChanged();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|