Java Code Examples for com.github.mikephil.charting.charts.CombinedChart#getScatterData()
The following examples show how to use
com.github.mikephil.charting.charts.CombinedChart#getScatterData() .
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: CombinedChartRenderer.java From Ticket-Analysis with MIT License | 5 votes |
/** * Creates the renderers needed for this combined-renderer in the required order. Also takes the DrawOrder into * consideration. */ public void createRenderers() { mRenderers.clear(); CombinedChart chart = (CombinedChart)mChart.get(); if (chart == null) return; DrawOrder[] orders = chart.getDrawOrder(); for (DrawOrder order : orders) { switch (order) { case BAR: if (chart.getBarData() != null) mRenderers.add(new BarChartRenderer(chart, mAnimator, mViewPortHandler)); break; case BUBBLE: if (chart.getBubbleData() != null) mRenderers.add(new BubbleChartRenderer(chart, mAnimator, mViewPortHandler)); break; case LINE: if (chart.getLineData() != null) mRenderers.add(new LineChartRenderer(chart, mAnimator, mViewPortHandler)); break; case CANDLE: if (chart.getCandleData() != null) mRenderers.add(new CandleStickChartRenderer(chart, mAnimator, mViewPortHandler)); break; case SCATTER: if (chart.getScatterData() != null) mRenderers.add(new ScatterChartRenderer(chart, mAnimator, mViewPortHandler)); break; } } }
Example 2
Source File: CombinedChartRenderer.java From android-kline with Apache License 2.0 | 5 votes |
/** * Creates the renderers needed for this combined-renderer in the required order. Also takes the DrawOrder into * consideration. */ public void createRenderers() { mRenderers.clear(); CombinedChart chart = (CombinedChart)mChart.get(); if (chart == null) return; DrawOrder[] orders = chart.getDrawOrder(); for (DrawOrder order : orders) { switch (order) { case BAR: if (chart.getBarData() != null) mRenderers.add(new BarChartRenderer(chart, mAnimator, mViewPortHandler)); break; case BUBBLE: if (chart.getBubbleData() != null) mRenderers.add(new BubbleChartRenderer(chart, mAnimator, mViewPortHandler)); break; case LINE: if (chart.getLineData() != null) mRenderers.add(new LineChartRenderer(chart, mAnimator, mViewPortHandler)); break; case CANDLE: if (chart.getCandleData() != null) mRenderers.add(new CandleStickChartRenderer(chart, mAnimator, mViewPortHandler)); break; case SCATTER: if (chart.getScatterData() != null) mRenderers.add(new ScatterChartRenderer(chart, mAnimator, mViewPortHandler)); break; } } }
Example 3
Source File: AppCombinedChartRenderer.java From android-kline with Apache License 2.0 | 5 votes |
/** * Creates the renderers needed for this combined-renderer in the required order. Also takes the DrawOrder into * consideration. */ public void createRenderers() { mRenderers.clear(); CombinedChart chart = (CombinedChart)mChart.get(); if (chart == null) return; DrawOrder[] orders = chart.getDrawOrder(); for (DrawOrder order : orders) { switch (order) { case BAR: if (chart.getBarData() != null) mRenderers.add(new BarChartRenderer(chart, mAnimator, mViewPortHandler)); break; case BUBBLE: if (chart.getBubbleData() != null) mRenderers.add(new BubbleChartRenderer(chart, mAnimator, mViewPortHandler)); break; case LINE: if (chart.getLineData() != null) mRenderers.add(new AppLineChartRenderer(chart, mAnimator, mViewPortHandler)); break; case CANDLE: if (chart.getCandleData() != null) mRenderers.add(new CandleStickChartRenderer(chart, mAnimator, mViewPortHandler)); break; case SCATTER: if (chart.getScatterData() != null) mRenderers.add(new ScatterChartRenderer(chart, mAnimator, mViewPortHandler)); break; } } }
Example 4
Source File: CombinedChartRenderer.java From iMoney with Apache License 2.0 | 5 votes |
/** * Creates the renderers needed for this combined-renderer in the required order. Also takes the DrawOrder into * consideration. * * @param chart * @param animator * @param viewPortHandler */ protected void createRenderers(CombinedChart chart, ChartAnimator animator, ViewPortHandler viewPortHandler) { mRenderers = new ArrayList<DataRenderer>(); DrawOrder[] orders = chart.getDrawOrder(); for (DrawOrder order : orders) { switch (order) { case BAR: if (chart.getBarData() != null) mRenderers.add(new BarChartRenderer(chart, animator, viewPortHandler)); break; case BUBBLE: if (chart.getBubbleData() != null) mRenderers.add(new BubbleChartRenderer(chart, animator, viewPortHandler)); break; case LINE: if (chart.getLineData() != null) mRenderers.add(new LineChartRenderer(chart, animator, viewPortHandler)); break; case CANDLE: if (chart.getCandleData() != null) mRenderers.add(new CandleStickChartRenderer(chart, animator, viewPortHandler)); break; case SCATTER: if (chart.getScatterData() != null) mRenderers.add(new ScatterChartRenderer(chart, animator, viewPortHandler)); break; } } }
Example 5
Source File: CombinedChartRenderer.java From Stayfit with Apache License 2.0 | 5 votes |
/** * Creates the renderers needed for this combined-renderer in the required order. Also takes the DrawOrder into * consideration. * * @param chart * @param animator * @param viewPortHandler */ protected void createRenderers(CombinedChart chart, ChartAnimator animator, ViewPortHandler viewPortHandler) { mRenderers = new ArrayList<DataRenderer>(); DrawOrder[] orders = chart.getDrawOrder(); for (DrawOrder order : orders) { switch (order) { case BAR: if (chart.getBarData() != null) mRenderers.add(new BarChartRenderer(chart, animator, viewPortHandler)); break; case BUBBLE: if (chart.getBubbleData() != null) mRenderers.add(new BubbleChartRenderer(chart, animator, viewPortHandler)); break; case LINE: if (chart.getLineData() != null) mRenderers.add(new LineChartRenderer(chart, animator, viewPortHandler)); break; case CANDLE: if (chart.getCandleData() != null) mRenderers.add(new CandleStickChartRenderer(chart, animator, viewPortHandler)); break; case SCATTER: if (chart.getScatterData() != null) mRenderers.add(new ScatterChartRenderer(chart, animator, viewPortHandler)); break; } } }
Example 6
Source File: CombinedChartRenderer.java From NetKnight with Apache License 2.0 | 5 votes |
/** * Creates the renderers needed for this combined-renderer in the required order. Also takes the DrawOrder into * consideration. * * @param chart * @param animator * @param viewPortHandler */ protected void createRenderers(CombinedChart chart, ChartAnimator animator, ViewPortHandler viewPortHandler) { mRenderers = new ArrayList<DataRenderer>(); DrawOrder[] orders = chart.getDrawOrder(); for (DrawOrder order : orders) { switch (order) { case BAR: if (chart.getBarData() != null) mRenderers.add(new BarChartRenderer(chart, animator, viewPortHandler)); break; case BUBBLE: if (chart.getBubbleData() != null) mRenderers.add(new BubbleChartRenderer(chart, animator, viewPortHandler)); break; case LINE: if (chart.getLineData() != null) mRenderers.add(new LineChartRenderer(chart, animator, viewPortHandler)); break; case CANDLE: if (chart.getCandleData() != null) mRenderers.add(new CandleStickChartRenderer(chart, animator, viewPortHandler)); break; case SCATTER: if (chart.getScatterData() != null) mRenderers.add(new ScatterChartRenderer(chart, animator, viewPortHandler)); break; } } }
Example 7
Source File: CombinedChartRenderer.java From StockChart-MPAndroidChart with MIT License | 4 votes |
/** * Creates the renderers needed for this combined-renderer in the required order. Also takes the DrawOrder into * consideration. */ public void createRenderers() { mRenderers.clear(); CombinedChart chart = (CombinedChart) mChart.get(); if (chart == null) { return; } DrawOrder[] orders = chart.getDrawOrder(); for (DrawOrder order : orders) { switch (order) { case BAR: if (chart.getBarData() != null) { mRenderers.add(new BarChartRenderer(chart, mAnimator, mViewPortHandler)); } break; case BUBBLE: if (chart.getBubbleData() != null) { mRenderers.add(new BubbleChartRenderer(chart, mAnimator, mViewPortHandler)); } break; case LINE: if (chart.getLineData() != null) { mRenderers.add(new LineChartRenderer(chart, mAnimator, mViewPortHandler)); } break; case CANDLE: if (chart.getCandleData() != null) { mRenderers.add(new CandleStickChartRenderer(chart, mAnimator, mViewPortHandler)); } break; case SCATTER: if (chart.getScatterData() != null) { mRenderers.add(new ScatterChartRenderer(chart, mAnimator, mViewPortHandler)); } break; } } }
Example 8
Source File: MyCombinedChartRenderer.java From StockChart-MPAndroidChart with MIT License | 4 votes |
@Override public void createRenderers() { mRenderers.clear(); CombinedChart chart = (CombinedChart) mChart.get(); if (chart == null) { return; } CombinedChart.DrawOrder[] orders = chart.getDrawOrder(); for (CombinedChart.DrawOrder order : orders) { switch (order) { case BAR: if (chart.getBarData() != null) { mRenderers.add(new TimeBarChartRenderer(chart, mAnimator, mViewPortHandler)); } break; case BUBBLE: if (chart.getBubbleData() != null) { mRenderers.add(new BubbleChartRenderer(chart, mAnimator, mViewPortHandler)); } break; case LINE: if (chart.getLineData() != null) { mRenderers.add(new LineChartRenderer(chart, mAnimator, mViewPortHandler)); } break; case CANDLE: if (chart.getCandleData() != null) { mRenderers.add(new MyCandleStickChartRenderer(chart, mAnimator, mViewPortHandler)); } break; case SCATTER: if (chart.getScatterData() != null) { mRenderers.add(new ScatterChartRenderer(chart, mAnimator, mViewPortHandler)); } break; default: break; } } }