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.
Merge pull request PhilJay#4001 from oatrice/feature/muti_gradient
[Feature] Multiple gradient color for barchart
- Loading branch information
Showing
5 changed files
with
146 additions
and
2 deletions.
There are no files selected for viewing
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
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
28 changes: 28 additions & 0 deletions
28
MPChartLib/src/main/java/com/github/mikephil/charting/model/GradientColor.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,28 @@ | ||
package com.github.mikephil.charting.model; | ||
|
||
public class GradientColor { | ||
|
||
private int startColor; | ||
private int endColor; | ||
|
||
public GradientColor(int startColor, int endColor) { | ||
this.startColor = startColor; | ||
this.endColor = endColor; | ||
} | ||
|
||
public int getStartColor() { | ||
return startColor; | ||
} | ||
|
||
public void setStartColor(int startColor) { | ||
this.startColor = startColor; | ||
} | ||
|
||
public int getEndColor() { | ||
return endColor; | ||
} | ||
|
||
public void setEndColor(int endColor) { | ||
this.endColor = endColor; | ||
} | ||
} |
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