@Override public int getMaxVisibleCount() { return mData.getEntryCount(); }
/** * Returns true if the chart is empty (meaning it's data object is either * null or contains no entries). * * @return */ public boolean isEmpty() { if (mData == null) return true; else { if (mData.getEntryCount() <= 0) return true; else return false; } }
/** * Calculates the required number of digits for the values that might be * drawn in the chart (if enabled), and creates the default-value-formatter */ protected void setupDefaultFormatter(float min, float max) { float reference = 0f; if (mData == null || mData.getEntryCount() < 2) { reference = Math.max(Math.abs(min), Math.abs(max)); } else { reference = Math.abs(max - min); } int digits = Utils.getDecimals(reference); // setup the formatter with a new number of digits mDefaultValueFormatter.setup(digits); }
protected boolean isDrawingValuesAllowed(ChartInterface chart) { return chart.getData().getEntryCount() < chart.getMaxVisibleCount() * mViewPortHandler.getScaleX(); }
@Override protected boolean isDrawingValuesAllowed(ChartInterface chart) { return chart.getData().getEntryCount() < chart.getMaxVisibleCount() * mViewPortHandler.getScaleY(); } }
@Override public int getMaxVisibleCount() { return mData.getEntryCount(); }
/** * Returns true if the chart is empty (meaning it's data object is either * null or contains no entries). * * @return */ public boolean isEmpty() { if (mData == null) { return true; } else { return mData.getEntryCount() <= 0; } }
@Override public int getMaxVisibleCount() { return mData.getEntryCount(); }
@Override public int getMaxVisibleCount() { return mData.getEntryCount(); }
@Override public int getMaxVisibleCount() { return mData.getEntryCount(); }
/** * Calculates the required number of digits for the values that might be * drawn in the chart (if enabled), and creates the default-value-formatter */ protected void setupDefaultFormatter(float min, float max) { float reference = 0f; if (mData == null || mData.getEntryCount() < 2) { reference = Math.max(Math.abs(min), Math.abs(max)); } else { reference = Math.abs(max - min); } int digits = Utils.getDecimals(reference); // setup the formatter with a new number of digits mDefaultValueFormatter.setup(digits); }
/** * Calculates the required number of digits for the values that might be * drawn in the chart (if enabled), and creates the default-value-formatter */ protected void setupDefaultFormatter(float min, float max) { float reference = 0f; if (mData == null || mData.getEntryCount() < 2) { reference = Math.max(Math.abs(min), Math.abs(max)); } else { reference = Math.abs(max - min); } int digits = Utils.getDecimals(reference); // setup the formatter with a new number of digits mDefaultValueFormatter.setup(digits); }
@Override protected boolean isDrawingValuesAllowed(ChartInterface chart) { return chart.getData().getEntryCount() < chart.getMaxVisibleCount() * mViewPortHandler.getScaleY(); } }
@Override protected boolean isDrawingValuesAllowed(ChartInterface chart) { return chart.getData().getEntryCount() < chart.getMaxVisibleCount() * mViewPortHandler.getScaleY(); } }
@Override protected boolean isDrawingValuesAllowed(ChartInterface chart) { return chart.getData().getEntryCount() < chart.getMaxVisibleCount() * mViewPortHandler.getScaleY(); } }
protected boolean isDrawingValuesAllowed(ChartInterface chart) { return chart.getData().getEntryCount() < chart.getMaxVisibleCount() * mViewPortHandler.getScaleX(); }
protected boolean isDrawingValuesAllowed(ChartInterface chart) { return chart.getData().getEntryCount() < chart.getMaxVisibleCount() * mViewPortHandler.getScaleX(); }
protected boolean isDrawingValuesAllowed(ChartInterface chart) { return chart.getData().getEntryCount() < chart.getMaxVisibleCount() * mViewPortHandler.getScaleX(); }
@Override protected boolean isDrawingValuesAllowed(ChartInterface chart) { return chart.getData().getEntryCount() < chart.getMaxVisibleCount() * mViewPortHandler.getScaleY(); } }
protected boolean isDrawingValuesAllowed(ChartInterface chart) { return chart.getData().getEntryCount() < chart.getMaxVisibleCount() * mViewPortHandler.getScaleX(); }