com.github.mikephil.charting.renderer.YAxisRenderer Java Examples
The following examples show how to use
com.github.mikephil.charting.renderer.YAxisRenderer.
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: BarLineChartBase.java From StockChart-MPAndroidChart with MIT License | 5 votes |
@Override protected void init() { super.init(); mAxisLeft = new YAxis(AxisDependency.LEFT); mAxisRight = new YAxis(AxisDependency.RIGHT); mLeftAxisTransformer = new Transformer(mViewPortHandler); mRightAxisTransformer = new Transformer(mViewPortHandler); mAxisRendererLeft = new YAxisRenderer(mViewPortHandler, mAxisLeft, mLeftAxisTransformer); mAxisRendererRight = new YAxisRenderer(mViewPortHandler, mAxisRight, mRightAxisTransformer); initXAxisRenderer(); // mXAxisRenderer = new XAxisRenderer(mViewPortHandler, mXAxis, mLeftAxisTransformer); setHighlighter(new ChartHighlighter(this)); mChartTouchListener = new BarLineChartTouchListener(this, mViewPortHandler.getMatrixTouch(), 3f); mGridBackgroundPaint = new Paint(); mGridBackgroundPaint.setStyle(Style.FILL); // mGridBackgroundPaint.setColor(Color.WHITE); mGridBackgroundPaint.setColor(Color.rgb(240, 240, 240)); // light // grey mBorderPaint = new Paint(); mBorderPaint.setStyle(Style.STROKE); mBorderPaint.setColor(Color.BLACK); mBorderPaint.setStrokeWidth(Utils.convertDpToPixel(1f)); }
Example #2
Source File: BarLineChartBase.java From NetKnight with Apache License 2.0 | 5 votes |
@Override protected void init() { super.init(); mAxisLeft = new YAxis(AxisDependency.LEFT); mAxisRight = new YAxis(AxisDependency.RIGHT); mLeftAxisTransformer = new Transformer(mViewPortHandler); mRightAxisTransformer = new Transformer(mViewPortHandler); mAxisRendererLeft = new YAxisRenderer(mViewPortHandler, mAxisLeft, mLeftAxisTransformer); mAxisRendererRight = new YAxisRenderer(mViewPortHandler, mAxisRight, mRightAxisTransformer); mXAxisRenderer = new XAxisRenderer(mViewPortHandler, mXAxis, mLeftAxisTransformer); setHighlighter(new ChartHighlighter(this)); mChartTouchListener = new BarLineChartTouchListener(this, mViewPortHandler.getMatrixTouch()); mGridBackgroundPaint = new Paint(); mGridBackgroundPaint.setStyle(Style.FILL); // mGridBackgroundPaint.setColor(Color.WHITE); mGridBackgroundPaint.setColor(Color.rgb(240, 240, 240)); // light // grey mBorderPaint = new Paint(); mBorderPaint.setStyle(Style.STROKE); mBorderPaint.setColor(Color.BLACK); mBorderPaint.setStrokeWidth(Utils.convertDpToPixel(1f)); }
Example #3
Source File: BarLineChartBase.java From Ticket-Analysis with MIT License | 5 votes |
@Override protected void init() { super.init(); mAxisLeft = new YAxis(AxisDependency.LEFT); mAxisRight = new YAxis(AxisDependency.RIGHT); mLeftAxisTransformer = new Transformer(mViewPortHandler); mRightAxisTransformer = new Transformer(mViewPortHandler); mAxisRendererLeft = new YAxisRenderer(mViewPortHandler, mAxisLeft, mLeftAxisTransformer); mAxisRendererRight = new YAxisRenderer(mViewPortHandler, mAxisRight, mRightAxisTransformer); mXAxisRenderer = new XAxisRenderer(mViewPortHandler, mXAxis, mLeftAxisTransformer); setHighlighter(new ChartHighlighter(this)); mChartTouchListener = new BarLineChartTouchListener(this, mViewPortHandler.getMatrixTouch(), 3f); mGridBackgroundPaint = new Paint(); mGridBackgroundPaint.setStyle(Style.FILL); // mGridBackgroundPaint.setColor(Color.WHITE); mGridBackgroundPaint.setColor(Color.rgb(240, 240, 240)); // light // grey mBorderPaint = new Paint(); mBorderPaint.setStyle(Style.STROKE); mBorderPaint.setColor(Color.BLACK); mBorderPaint.setStrokeWidth(Utils.convertDpToPixel(1f)); }
Example #4
Source File: BarLineChartBase.java From Stayfit with Apache License 2.0 | 5 votes |
@Override protected void init() { super.init(); mAxisLeft = new YAxis(AxisDependency.LEFT); mAxisRight = new YAxis(AxisDependency.RIGHT); mXAxis = new XAxis(); mLeftAxisTransformer = new Transformer(mViewPortHandler); mRightAxisTransformer = new Transformer(mViewPortHandler); mAxisRendererLeft = new YAxisRenderer(mViewPortHandler, mAxisLeft, mLeftAxisTransformer); mAxisRendererRight = new YAxisRenderer(mViewPortHandler, mAxisRight, mRightAxisTransformer); mXAxisRenderer = new XAxisRenderer(mViewPortHandler, mXAxis, mLeftAxisTransformer); setHighlighter(new ChartHighlighter(this)); mChartTouchListener = new BarLineChartTouchListener(this, mViewPortHandler.getMatrixTouch()); mGridBackgroundPaint = new Paint(); mGridBackgroundPaint.setStyle(Style.FILL); // mGridBackgroundPaint.setColor(Color.WHITE); mGridBackgroundPaint.setColor(Color.rgb(240, 240, 240)); // light // grey mBorderPaint = new Paint(); mBorderPaint.setStyle(Style.STROKE); mBorderPaint.setColor(Color.BLACK); mBorderPaint.setStrokeWidth(Utils.convertDpToPixel(1f)); }
Example #5
Source File: BarLineChartBase.java From android-kline with Apache License 2.0 | 5 votes |
@Override protected void init() { super.init(); mAxisLeft = new YAxis(AxisDependency.LEFT); mAxisRight = new YAxis(AxisDependency.RIGHT); mLeftAxisTransformer = new Transformer(mViewPortHandler); mRightAxisTransformer = new Transformer(mViewPortHandler); mAxisRendererLeft = new YAxisRenderer(mViewPortHandler, mAxisLeft, mLeftAxisTransformer); mAxisRendererRight = new YAxisRenderer(mViewPortHandler, mAxisRight, mRightAxisTransformer); mXAxisRenderer = new XAxisRenderer(mViewPortHandler, mXAxis, mLeftAxisTransformer); setHighlighter(new ChartHighlighter(this)); mChartTouchListener = new BarLineChartTouchListener(this, mViewPortHandler.getMatrixTouch(), 3f); mGridBackgroundPaint = new Paint(); mGridBackgroundPaint.setStyle(Style.FILL); // mGridBackgroundPaint.setColor(Color.WHITE); mGridBackgroundPaint.setColor(Color.rgb(240, 240, 240)); // light // grey mBorderPaint = new Paint(); mBorderPaint.setStyle(Style.STROKE); mBorderPaint.setColor(Color.BLACK); mBorderPaint.setStrokeWidth(Utils.convertDpToPixel(1f)); }
Example #6
Source File: BarLineChartBase.java From iMoney with Apache License 2.0 | 5 votes |
@Override protected void init() { super.init(); mAxisLeft = new YAxis(AxisDependency.LEFT); mAxisRight = new YAxis(AxisDependency.RIGHT); mXAxis = new XAxis(); mLeftAxisTransformer = new Transformer(mViewPortHandler); mRightAxisTransformer = new Transformer(mViewPortHandler); mAxisRendererLeft = new YAxisRenderer(mViewPortHandler, mAxisLeft, mLeftAxisTransformer); mAxisRendererRight = new YAxisRenderer(mViewPortHandler, mAxisRight, mRightAxisTransformer); mXAxisRenderer = new XAxisRenderer(mViewPortHandler, mXAxis, mLeftAxisTransformer); mHighlighter = new ChartHighlighter(this); mChartTouchListener = new BarLineChartTouchListener(this, mViewPortHandler.getMatrixTouch()); mGridBackgroundPaint = new Paint(); mGridBackgroundPaint.setStyle(Style.FILL); // mGridBackgroundPaint.setColor(Color.WHITE); mGridBackgroundPaint.setColor(Color.rgb(240, 240, 240)); // light // grey mBorderPaint = new Paint(); mBorderPaint.setStyle(Style.STROKE); mBorderPaint.setColor(Color.BLACK); mBorderPaint.setStrokeWidth(Utils.convertDpToPixel(1f)); }
Example #7
Source File: BarLineChartBase.java From StockChart-MPAndroidChart with MIT License | 4 votes |
public YAxisRenderer getRendererLeftYAxis() { return mAxisRendererLeft; }
Example #8
Source File: BarLineChartBase.java From NetKnight with Apache License 2.0 | 4 votes |
public YAxisRenderer getRendererRightYAxis() { return mAxisRendererRight; }
Example #9
Source File: BarLineChartBase.java From NetKnight with Apache License 2.0 | 4 votes |
public YAxisRenderer getRendererLeftYAxis() { return mAxisRendererLeft; }
Example #10
Source File: BarLineChartBase.java From Stayfit with Apache License 2.0 | 4 votes |
public YAxisRenderer getRendererRightYAxis() { return mAxisRendererRight; }
Example #11
Source File: BarLineChartBase.java From Stayfit with Apache License 2.0 | 4 votes |
public YAxisRenderer getRendererLeftYAxis() { return mAxisRendererLeft; }
Example #12
Source File: BarLineChartBase.java From iMoney with Apache License 2.0 | 4 votes |
public YAxisRenderer getRendererRightYAxis() { return mAxisRendererRight; }
Example #13
Source File: BarLineChartBase.java From iMoney with Apache License 2.0 | 4 votes |
public YAxisRenderer getRendererLeftYAxis() { return mAxisRendererLeft; }
Example #14
Source File: BarLineChartBase.java From android-kline with Apache License 2.0 | 4 votes |
public YAxisRenderer getRendererLeftYAxis() { return mAxisRendererLeft; }
Example #15
Source File: BarLineChartBase.java From StockChart-MPAndroidChart with MIT License | 4 votes |
public YAxisRenderer getRendererRightYAxis() { return mAxisRendererRight; }
Example #16
Source File: BarLineChartBase.java From Ticket-Analysis with MIT License | 4 votes |
public YAxisRenderer getRendererRightYAxis() { return mAxisRendererRight; }
Example #17
Source File: BarLineChartBase.java From android-kline with Apache License 2.0 | 4 votes |
public YAxisRenderer getRendererRightYAxis() { return mAxisRendererRight; }
Example #18
Source File: BarLineChartBase.java From Ticket-Analysis with MIT License | 4 votes |
public YAxisRenderer getRendererLeftYAxis() { return mAxisRendererLeft; }
Example #19
Source File: BarLineChartBase.java From Ticket-Analysis with MIT License | 2 votes |
/** * Sets a custom axis renderer for the left axis and overwrites the existing one. * * @param rendererLeftYAxis */ public void setRendererLeftYAxis(YAxisRenderer rendererLeftYAxis) { mAxisRendererLeft = rendererLeftYAxis; }
Example #20
Source File: BarLineChartBase.java From NetKnight with Apache License 2.0 | 2 votes |
/** * Sets a custom axis renderer for the right acis and overwrites the existing one. * * @param rendererRightYAxis */ public void setRendererRightYAxis(YAxisRenderer rendererRightYAxis) { mAxisRendererRight = rendererRightYAxis; }
Example #21
Source File: BarLineChartBase.java From StockChart-MPAndroidChart with MIT License | 2 votes |
/** * Sets a custom axis renderer for the left axis and overwrites the existing one. * * @param rendererLeftYAxis */ public void setRendererLeftYAxis(YAxisRenderer rendererLeftYAxis) { mAxisRendererLeft = rendererLeftYAxis; }
Example #22
Source File: BarLineChartBase.java From NetKnight with Apache License 2.0 | 2 votes |
/** * Sets a custom axis renderer for the left axis and overwrites the existing one. * * @param rendererLeftYAxis */ public void setRendererLeftYAxis(YAxisRenderer rendererLeftYAxis) { mAxisRendererLeft = rendererLeftYAxis; }
Example #23
Source File: BarLineChartBase.java From StockChart-MPAndroidChart with MIT License | 2 votes |
/** * Sets a custom axis renderer for the right acis and overwrites the existing one. * * @param rendererRightYAxis */ public void setRendererRightYAxis(YAxisRenderer rendererRightYAxis) { mAxisRendererRight = rendererRightYAxis; }
Example #24
Source File: BarLineChartBase.java From Stayfit with Apache License 2.0 | 2 votes |
/** * Sets a custom axis renderer for the right acis and overwrites the existing one. * * @param rendererRightYAxis */ public void setRendererRightYAxis(YAxisRenderer rendererRightYAxis) { mAxisRendererRight = rendererRightYAxis; }
Example #25
Source File: BarLineChartBase.java From Stayfit with Apache License 2.0 | 2 votes |
/** * Sets a custom axis renderer for the left axis and overwrites the existing one. * * @param rendererLeftYAxis */ public void setRendererLeftYAxis(YAxisRenderer rendererLeftYAxis) { mAxisRendererLeft = rendererLeftYAxis; }
Example #26
Source File: BarLineChartBase.java From iMoney with Apache License 2.0 | 2 votes |
/** * Sets a custom axis renderer for the right acis and overwrites the existing one. * @param rendererRightYAxis */ public void setRendererRightYAxis(YAxisRenderer rendererRightYAxis) { mAxisRendererRight = rendererRightYAxis; }
Example #27
Source File: BarLineChartBase.java From Ticket-Analysis with MIT License | 2 votes |
/** * Sets a custom axis renderer for the right acis and overwrites the existing one. * * @param rendererRightYAxis */ public void setRendererRightYAxis(YAxisRenderer rendererRightYAxis) { mAxisRendererRight = rendererRightYAxis; }
Example #28
Source File: BarLineChartBase.java From iMoney with Apache License 2.0 | 2 votes |
/** * Sets a custom axis renderer for the left axis and overwrites the existing one. * @param rendererLeftYAxis */ public void setRendererLeftYAxis(YAxisRenderer rendererLeftYAxis) { mAxisRendererLeft = rendererLeftYAxis; }
Example #29
Source File: BarLineChartBase.java From android-kline with Apache License 2.0 | 2 votes |
/** * Sets a custom axis renderer for the left axis and overwrites the existing one. * * @param rendererLeftYAxis */ public void setRendererLeftYAxis(YAxisRenderer rendererLeftYAxis) { mAxisRendererLeft = rendererLeftYAxis; }
Example #30
Source File: BarLineChartBase.java From android-kline with Apache License 2.0 | 2 votes |
/** * Sets a custom axis renderer for the right acis and overwrites the existing one. * * @param rendererRightYAxis */ public void setRendererRightYAxis(YAxisRenderer rendererRightYAxis) { mAxisRendererRight = rendererRightYAxis; }