use of com.github.mikephil.charting.listener.BarLineChartTouchListener in project carat by amplab.
the class BarLineChartBase method init.
@Override
protected void init() {
super.init();
mListener = new BarLineChartTouchListener(this, mTrans.getTouchMatrix());
mGridPaint = new Paint();
mGridPaint.setColor(Color.GRAY);
mGridPaint.setStrokeWidth(mGridWidth);
mGridPaint.setStyle(Style.STROKE);
mGridPaint.setAlpha(90);
mBorderPaint = new Paint();
mBorderPaint.setColor(Color.BLACK);
mBorderPaint.setStrokeWidth(mGridWidth * 2f);
mBorderPaint.setStyle(Style.STROKE);
mGridBackgroundPaint = new Paint();
mGridBackgroundPaint.setStyle(Style.FILL);
// mGridBackgroundPaint.setColor(Color.WHITE);
// light
mGridBackgroundPaint.setColor(Color.rgb(240, 240, 240));
// grey
}
use of com.github.mikephil.charting.listener.BarLineChartTouchListener in project MPAndroidChart by PhilJay.
the class BarLineChartBase method init.
@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);
// light
mGridBackgroundPaint.setColor(Color.rgb(240, 240, 240));
// grey
mBorderPaint = new Paint();
mBorderPaint.setStyle(Style.STROKE);
mBorderPaint.setColor(Color.BLACK);
mBorderPaint.setStrokeWidth(Utils.convertDpToPixel(1f));
}
Aggregations