Java Code Examples for com.github.mikephil.charting.interfaces.datasets.IDataSet#removeEntry()
The following examples show how to use
com.github.mikephil.charting.interfaces.datasets.IDataSet#removeEntry() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ChartData.java From StockChart-MPAndroidChart with MIT License | 6 votes |
/** * Removes the given Entry object from the DataSet at the specified index. * * @param e * @param dataSetIndex */ public boolean removeEntry(Entry e, int dataSetIndex) { // entry null, outofbounds if (e == null || dataSetIndex >= mDataSets.size()) { return false; } IDataSet set = mDataSets.get(dataSetIndex); if (set != null) { // remove the entry from the dataset boolean removed = set.removeEntry(e); if (removed) { calcMinMax(); } return removed; } else { return false; } }
Example 2
Source File: ChartData.java From Ticket-Analysis with MIT License | 6 votes |
/** * Removes the given Entry object from the DataSet at the specified index. * * @param e * @param dataSetIndex */ public boolean removeEntry(Entry e, int dataSetIndex) { // entry null, outofbounds if (e == null || dataSetIndex >= mDataSets.size()) return false; IDataSet set = mDataSets.get(dataSetIndex); if (set != null) { // remove the entry from the dataset boolean removed = set.removeEntry(e); if (removed) { calcMinMax(); } return removed; } else return false; }
Example 3
Source File: ChartData.java From android-kline with Apache License 2.0 | 6 votes |
/** * Removes the given Entry object from the DataSet at the specified index. * * @param e * @param dataSetIndex */ public boolean removeEntry(Entry e, int dataSetIndex) { // entry null, outofbounds if (e == null || dataSetIndex >= mDataSets.size()) return false; IDataSet set = mDataSets.get(dataSetIndex); if (set != null) { // remove the entry from the dataset boolean removed = set.removeEntry(e); if (removed) { calcMinMax(); } return removed; } else return false; }
Example 4
Source File: ChartData.java From Stayfit with Apache License 2.0 | 6 votes |
/** * Removes the given Entry object from the DataSet at the specified index. * * @param e * @param dataSetIndex */ public boolean removeEntry(Entry e, int dataSetIndex) { // entry null, outofbounds if (e == null || dataSetIndex >= mDataSets.size()) return false; IDataSet set = mDataSets.get(dataSetIndex); if (set != null) { // remove the entry from the dataset boolean removed = set.removeEntry(e); if (removed) { mYValCount -= 1; calcMinMax(0, mYValCount); } return removed; } else return false; }
Example 5
Source File: ChartData.java From NetKnight with Apache License 2.0 | 6 votes |
/** * Removes the given Entry object from the DataSet at the specified index. * * @param e * @param dataSetIndex */ public boolean removeEntry(Entry e, int dataSetIndex) { // entry null, outofbounds if (e == null || dataSetIndex >= mDataSets.size()) return false; IDataSet set = mDataSets.get(dataSetIndex); if (set != null) { // remove the entry from the dataset boolean removed = set.removeEntry(e); if (removed) { mYValCount -= 1; calcMinMax(0, mYValCount); } return removed; } else return false; }