-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- only adds the ability to set a second color for bar chart entries
- Loading branch information
Showing
5 changed files
with
74 additions
and
1 deletion.
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