-
- All Implemented Interfaces:
-
java.io.Serializable
public class CombinedData extends BarLineScatterCandleBubbleData<IBarLineScatterCandleBubbleDataSet<out Entry>>
Data object that allows the combination of Line-, Bar-, Scatter-, Bubble- and CandleData. Used in the CombinedChart class.
-
-
Constructor Summary
Constructors Constructor Description CombinedData()
-
Method Summary
Modifier and Type Method Description voidsetData(LineData data)voidsetData(BarData data)voidsetData(ScatterData data)voidsetData(CandleData data)voidsetData(BubbleData data)voidcalcMinMax()Calc minimum and maximum values (both x and y) over all DataSets. BubbleDatagetBubbleData()LineDatagetLineData()BarDatagetBarData()ScatterDatagetScatterData()CandleDatagetCandleData()List<BarLineScatterCandleBubbleData>getAllData()Returns all data objects in row: line-bar-scatter-candle-bubble if not null. BarLineScatterCandleBubbleDatagetDataByIndex(int index)voidnotifyDataChanged()Call this method to let the ChartData know that the underlying data haschanged. EntrygetEntryForHighlight(Highlight highlight)Get the Entry for a corresponding highlight object IBarLineScatterCandleBubbleDataSet<out Entry>getDataSetByHighlight(Highlight highlight)Get dataset for highlight intgetDataIndex(ChartData data)booleanremoveDataSet(IBarLineScatterCandleBubbleDataSet<out Entry> d)Removes the given DataSet from this data object. booleanremoveDataSet(int index)Removes the DataSet at the given index in the DataSet array from the dataobject. booleanremoveEntry(Entry e, int dataSetIndex)Removes the given Entry object from the DataSet at the specified index. booleanremoveEntry(float xValue, int dataSetIndex)Removes the Entry object closest to the given DataSet at thespecified index. -
Methods inherited from class com.github.mikephil.charting.data.ChartData
addDataSet, addEntry, calcMinMaxY, clearValues, contains, getColors, getDataSetByIndex, getDataSetByLabel, getDataSetCount, getDataSetForEntry, getDataSetLabels, getDataSets, getEntryCount, getFirstRight, getIndexOfDataSet, getMaxEntryCountSet, getXMax, getXMin, getYMax, getYMax, getYMin, getYMin, isHighlightEnabled, removeDataSet, setDrawValues, setHighlightEnabled, setValueFormatter, setValueTextColor, setValueTextColors, setValueTextSize, setValueTypeface -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setData
void setData(ScatterData data)
-
setData
void setData(CandleData data)
-
setData
void setData(BubbleData data)
-
calcMinMax
void calcMinMax()
Calc minimum and maximum values (both x and y) over all DataSets.
-
getBubbleData
BubbleData getBubbleData()
-
getLineData
LineData getLineData()
-
getBarData
BarData getBarData()
-
getScatterData
ScatterData getScatterData()
-
getCandleData
CandleData getCandleData()
-
getAllData
List<BarLineScatterCandleBubbleData> getAllData()
Returns all data objects in row: line-bar-scatter-candle-bubble if not null.
-
getDataByIndex
BarLineScatterCandleBubbleData getDataByIndex(int index)
-
notifyDataChanged
void notifyDataChanged()
Call this method to let the ChartData know that the underlying data haschanged. Calling this performs all necessary recalculations needed whenthe contained data has changed.
-
getEntryForHighlight
Entry getEntryForHighlight(Highlight highlight)
Get the Entry for a corresponding highlight object
-
getDataSetByHighlight
IBarLineScatterCandleBubbleDataSet<out Entry> getDataSetByHighlight(Highlight highlight)
Get dataset for highlight
- Parameters:
highlight- current highlight
-
getDataIndex
int getDataIndex(ChartData data)
-
removeDataSet
boolean removeDataSet(IBarLineScatterCandleBubbleDataSet<out Entry> d)
Removes the given DataSet from this data object. Also recalculates allminimum and maximum values. Returns true if a DataSet was removed, falseif no DataSet could be removed.
-
removeDataSet
@Deprecated() boolean removeDataSet(int index)
Removes the DataSet at the given index in the DataSet array from the dataobject. Also recalculates all minimum and maximum values. Returns true ifa DataSet was removed, false if no DataSet could be removed.
-
removeEntry
@Deprecated() boolean removeEntry(Entry e, int dataSetIndex)
Removes the given Entry object from the DataSet at the specified index.
-
removeEntry
@Deprecated() boolean removeEntry(float xValue, int dataSetIndex)
Removes the Entry object closest to the given DataSet at thespecified index. Returns true if an Entry was removed, false if no Entrywas found that meets the specified requirements.
-
-
-
-