Java Code Examples for com.github.mikephil.charting.interfaces.datasets.IBubbleDataSet#getXMin()
The following examples show how to use
com.github.mikephil.charting.interfaces.datasets.IBubbleDataSet#getXMin() .
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: BubbleChart.java From Stayfit with Apache License 2.0 | 6 votes |
@Override protected void calcMinMax() { super.calcMinMax(); if (mDeltaX == 0 && mData.getYValCount() > 0) mDeltaX = 1; mXChartMin = -0.5f; mXChartMax = (float) mData.getXValCount() - 0.5f; if (mRenderer != null) { for (IBubbleDataSet set : mData.getDataSets()) { final float xmin = set.getXMin(); final float xmax = set.getXMax(); if (xmin < mXChartMin) mXChartMin = xmin; if (xmax > mXChartMax) mXChartMax = xmax; } } mDeltaX = Math.abs(mXChartMax - mXChartMin); }
Example 2
Source File: BubbleChart.java From NetKnight with Apache License 2.0 | 6 votes |
@Override protected void calcMinMax() { super.calcMinMax(); if (mXAxis.mAxisRange == 0 && mData.getYValCount() > 0) mXAxis.mAxisRange = 1; mXAxis.mAxisMinimum = -0.5f; mXAxis.mAxisMaximum = (float) mData.getXValCount() - 0.5f; if (mRenderer != null) { for (IBubbleDataSet set : mData.getDataSets()) { final float xmin = set.getXMin(); final float xmax = set.getXMax(); if (xmin < mXAxis.mAxisMinimum) mXAxis.mAxisMinimum = xmin; if (xmax > mXAxis.mAxisMaximum) mXAxis.mAxisMaximum = xmax; } } mXAxis.mAxisRange = Math.abs(mXAxis.mAxisMaximum - mXAxis.mAxisMinimum); }
Example 3
Source File: CombinedChart.java From Stayfit with Apache License 2.0 | 5 votes |
@Override protected void calcMinMax() { super.calcMinMax(); if (getBarData() != null || getCandleData() != null || getBubbleData() != null) { mXChartMin = -0.5f; mXChartMax = mData.getXVals().size() - 0.5f; if (getBubbleData() != null) { for (IBubbleDataSet set : getBubbleData().getDataSets()) { final float xmin = set.getXMin(); final float xmax = set.getXMax(); if (xmin < mXChartMin) mXChartMin = xmin; if (xmax > mXChartMax) mXChartMax = xmax; } } } mDeltaX = Math.abs(mXChartMax - mXChartMin); if (mDeltaX == 0.f && getLineData() != null && getLineData().getYValCount() > 0) { mDeltaX = 1.f; } }
Example 4
Source File: CombinedChart.java From NetKnight with Apache License 2.0 | 5 votes |
@Override protected void calcMinMax() { super.calcMinMax(); if (getBarData() != null || getCandleData() != null || getBubbleData() != null) { mXAxis.mAxisMinimum = -0.5f; mXAxis.mAxisMaximum = mData.getXVals().size() - 0.5f; if (getBubbleData() != null) { for (IBubbleDataSet set : getBubbleData().getDataSets()) { final float xmin = set.getXMin(); final float xmax = set.getXMax(); if (xmin < mXAxis.mAxisMinimum) mXAxis.mAxisMinimum = xmin; if (xmax > mXAxis.mAxisMaximum) mXAxis.mAxisMaximum = xmax; } } } mXAxis.mAxisRange = Math.abs(mXAxis.mAxisMaximum - mXAxis.mAxisMinimum); if (mXAxis.mAxisRange == 0.f && getLineData() != null && getLineData().getYValCount() > 0) { mXAxis.mAxisRange = 1.f; } }