com.github.mikephil.charting.renderer.CandleStickChartRenderer Java Examples

The following examples show how to use com.github.mikephil.charting.renderer.CandleStickChartRenderer. 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: CombinedChartCurrentDayRenderer.java    From shinny-futures-android with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Creates the renderers needed for this combined-renderer in the required order. Also takes the DrawOrder into
 * consideration.
 */
public void createRenderers() {

    mRenderers.clear();

    CombinedChartCurrentDay chart = (CombinedChartCurrentDay) mChart.get();
    if (chart == null)
        return;

    CombinedChartCurrentDay.DrawOrder[] orders = chart.getDrawOrder();

    for (CombinedChartCurrentDay.DrawOrder order : orders) {

        switch (order) {
            case BAR:
                if (chart.getBarData() != null)
                    mRenderers.add(new MyBarChartRenderer(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 MyLineChartRenderer(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: CandleStickChart.java    From StockChart-MPAndroidChart with MIT License 5 votes vote down vote up
@Override
protected void init() {
    super.init();

    mRenderer = new CandleStickChartRenderer(this, mAnimator, mViewPortHandler);

    getXAxis().setSpaceMin(0.5f);
    getXAxis().setSpaceMax(0.5f);
}
 
Example #3
Source File: CandleStickChart.java    From Ticket-Analysis with MIT License 5 votes vote down vote up
@Override
protected void init() {
    super.init();

    mRenderer = new CandleStickChartRenderer(this, mAnimator, mViewPortHandler);

    getXAxis().setSpaceMin(0.5f);
    getXAxis().setSpaceMax(0.5f);
}
 
Example #4
Source File: CandleStickChart.java    From android-kline with Apache License 2.0 5 votes vote down vote up
@Override
protected void init() {
    super.init();

    mRenderer = new CandleStickChartRenderer(this, mAnimator, mViewPortHandler);

    getXAxis().setSpaceMin(0.5f);
    getXAxis().setSpaceMax(0.5f);
}
 
Example #5
Source File: CandleStickChart.java    From iMoney with Apache License 2.0 5 votes vote down vote up
@Override
protected void init() {
    super.init();

    mRenderer = new CandleStickChartRenderer(this, mAnimator, mViewPortHandler);
    mXChartMin = -0.5f;
}
 
Example #6
Source File: CandleStickChart.java    From Stayfit with Apache License 2.0 5 votes vote down vote up
@Override
protected void init() {
    super.init();

    mRenderer = new CandleStickChartRenderer(this, mAnimator, mViewPortHandler);
    mXChartMin = -0.5f;
}
 
Example #7
Source File: CandleStickChart.java    From NetKnight with Apache License 2.0 5 votes vote down vote up
@Override
protected void init() {
    super.init();

    mRenderer = new CandleStickChartRenderer(this, mAnimator, mViewPortHandler);
    mXAxis.mAxisMinimum = -0.5f;
}