/** * Sets a custom IValueFormatter for all DataSets this data object contains. * * @param f */ public void setValueFormatter(ValueFormatter f) { if (f == null) return; else { for (IDataSet set : mDataSets) { set.setValueFormatter(f); } } }
/** * Sets a new data object for the chart. The data object contains all values * and information needed for displaying. * * @param data */ public void setData(T data) { mData = data; mOffsetsCalculated = false; if (data == null) { return; } // calculate how many digits are needed setupDefaultFormatter(data.getYMin(), data.getYMax()); for (IDataSet set : mData.getDataSets()) { if (set.needsFormatter() || set.getValueFormatter() == mDefaultValueFormatter) set.setValueFormatter(mDefaultValueFormatter); } // let the chart know there is new data notifyDataSetChanged(); if (mLogEnabled) Log.i(LOG_TAG, "Data is set."); }
/** * Sets a custom IValueFormatter for all DataSets this data object contains. * * @param f */ public void setValueFormatter(IValueFormatter f) { if (f == null) { return; } else { for (IDataSet set : mDataSets) { set.setValueFormatter(f); } } }
/** * Sets a custom IValueFormatter for all DataSets this data object contains. * * @param f */ public void setValueFormatter(IValueFormatter f) { if (f == null) return; else { for (IDataSet set : mDataSets) { set.setValueFormatter(f); } } }
/** * Sets a custom IValueFormatter for all DataSets this data object contains. * * @param f */ public void setValueFormatter(IValueFormatter f) { if (f == null) return; else { for (IDataSet set : mDataSets) { set.setValueFormatter(f); } } }
/** * Sets a custom IValueFormatter for all DataSets this data object contains. * * @param f */ public void setValueFormatter(IValueFormatter f) { if (f == null) return; else { for (IDataSet set : mDataSets) { set.setValueFormatter(f); } } }
/** * Sets a new data object for the chart. The data object contains all values * and information needed for displaying. * * @param data */ public void setData(T data) { mData = data; mOffsetsCalculated = false; if (data == null) { return; } // calculate how many digits are needed setupDefaultFormatter(data.getYMin(), data.getYMax()); for (IDataSet set : mData.getDataSets()) { if (set.needsFormatter() || set.getValueFormatter() == mDefaultValueFormatter) set.setValueFormatter(mDefaultValueFormatter); } // let the chart know there is new data notifyDataSetChanged(); if (mLogEnabled) Log.i(LOG_TAG, "Data is set."); }
/** * Sets a new data object for the chart. The data object contains all values * and information needed for displaying. * * @param data */ public void setData(T data) { mData = data; mOffsetsCalculated = false; if (data == null) { return; } // calculate how many digits are needed setupDefaultFormatter(data.getYMin(), data.getYMax()); for (IDataSet set : mData.getDataSets()) { if (set.needsFormatter() || set.getValueFormatter() == mDefaultValueFormatter) set.setValueFormatter(mDefaultValueFormatter); } // let the chart know there is new data notifyDataSetChanged(); if (mLogEnabled) Log.i(LOG_TAG, "Data is set."); }
/** * Sets a new data object for the chart. The data object contains all values * and information needed for displaying. * * @param data */ public void setData(T data) { mData = data; mOffsetsCalculated = false; if (data == null) { return; } // calculate how many digits are needed setupDefaultFormatter(data.getYMin(), data.getYMax()); for (IDataSet set : mData.getDataSets()) { if (set.needsFormatter() || set.getValueFormatter() == mDefaultValueFormatter) set.setValueFormatter(mDefaultValueFormatter); } // let the chart know there is new data notifyDataSetChanged(); if (mLogEnabled) Log.i(LOG_TAG, "Data is set."); }
/** * Sets a new data object for the chart. The data object contains all values * and information needed for displaying. * * @param data */ public void setData(T data) { mData = data; mOffsetsCalculated = false; if (data == null) { return; } // calculate how many digits are needed setupDefaultFormatter(data.getYMin(), data.getYMax()); for (IDataSet set : mData.getDataSets()) { if (set.needsFormatter() || set.getValueFormatter() == mDefaultValueFormatter) { set.setValueFormatter(mDefaultValueFormatter); } } // let the chart know there is new data notifyDataSetChanged(); if (mLogEnabled) { Log.i(LOG_TAG, "Data is set."); } }