Skip to content

Commit c83d2f4

Browse files
committed
Default spaceMin/max for xAxis in candlestick charts
1 parent 8ed6dd2 commit c83d2f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/charts/CandleStickChart.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ protected void init() {
3232
super.init();
3333

3434
mRenderer = new CandleStickChartRenderer(this, mAnimator, mViewPortHandler);
35+
36+
getXAxis().setSpaceMin(0.5f);
37+
getXAxis().setSpaceMax(0.5f);
3538
}
3639

3740
@Override

0 commit comments

Comments
 (0)