/** * returns the current y-max value across all DataSets * * @return */ public float getYMax() { return mData.getYMax(); }
/** * 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."); }
/** * returns the current y-max value across all DataSets * * @return */ public float getYMax() { return mData.getYMax(); }
/** * returns the current y-max value across all DataSets * * @return */ public float getYMax() { return mData.getYMax(); }
/** * returns the current y-max value across all DataSets * * @return */ public float getYMax() { return mData.getYMax(); }
/** * returns the current y-max value across all DataSets * * @return */ public float getYMax() { return mData.getYMax(); }
/** * 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."); } }