public class MultiLineChart extends Object
Constructor and Description |
---|
MultiLineChart() |
Modifier and Type | Method and Description |
---|---|
MultiLineChart |
add(LineChart lineChart)
Adds a line chart to this multi line chart
|
List<LineChart> |
getLineCharts()
Returns all the line charts contained by this multi line chart
|
float[] |
getSecondYAxisBounds()
Returns the optional second Y axis bounds.
|
TimeUnit |
getTimeUnitX()
Returns the nullable time unit used for x axis, if x values should be considered as timestamps
|
String |
getYSuffix()
Returns the suffix used when displaying y values
|
String |
geYSuffix()
Returns the suffix used when displaying y values
|
Boolean |
isDrawValues()
Returns whether the y values should be displayed when this chart is showed
|
boolean |
isShowGrid()
Returns whether this chart should show the grid when it is displayed
|
MultiLineChart |
setDrawValues(Boolean drawValues)
Sets whether the y values should be displayed when this chart is showed
|
MultiLineChart |
setLineCharts(List<LineChart> lineCharts)
Sets all the line charts contained by this multi line chart
|
MultiLineChart |
setSecondYAxisBounds(float[] secondYAxisBounds)
Sets the optional second Y axis bounds.
|
MultiLineChart |
setSecondYAxisBounds(float lower,
float upper)
Sets the optional second Y axis bounds.
|
MultiLineChart |
setSecondYAxisBounds(List<Float> secondYAxisBounds)
Sets the optional second Y axis bounds.
|
MultiLineChart |
setShowGrid(boolean showGrid)
Sets whether this chart should show the grid when it is displayed (default value is true)
|
MultiLineChart |
setTimeUnitX(TimeUnit timeUnitX)
Set the time unit used to display x axis.
|
MultiLineChart |
setYSuffix(String ySuffix)
Sets the suffix used when displaying y values
|
void |
show()
Displays this chart in a new activity
|
public boolean isShowGrid()
public MultiLineChart setShowGrid(boolean showGrid)
showGrid
- the new valuepublic TimeUnit getTimeUnitX()
public MultiLineChart setTimeUnitX(TimeUnit timeUnitX)
timeUnitX
- the time unitpublic String geYSuffix()
public List<LineChart> getLineCharts()
public MultiLineChart setLineCharts(List<LineChart> lineCharts)
lineCharts
- the line chartspublic Boolean isDrawValues()
public MultiLineChart setDrawValues(Boolean drawValues)
drawValues
- the valuepublic String getYSuffix()
public MultiLineChart setYSuffix(String ySuffix)
ySuffix
- the y suffixpublic MultiLineChart add(LineChart lineChart)
lineChart
- the line chartpublic float[] getSecondYAxisBounds()
public MultiLineChart setSecondYAxisBounds(float lower, float upper)
lower
- the lower bound of the second Y axisupper
- the upper bound of the second Y axispublic MultiLineChart setSecondYAxisBounds(List<Float> secondYAxisBounds)
secondYAxisBounds
- a list of two elements containing the lower abd upper bound of the second Y axispublic MultiLineChart setSecondYAxisBounds(float[] secondYAxisBounds)
secondYAxisBounds
- an array of two elements containing the lower abd upper bound of the second Y axispublic void show()
Copyright © 2021. All rights reserved.