public class BarData extends BarLineScatterCandleBubbleData<IBarDataSet>
mDataSets, mLeftAxisMax, mLeftAxisMin, mRightAxisMax, mRightAxisMin, mXMax, mXMin, mYMax, mYMin| Constructor and Description |
|---|
BarData() |
BarData(IBarDataSet... dataSets) |
BarData(java.util.List<IBarDataSet> dataSets) |
| Modifier and Type | Method and Description |
|---|---|
float |
getBarWidth() |
float |
getGroupWidth(float groupSpace,
float barSpace)
In case of grouped bars, this method returns the space an individual group of bar needs on the x-axis.
|
void |
groupBars(float fromX,
float groupSpace,
float barSpace)
Groups all BarDataSet objects this data object holds together by modifying the x-value of their entries.
|
void |
setBarWidth(float mBarWidth)
Sets the width each bar should have on the x-axis (in values, not pixels).
|
addDataSet, addEntry, calcMinMax, calcMinMax, calcMinMax, calcMinMaxY, clearValues, contains, getColors, getDataSetByIndex, getDataSetByLabel, getDataSetCount, getDataSetForEntry, getDataSetIndexByLabel, getDataSetLabels, getDataSets, getEntryCount, getEntryForHighlight, getFirstLeft, getFirstRight, getIndexOfDataSet, getMaxEntryCountSet, getXMax, getXMin, getYMax, getYMax, getYMin, getYMin, isHighlightEnabled, notifyDataChanged, removeDataSet, removeDataSet, removeEntry, removeEntry, setDrawValues, setHighlightEnabled, setValueFormatter, setValueTextColor, setValueTextColors, setValueTextSize, setValueTypefacepublic BarData()
public BarData(IBarDataSet... dataSets)
public BarData(java.util.List<IBarDataSet> dataSets)
public void setBarWidth(float mBarWidth)
mBarWidth - public float getBarWidth()
public void groupBars(float fromX,
float groupSpace,
float barSpace)
fromX - the starting point on the x-axis where the grouping should begingroupSpace - the space between groups of bars in values (not pixels) e.g. 0.8f for bar width 1fbarSpace - the space between individual bars in values (not pixels) e.g. 0.1f for bar width 1fpublic float getGroupWidth(float groupSpace,
float barSpace)
groupSpace - barSpace -