com.github.mikephil.charting.components.YAxis.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(9.5k)|赞(0)|评价(0)|浏览(149)

本文整理了Java中com.github.mikephil.charting.components.YAxis.<init>()方法的一些代码示例,展示了YAxis.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAxis.<init>()方法的具体详情如下:
包路径:com.github.mikephil.charting.components.YAxis
类名称:YAxis
方法名:<init>

YAxis.<init>介绍

暂无

代码示例

代码示例来源:origin: PhilJay/MPAndroidChart

@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));
}

代码示例来源:origin: PhilJay/MPAndroidChart

@Override
protected void init() {
  super.init();
  mYAxis = new YAxis(AxisDependency.LEFT);
  mWebLineWidth = Utils.convertDpToPixel(1.5f);
  mInnerWebLineWidth = Utils.convertDpToPixel(0.75f);
  mRenderer = new RadarChartRenderer(this, mAnimator, mViewPortHandler);
  mYAxisRenderer = new YAxisRendererRadarChart(mViewPortHandler, mYAxis, this);
  mXAxisRenderer = new XAxisRendererRadarChart(mViewPortHandler, mXAxis, this);
  mHighlighter = new RadarHighlighter(this);
}

代码示例来源:origin: PhilJay/MPAndroidChart

YAxis yAxis = new YAxis();
yAxis.setLabelCount(6);
AxisRenderer renderer = new YAxisRenderer(null, yAxis, null);
yAxis = new YAxis();
yAxis.setLabelCount(6);
yAxis.setGranularity(50f);
yAxis = new YAxis();
yAxis.setLabelCount(5, true);
renderer = new YAxisRenderer(null, yAxis, null);
yAxis = new YAxis();
yAxis.setLabelCount(5, true);
renderer = new YAxisRenderer(null, yAxis, null);
yAxis = new YAxis();
yAxis.setLabelCount(5, false);
renderer = new YAxisRenderer(null, yAxis, null);
yAxis = new YAxis();
yAxis.setLabelCount(6);
renderer = new YAxisRenderer(null, yAxis, null);
yAxis = new YAxis();
yAxis.setLabelCount(6);
renderer = new YAxisRenderer(null, yAxis, null);

代码示例来源:origin: xiaolongonly/Ticket-Analysis

@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));
}

代码示例来源:origin: WenWangAndroid/ChartManager

@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));
}

代码示例来源:origin: com.github.PhilJay/MPAndroidChart

@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));
}

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

@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); // light

    mBorderPaint = new Paint();
    mBorderPaint.setStyle(Style.STROKE);
    mBorderPaint.setColor(Color.LTGRAY);
    mBorderPaint.setStrokeWidth(Utils.convertDpToPixel(1f));
  }

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

@Override
protected void init() {
  super.init();
  mYAxis = new YAxis(AxisDependency.LEFT);
  mWebLineWidth = Utils.convertDpToPixel(1.5f);
  mInnerWebLineWidth = Utils.convertDpToPixel(0.75f);
  mRenderer = new RadarChartRenderer(this, mAnimator, mViewPortHandler);
  mYAxisRenderer = new YAxisRendererRadarChart(mViewPortHandler, mYAxis, this);
  mXAxisRenderer = new XAxisRendererRadarChart(mViewPortHandler, mXAxis, this);
  mHighlighter = new RadarHighlighter(this);
}

代码示例来源:origin: WenWangAndroid/ChartManager

@Override
protected void init() {
  super.init();
  mYAxis = new YAxis(AxisDependency.LEFT);
  mWebLineWidth = Utils.convertDpToPixel(1.5f);
  mInnerWebLineWidth = Utils.convertDpToPixel(0.75f);
  mRenderer = new RadarChartRenderer(this, mAnimator, mViewPortHandler);
  mYAxisRenderer = new YAxisRendererRadarChart(mViewPortHandler, mYAxis, this);
  mXAxisRenderer = new XAxisRendererRadarChart(mViewPortHandler, mXAxis, this);
  mHighlighter = new RadarHighlighter(this);
}

代码示例来源:origin: com.github.PhilJay/MPAndroidChart

@Override
protected void init() {
  super.init();
  mYAxis = new YAxis(AxisDependency.LEFT);
  mWebLineWidth = Utils.convertDpToPixel(1.5f);
  mInnerWebLineWidth = Utils.convertDpToPixel(0.75f);
  mRenderer = new RadarChartRenderer(this, mAnimator, mViewPortHandler);
  mYAxisRenderer = new YAxisRendererRadarChart(mViewPortHandler, mYAxis, this);
  mXAxisRenderer = new XAxisRendererRadarChart(mViewPortHandler, mXAxis, this);
  mHighlighter = new RadarHighlighter(this);
}

代码示例来源:origin: xiaolongonly/Ticket-Analysis

@Override
protected void init() {
  super.init();
  mYAxis = new YAxis(AxisDependency.LEFT);
  mWebLineWidth = Utils.convertDpToPixel(1.5f);
  mInnerWebLineWidth = Utils.convertDpToPixel(0.75f);
  mRenderer = new RadarChartRenderer(this, mAnimator, mViewPortHandler);
  mYAxisRenderer = new YAxisRendererRadarChart(mViewPortHandler, mYAxis, this);
  mXAxisRenderer = new XAxisRendererRadarChart(mViewPortHandler, mXAxis, this);
  mHighlighter = new RadarHighlighter(this);
}

代码示例来源:origin: WenWangAndroid/ChartManager

YAxis yAxis = new YAxis();
yAxis.setLabelCount(6);
AxisRenderer renderer = new YAxisRenderer(null, yAxis, null);
yAxis = new YAxis();
yAxis.setLabelCount(6);
yAxis.setGranularity(50f);
yAxis = new YAxis();
yAxis.setLabelCount(5, true);
renderer = new YAxisRenderer(null, yAxis, null);
yAxis = new YAxis();
yAxis.setLabelCount(5, true);
renderer = new YAxisRenderer(null, yAxis, null);
yAxis = new YAxis();
yAxis.setLabelCount(5, false);
renderer = new YAxisRenderer(null, yAxis, null);
yAxis = new YAxis();
yAxis.setLabelCount(6);
renderer = new YAxisRenderer(null, yAxis, null);
yAxis = new YAxis();
yAxis.setLabelCount(6);
renderer = new YAxisRenderer(null, yAxis, null);

代码示例来源:origin: xiaolongonly/Ticket-Analysis

YAxis yAxis = new YAxis();
yAxis.setLabelCount(6);
AxisRenderer renderer = new YAxisRenderer(null, yAxis, null);
yAxis = new YAxis();
yAxis.setLabelCount(6);
yAxis.setGranularity(50f);
yAxis = new YAxis();
yAxis.setLabelCount(5, true);
renderer = new YAxisRenderer(null, yAxis, null);
yAxis = new YAxis();
yAxis.setLabelCount(5, true);
renderer = new YAxisRenderer(null, yAxis, null);
yAxis = new YAxis();
yAxis.setLabelCount(5, false);
renderer = new YAxisRenderer(null, yAxis, null);
yAxis = new YAxis();
yAxis.setLabelCount(6);
renderer = new YAxisRenderer(null, yAxis, null);
yAxis = new YAxis();
yAxis.setLabelCount(6);
renderer = new YAxisRenderer(null, yAxis, null);

相关文章

YAxis类方法