public interface ChartData
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Inform data that animation finished(data should be update with scale 1.0f).
|
Axis |
getAxisXBottom() |
Axis |
getAxisXTop() |
Axis |
getAxisYLeft() |
Axis |
getAxisYRight() |
int |
getValueLabelBackgroundColor() |
int |
getValueLabelTextColor()
Returns color used to draw value label text.
|
int |
getValueLabelTextSize()
Returns text size for value label in SP units.
|
android.graphics.Typeface |
getValueLabelTypeface()
Returns Typeface for value labels.
|
boolean |
isValueLabelBackgroundAuto() |
boolean |
isValueLabelBackgroundEnabled() |
void |
setAxisXBottom(Axis axisX)
Set horizontal axis at the bottom of the chart.
|
void |
setAxisXTop(Axis axisX)
Set horizontal axis at the top of the chart.
|
void |
setAxisYLeft(Axis axisY)
Set vertical axis on the left of the chart.
|
void |
setAxisYRight(Axis axisY)
Set vertical axis on the right of the chart.
|
void |
setValueLabelBackgroundAuto(boolean isValueLabelBackgrountAuto)
Set false if you want to set custom color for all value labels.
|
void |
setValueLabelBackgroundColor(int valueLabelBackgroundColor)
Set value labels background.
|
void |
setValueLabelBackgroundEnabled(boolean isValueLabelBackgroundEnabled)
Set whether labels should have rectangle background.
|
void |
setValueLabelsTextColor(int labelsTextColor)
Set value label text color, by default Color.WHITE.
|
void |
setValueLabelTextSize(int labelsTextSize)
Set text size for value label in SP units.
|
void |
setValueLabelTypeface(android.graphics.Typeface typeface)
Set Typeface for all values labels.
|
void |
update(float scale)
Updates data by scale during animation.
|
void update(float scale)
scale - value from 0 to 1.0void finish()
Axis getAxisXBottom()
setAxisXBottom(Axis)void setAxisXBottom(Axis axisX)
axisX - Axis getAxisYLeft()
setAxisYLeft(Axis)void setAxisYLeft(Axis axisY)
axisY - Axis getAxisXTop()
setAxisXTop(Axis)void setAxisXTop(Axis axisX)
axisX - Axis getAxisYRight()
setAxisYRight(Axis)void setAxisYRight(Axis axisY)
axisY - int getValueLabelTextColor()
void setValueLabelsTextColor(int labelsTextColor)
int getValueLabelTextSize()
void setValueLabelTextSize(int labelsTextSize)
android.graphics.Typeface getValueLabelTypeface()
void setValueLabelTypeface(android.graphics.Typeface typeface)
typeface - boolean isValueLabelBackgroundEnabled()
setValueLabelBackgroundEnabled(boolean)void setValueLabelBackgroundEnabled(boolean isValueLabelBackgroundEnabled)
boolean isValueLabelBackgroundAuto()
setValueLabelBackgroundAuto(boolean)void setValueLabelBackgroundAuto(boolean isValueLabelBackgrountAuto)
int getValueLabelBackgroundColor()
setValueLabelBackgroundColor(int)void setValueLabelBackgroundColor(int valueLabelBackgroundColor)