/** * Returns the range visible on the x-axis. * * @return */ public float getVisibleXRange() { return Math.abs(getHighestVisibleX() - getLowestVisibleX()); }
/** * Performs auto scaling of the axis by recalculating the minimum and maximum y-values based on the entries currently in view. */ protected void autoScale() { final float fromX = getLowestVisibleX(); final float toX = getHighestVisibleX(); mData.calcMinMaxY(fromX, toX); mXAxis.calculate(mData.getXMin(), mData.getXMax()); // calculate axis range (min / max) according to provided data if (mAxisLeft.isEnabled()) mAxisLeft.calculate(mData.getYMin(AxisDependency.LEFT), mData.getYMax(AxisDependency.LEFT)); if (mAxisRight.isEnabled()) mAxisRight.calculate(mData.getYMin(AxisDependency.RIGHT), mData.getYMax(AxisDependency.RIGHT)); calculateOffsets(); }
/** * Returns the range visible on the x-axis. * * @return */ public float getVisibleXRange() { return Math.abs(getHighestVisibleX() - getLowestVisibleX()); }
/** * Returns the range visible on the x-axis. * * @return */ public float getVisibleXRange() { return Math.abs(getHighestVisibleX() - getLowestVisibleX()); }
/** * Returns the range visible on the x-axis. * * @return */ public float getVisibleXRange() { return Math.abs(getHighestVisibleX() - getLowestVisibleX()); }
/** * Returns the range visible on the x-axis. * * @return */ public float getVisibleXRange() { return Math.abs(getHighestVisibleX() - getLowestVisibleX()); }
/** * Performs auto scaling of the axis by recalculating the minimum and maximum y-values based on the entries currently in view. */ protected void autoScale() { final float fromX = getLowestVisibleX(); final float toX = getHighestVisibleX(); mData.calcMinMaxY(fromX, toX); mXAxis.calculate(mData.getXMin(), mData.getXMax()); // calculate axis range (min / max) according to provided data if (mAxisLeft.isEnabled()) mAxisLeft.calculate(mData.getYMin(AxisDependency.LEFT), mData.getYMax(AxisDependency.LEFT)); if (mAxisRight.isEnabled()) mAxisRight.calculate(mData.getYMin(AxisDependency.RIGHT), mData.getYMax(AxisDependency.RIGHT)); calculateOffsets(); }
/** * Performs auto scaling of the axis by recalculating the minimum and maximum y-values based on the entries currently in view. */ protected void autoScale() { final float fromX = getLowestVisibleX(); final float toX = getHighestVisibleX(); mData.calcMinMaxY(fromX, toX); mXAxis.calculate(mData.getXMin(), mData.getXMax()); // calculate axis range (min / max) according to provided data if (mAxisLeft.isEnabled()) mAxisLeft.calculate(mData.getYMin(AxisDependency.LEFT), mData.getYMax(AxisDependency.LEFT)); if (mAxisRight.isEnabled()) mAxisRight.calculate(mData.getYMin(AxisDependency.RIGHT), mData.getYMax(AxisDependency.RIGHT)); calculateOffsets(); }
/** * Performs auto scaling of the axis by recalculating the minimum and maximum y-values based on the entries currently in view. */ protected void autoScale() { final float fromX = getLowestVisibleX(); final float toX = getHighestVisibleX(); mData.calcMinMaxY(fromX, toX); mXAxis.calculate(mData.getXMin(), mData.getXMax()); // calculate axis range (min / max) according to provided data if (mAxisLeft.isEnabled()) mAxisLeft.calculate(mData.getYMin(AxisDependency.LEFT), mData.getYMax(AxisDependency.LEFT)); if (mAxisRight.isEnabled()) mAxisRight.calculate(mData.getYMin(AxisDependency.RIGHT), mData.getYMax(AxisDependency.RIGHT)); calculateOffsets(); }
/** * Performs auto scaling of the axis by recalculating the minimum and maximum y-values based on the entries currently in view. */ protected void autoScale() { final float fromX = getLowestVisibleX(); final float toX = getHighestVisibleX(); mData.calcMinMaxY(fromX, toX); mXAxis.calculate(mData.getXMin(), mData.getXMax()); // calculate axis range (min / max) according to provided data if (mAxisLeft.isEnabled()) { mAxisLeft.calculate(mData.getYMin(AxisDependency.LEFT), mData.getYMax(AxisDependency.LEFT)); } if (mAxisRight.isEnabled()) { mAxisRight.calculate(mData.getYMin(AxisDependency.RIGHT), mData.getYMax(AxisDependency.RIGHT)); } calculateOffsets(); }