com.github.mikephil.charting.formatter.IFillFormatter Java Examples
The following examples show how to use
com.github.mikephil.charting.formatter.IFillFormatter.
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: FragmentPrice.java From bcm-android with GNU General Public License v3.0 | 6 votes |
private LineData getData(ArrayList<Entry> yVals) { LineDataSet set1 = new LineDataSet(yVals, ""); set1.setLineWidth(1.45f); set1.setColor(Color.argb(240, 255, 255, 255)); set1.setCircleColor(Color.WHITE); set1.setHighLightColor(Color.WHITE); set1.setFillColor(getResources().getColor(R.color.chartFilled)); set1.setDrawCircles(false); set1.setDrawValues(false); set1.setDrawFilled(true); set1.setFillFormatter(new IFillFormatter() { @Override public float getFillLinePosition(ILineDataSet dataSet, LineDataProvider dataProvider) { return priceChart.getAxisLeft().getAxisMinimum(); } }); LineData data = new LineData(set1); return data; }
Example #2
Source File: FragmentPrice.java From Lunary-Ethereum-Wallet with GNU General Public License v3.0 | 6 votes |
private LineData getData(ArrayList<Entry> yVals) { LineDataSet set1 = new LineDataSet(yVals, ""); set1.setLineWidth(1.45f); set1.setColor(Color.argb(240, 255, 255, 255)); set1.setCircleColor(Color.WHITE); set1.setHighLightColor(Color.WHITE); set1.setFillColor(getResources().getColor(R.color.chartFilled)); set1.setDrawCircles(false); set1.setDrawValues(false); set1.setDrawFilled(true); set1.setFillFormatter(new IFillFormatter() { @Override public float getFillLinePosition(ILineDataSet dataSet, LineDataProvider dataProvider) { return priceChart.getAxisLeft().getAxisMinimum(); } }); LineData data = new LineData(set1); return data; }
Example #3
Source File: LineDataSet.java From StockChart-MPAndroidChart with MIT License | 5 votes |
/** * Sets a custom IFillFormatter to the chart that handles the position of the * filled-line for each DataSet. Set this to null to use the default logic. * * @param formatter */ public void setFillFormatter(IFillFormatter formatter) { if (formatter == null) { mFillFormatter = new DefaultFillFormatter(); } else { mFillFormatter = formatter; } }
Example #4
Source File: LineDataSet.java From Ticket-Analysis with MIT License | 5 votes |
/** * Sets a custom IFillFormatter to the chart that handles the position of the * filled-line for each DataSet. Set this to null to use the default logic. * * @param formatter */ public void setFillFormatter(IFillFormatter formatter) { if (formatter == null) mFillFormatter = new DefaultFillFormatter(); else mFillFormatter = formatter; }
Example #5
Source File: LineDataSet.java From android-kline with Apache License 2.0 | 5 votes |
/** * Sets a custom IFillFormatter to the chart that handles the position of the * filled-line for each DataSet. Set this to null to use the default logic. * * @param formatter */ public void setFillFormatter(IFillFormatter formatter) { if (formatter == null) mFillFormatter = new DefaultFillFormatter(); else mFillFormatter = formatter; }
Example #6
Source File: RealmLineDataSet.java From MPAndroidChart-Realm with Apache License 2.0 | 5 votes |
/** * Sets a custom FillFormatter to the chart that handles the position of the * filled-line for each DataSet. Set this to null to use the default logic. * * @param formatter */ public void setFillFormatter(IFillFormatter formatter) { if (formatter == null) mFillFormatter = new DefaultFillFormatter(); else mFillFormatter = formatter; }
Example #7
Source File: LineDataSet.java From StockChart-MPAndroidChart with MIT License | 4 votes |
@Override public IFillFormatter getFillFormatter() { return mFillFormatter; }
Example #8
Source File: LineDataSet.java From Ticket-Analysis with MIT License | 4 votes |
@Override public IFillFormatter getFillFormatter() { return mFillFormatter; }
Example #9
Source File: LineDataSet.java From android-kline with Apache License 2.0 | 4 votes |
@Override public IFillFormatter getFillFormatter() { return mFillFormatter; }
Example #10
Source File: RealmLineDataSet.java From MPAndroidChart-Realm with Apache License 2.0 | 4 votes |
@Override public IFillFormatter getFillFormatter() { return mFillFormatter; }
Example #11
Source File: ILineDataSet.java From StockChart-MPAndroidChart with MIT License | 2 votes |
/** * Returns the IFillFormatter that is set for this DataSet. * * @return */ IFillFormatter getFillFormatter();
Example #12
Source File: ILineDataSet.java From Ticket-Analysis with MIT License | 2 votes |
/** * Returns the IFillFormatter that is set for this DataSet. * * @return */ IFillFormatter getFillFormatter();
Example #13
Source File: ILineDataSet.java From android-kline with Apache License 2.0 | 2 votes |
/** * Returns the IFillFormatter that is set for this DataSet. * * @return */ IFillFormatter getFillFormatter();