diff --git a/app/src/main/java/com/eveningoutpost/dexdrip/utilitymodels/BgSparklineBuilder.java b/app/src/main/java/com/eveningoutpost/dexdrip/utilitymodels/BgSparklineBuilder.java index f3ecce7e00..c8efffe830 100644 --- a/app/src/main/java/com/eveningoutpost/dexdrip/utilitymodels/BgSparklineBuilder.java +++ b/app/src/main/java/com/eveningoutpost/dexdrip/utilitymodels/BgSparklineBuilder.java @@ -44,6 +44,8 @@ public class BgSparklineBuilder { protected boolean useSmallDots = true; protected boolean useTinyDots = false; protected boolean showFiltered = false; + + protected Integer useSpecificDotSize = null; protected int backgroundColor = Color.TRANSPARENT; protected final static int SCALE_TRIGGER = 84; @@ -123,6 +125,11 @@ public BgSparklineBuilder setSmallDots() { public BgSparklineBuilder setTinyDots() { return this.setTinyDots(true); } + public BgSparklineBuilder setDotSize(int size) { + this.useSpecificDotSize = size; + return this; + } + public BgSparklineBuilder setBackgroundColor(int color) { this.backgroundColor = color; @@ -213,6 +220,10 @@ public Bitmap build() { for(Line line: lines) line.setPointRadius(1); } + if (useSpecificDotSize != null) { + for(Line line: lines) + line.setPointRadius(useSpecificDotSize); + } LineChartData lineData = new LineChartData(lines); if (showAxes) { if (height<=SCALE_TRIGGER) {