| Constructor and Description |
|---|
BarChart()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Bar |
addBar(double value)
Creates a new
Bar and adds it to this chart. |
Bar[] |
addBars(double... values)
Creates some new
Bars and adds them to this chart. |
Chart |
defaultBarColor(int newDefaultBarColor)
Sets the default color of the bars as ARGB int, e.g.
|
XYAxis |
getAxis()
Returns the axis of this line chart.
|
int |
getDefaultBarColor()
Returns the default color of the bars as ARGB int, e.g.
|
void |
removeBar(Bar bar)
Removes a
Bar from this chart. |
void |
removeBars(Bar... removedBars)
Removes some
Bars from this chart. |
void |
setDefaultBarColor(int defaultBarColor)
Sets the default color of the bars as ARGB int, e.g.
|
addRefreshListener, backgroundColor, calculateGraphArea, getBackgroundColor, getBorder, getTitle, paintOn, removeRefreshListener, setBackgroundColorpublic Bar addBar(double value)
Bar and adds it to this chart.value - the value of the barpublic Bar[] addBars(double... values)
Bars and adds them to this chart.values - the values of the barspublic void removeBar(Bar bar)
Bar from this chart.bar - the removed barpublic void removeBars(Bar... removedBars)
Bars from this chart.removedBars - the removed barspublic int getDefaultBarColor()
0xFFFF0000 and blue is 0xFF0000FF.public Chart defaultBarColor(int newDefaultBarColor)
0xFFFF0000
and blue is 0xFF0000FF.newDefaultBarColor - the colorpublic void setDefaultBarColor(int defaultBarColor)
0xFFFF0000
and blue is 0xFF0000FF.defaultBarColor - the colorpublic XYAxis getAxis()
Copyright © 2020. All rights reserved.