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

The following examples show how to use com.github.mikephil.charting.renderer.LineChartRenderer. 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: LineChart.java    From StockChart-MPAndroidChart with MIT License 5 votes vote down vote up
@Override
protected void onDetachedFromWindow() {
    // releases the bitmap in the renderer to avoid oom error
    if (mRenderer != null && mRenderer instanceof LineChartRenderer) {
        ((LineChartRenderer) mRenderer).releaseBitmap();
    }
    super.onDetachedFromWindow();
}
 
Example #2
Source File: LineChart.java    From Ticket-Analysis with MIT License 5 votes vote down vote up
@Override
protected void onDetachedFromWindow() {
    // releases the bitmap in the renderer to avoid oom error
    if (mRenderer != null && mRenderer instanceof LineChartRenderer) {
        ((LineChartRenderer) mRenderer).releaseBitmap();
    }
    super.onDetachedFromWindow();
}
 
Example #3
Source File: LineChart.java    From android-kline with Apache License 2.0 5 votes vote down vote up
@Override
protected void onDetachedFromWindow() {
    // releases the bitmap in the renderer to avoid oom error
    if (mRenderer != null && mRenderer instanceof LineChartRenderer) {
        ((LineChartRenderer) mRenderer).releaseBitmap();
    }
    super.onDetachedFromWindow();
}
 
Example #4
Source File: LineChart.java    From Stayfit with Apache License 2.0 5 votes vote down vote up
@Override
protected void onDetachedFromWindow() {
    // releases the bitmap in the renderer to avoid oom error
    if(mRenderer != null && mRenderer instanceof LineChartRenderer) {
        ((LineChartRenderer) mRenderer).releaseBitmap();
    }
    super.onDetachedFromWindow();
}
 
Example #5
Source File: LineChart.java    From NetKnight with Apache License 2.0 5 votes vote down vote up
@Override
protected void onDetachedFromWindow() {
    // releases the bitmap in the renderer to avoid oom error
    if(mRenderer != null && mRenderer instanceof LineChartRenderer) {
        ((LineChartRenderer) mRenderer).releaseBitmap();
    }
    super.onDetachedFromWindow();
}
 
Example #6
Source File: LineChart.java    From StockChart-MPAndroidChart with MIT License 4 votes vote down vote up
protected void initRenderer() {
    mRenderer = new LineChartRenderer(this, mAnimator, mViewPortHandler);
}
 
Example #7
Source File: MyCombinedChartRenderer.java    From StockChart-MPAndroidChart with MIT License 4 votes vote down vote up
@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;
        }
    }
}
 
Example #8
Source File: LineChart.java    From Ticket-Analysis with MIT License 4 votes vote down vote up
@Override
protected void init() {
    super.init();

    mRenderer = new LineChartRenderer(this, mAnimator, mViewPortHandler);
}
 
Example #9
Source File: LineChart.java    From android-kline with Apache License 2.0 4 votes vote down vote up
@Override
protected void init() {
    super.init();

    mRenderer = new LineChartRenderer(this, mAnimator, mViewPortHandler);
}
 
Example #10
Source File: LineChart.java    From iMoney with Apache License 2.0 4 votes vote down vote up
@Override
protected void init() {
    super.init();

    mRenderer = new LineChartRenderer(this, mAnimator, mViewPortHandler);
}
 
Example #11
Source File: LineChart.java    From Stayfit with Apache License 2.0 4 votes vote down vote up
@Override
protected void init() {
    super.init();

    mRenderer = new LineChartRenderer(this, mAnimator, mViewPortHandler);
}
 
Example #12
Source File: LineChart.java    From NetKnight with Apache License 2.0 4 votes vote down vote up
@Override
protected void init() {
    super.init();

    mRenderer = new LineChartRenderer(this, mAnimator, mViewPortHandler);
}