forked from PhilJay/MPAndroidChart
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue concering LineChart filling (PhilJay#179). Made changes t…
…o the logic of filling and added FillFormatter interface for implementing a custom fill logic.
- Loading branch information
Showing
4 changed files
with
84 additions
and
6 deletions.
There are no files selected for viewing
Binary file renamed
BIN
+1.21 MB
...mple/libs/mpandroidchartlibrary-1-7-2.jar → ...mple/libs/mpandroidchartlibrary-1-7-3.jar
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
MPChartLib/src/com/github/mikephil/charting/utils/FillFormatter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
package com.github.mikephil.charting.utils; | ||
|
||
import com.github.mikephil.charting.data.LineData; | ||
import com.github.mikephil.charting.data.LineDataSet; | ||
|
||
/** | ||
* Interface for providing a custom logic to where the filling line of a DataSet | ||
* should end. If setFillEnabled(...) is set to true. | ||
* | ||
* @author Philipp Jahoda | ||
*/ | ||
public interface FillFormatter { | ||
|
||
/** | ||
* Returns the vertical (y-axis) position where the filled-line of the | ||
* DataSet should end. | ||
* | ||
* @param dataSet | ||
* @param data | ||
* @param chartMaxY | ||
* @param chartMinY | ||
* @return | ||
*/ | ||
public float getFillLinePosition(LineDataSet dataSet, LineData data, float chartMaxY, | ||
float chartMinY); | ||
} |