public class LineChartData extends AbstractChartData
| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_BASE_VALUE |
axisXBottom, axisXTop, axisYLeft, axisYRight, DEFAULT_TEXT_SIZE_SP, isValueLabelBackgroundEnabled, isValueLabelBackgrountAuto, valueLabelBackgroundColor, valueLabelTextColor, valueLabelTextSize, valueLabelTypeface| Constructor and Description |
|---|
LineChartData() |
LineChartData(LineChartData data)
Copy constructor to perform deep copy of chart data.
|
LineChartData(java.util.List<Line> lines) |
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Inform data that animation finished(data should be update with scale 1.0f).
|
static LineChartData |
generateDummyData() |
float |
getBaseValue() |
java.util.List<Line> |
getLines() |
LineChartData |
setBaseValue(float baseValue)
Set value below which values will be drawn as negative, important attribute for drawing filled area charts, by
default 0.
|
LineChartData |
setLines(java.util.List<Line> lines) |
void |
update(float scale)
Updates data by scale during animation.
|
getAxisXBottom, getAxisXTop, getAxisYLeft, getAxisYRight, getValueLabelBackgroundColor, getValueLabelTextColor, getValueLabelTextSize, getValueLabelTypeface, isValueLabelBackgroundAuto, isValueLabelBackgroundEnabled, setAxisXBottom, setAxisXTop, setAxisYLeft, setAxisYRight, setValueLabelBackgroundAuto, setValueLabelBackgroundColor, setValueLabelBackgroundEnabled, setValueLabelsTextColor, setValueLabelTextSize, setValueLabelTypefacepublic static final float DEFAULT_BASE_VALUE
public LineChartData()
public LineChartData(java.util.List<Line> lines)
public LineChartData(LineChartData data)
public static LineChartData generateDummyData()
public void update(float scale)
ChartDatascale - value from 0 to 1.0public void finish()
ChartDatapublic java.util.List<Line> getLines()
public LineChartData setLines(java.util.List<Line> lines)
public float getBaseValue()
setBaseValue(float)public LineChartData setBaseValue(float baseValue)