com.github.mikephil.charting.interfaces.dataprovider.BarDataProvider Java Examples

The following examples show how to use com.github.mikephil.charting.interfaces.dataprovider.BarDataProvider. 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: BarChartRenderer.java    From StockChart-MPAndroidChart with MIT License 6 votes vote down vote up
public BarChartRenderer(BarDataProvider chart, ChartAnimator animator,
                        ViewPortHandler viewPortHandler) {
    super(animator, viewPortHandler);
    this.mChart = chart;

    mHighlightPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mHighlightPaint.setStyle(Paint.Style.FILL);
    mHighlightPaint.setColor(Color.rgb(0, 0, 0));
    // set alpha after color
    mHighlightPaint.setAlpha(120);

    mShadowPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mShadowPaint.setStyle(Paint.Style.FILL);

    mBarBorderPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mBarBorderPaint.setStyle(Paint.Style.STROKE);
}
 
Example #2
Source File: BarChartRenderer.java    From NetKnight with Apache License 2.0 6 votes vote down vote up
public BarChartRenderer(BarDataProvider chart, ChartAnimator animator,
        ViewPortHandler viewPortHandler) {
    super(animator, viewPortHandler);
    this.mChart = chart;

    mHighlightPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mHighlightPaint.setStyle(Paint.Style.FILL);
    mHighlightPaint.setColor(Color.rgb(0, 0, 0));
    // set alpha after color
    mHighlightPaint.setAlpha(120);

    mShadowPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mShadowPaint.setStyle(Paint.Style.FILL);

    mBarBorderPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mBarBorderPaint.setStyle(Paint.Style.STROKE);
}
 
Example #3
Source File: BarChartRenderer.java    From Ticket-Analysis with MIT License 6 votes vote down vote up
public BarChartRenderer(BarDataProvider chart, ChartAnimator animator,
                        ViewPortHandler viewPortHandler) {
    super(animator, viewPortHandler);
    this.mChart = chart;

    mHighlightPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mHighlightPaint.setStyle(Paint.Style.FILL);
    mHighlightPaint.setColor(Color.rgb(0, 0, 0));
    // set alpha after color
    mHighlightPaint.setAlpha(120);

    mShadowPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mShadowPaint.setStyle(Paint.Style.FILL);

    mBarBorderPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mBarBorderPaint.setStyle(Paint.Style.STROKE);
}
 
Example #4
Source File: BarChartRenderer.java    From android-kline with Apache License 2.0 6 votes vote down vote up
public BarChartRenderer(BarDataProvider chart, ChartAnimator animator,
                        ViewPortHandler viewPortHandler) {
    super(animator, viewPortHandler);
    this.mChart = chart;

    mHighlightPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mHighlightPaint.setStyle(Paint.Style.FILL);
    mHighlightPaint.setColor(Color.rgb(0, 0, 0));
    // set alpha after color
    mHighlightPaint.setAlpha(120);

    mShadowPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mShadowPaint.setStyle(Paint.Style.FILL);

    mBarBorderPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mBarBorderPaint.setStyle(Paint.Style.STROKE);
}
 
Example #5
Source File: BarChartRenderer.java    From android-kline with Apache License 2.0 6 votes vote down vote up
public BarChartRenderer(BarDataProvider chart, ChartAnimator animator,
                        ViewPortHandler viewPortHandler) {
    super(animator, viewPortHandler);
    this.mChart = chart;

    mHighlightPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mHighlightPaint.setStyle(Paint.Style.FILL);
    mHighlightPaint.setColor(Color.rgb(0, 0, 0));
    // set alpha after color
    mHighlightPaint.setAlpha(120);

    mShadowPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mShadowPaint.setStyle(Paint.Style.FILL);

    mBarBorderPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mBarBorderPaint.setStyle(Paint.Style.STROKE);
}
 
Example #6
Source File: BarChartRenderer.java    From Stayfit with Apache License 2.0 5 votes vote down vote up
public BarChartRenderer(BarDataProvider chart, ChartAnimator animator,
        ViewPortHandler viewPortHandler) {
    super(animator, viewPortHandler);
    this.mChart = chart;

    mHighlightPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mHighlightPaint.setStyle(Paint.Style.FILL);
    mHighlightPaint.setColor(Color.rgb(0, 0, 0));
    // set alpha after color
    mHighlightPaint.setAlpha(120);

    mShadowPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mShadowPaint.setStyle(Paint.Style.FILL);
}
 
Example #7
Source File: HorizontalBarHighlighter.java    From NetKnight with Apache License 2.0 4 votes vote down vote up
public HorizontalBarHighlighter(BarDataProvider chart) {
	super(chart);
}
 
Example #8
Source File: MyBarChartRenderer.java    From shinny-futures-android with GNU General Public License v3.0 4 votes vote down vote up
public MyBarChartRenderer(BarDataProvider chart, ChartAnimator animator, ViewPortHandler viewPortHandler) {
    super(chart, animator, viewPortHandler);
    mLinePaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    mLinePaint.setStyle(Paint.Style.STROKE);
}
 
Example #9
Source File: BarHighlighter.java    From NetKnight with Apache License 2.0 4 votes vote down vote up
public BarHighlighter(BarDataProvider chart) {
	super(chart);
}
 
Example #10
Source File: HorizontalBarChartRenderer.java    From NetKnight with Apache License 2.0 4 votes vote down vote up
public HorizontalBarChartRenderer(BarDataProvider chart, ChartAnimator animator,
                                  ViewPortHandler viewPortHandler) {
    super(chart, animator, viewPortHandler);

    mValuePaint.setTextAlign(Align.LEFT);
}
 
Example #11
Source File: HorizontalBarHighlighter.java    From Stayfit with Apache License 2.0 4 votes vote down vote up
public HorizontalBarHighlighter(BarDataProvider chart) {
	super(chart);
}
 
Example #12
Source File: BarHighlighter.java    From Stayfit with Apache License 2.0 4 votes vote down vote up
public BarHighlighter(BarDataProvider chart) {
	super(chart);
}
 
Example #13
Source File: HorizontalBarChartRenderer.java    From Stayfit with Apache License 2.0 4 votes vote down vote up
public HorizontalBarChartRenderer(BarDataProvider chart, ChartAnimator animator,
                                  ViewPortHandler viewPortHandler) {
    super(chart, animator, viewPortHandler);

    mValuePaint.setTextAlign(Align.LEFT);
}
 
Example #14
Source File: HorizontalBarHighlighter.java    From android-kline with Apache License 2.0 4 votes vote down vote up
public HorizontalBarHighlighter(BarDataProvider chart) {
	super(chart);
}
 
Example #15
Source File: CombinedHighlighter.java    From android-kline with Apache License 2.0 4 votes vote down vote up
public CombinedHighlighter(CombinedDataProvider chart, BarDataProvider barChart) {
    super(chart);

    // if there is BarData, create a BarHighlighter
    barHighlighter = barChart.getBarData() == null ? null : new BarHighlighter(barChart);
}
 
Example #16
Source File: BarHighlighter.java    From android-kline with Apache License 2.0 4 votes vote down vote up
public BarHighlighter(BarDataProvider chart) {
    super(chart);
}
 
Example #17
Source File: HorizontalBarChartRenderer.java    From android-kline with Apache License 2.0 4 votes vote down vote up
public HorizontalBarChartRenderer(BarDataProvider chart, ChartAnimator animator,
                                  ViewPortHandler viewPortHandler) {
    super(chart, animator, viewPortHandler);

    mValuePaint.setTextAlign(Align.LEFT);
}
 
Example #18
Source File: HorizontalBarHighlighter.java    From Ticket-Analysis with MIT License 4 votes vote down vote up
public HorizontalBarHighlighter(BarDataProvider chart) {
	super(chart);
}
 
Example #19
Source File: CombinedHighlighter.java    From Ticket-Analysis with MIT License 4 votes vote down vote up
public CombinedHighlighter(CombinedDataProvider chart, BarDataProvider barChart) {
    super(chart);

    // if there is BarData, create a BarHighlighter
    barHighlighter = barChart.getBarData() == null ? null : new BarHighlighter(barChart);
}
 
Example #20
Source File: BarHighlighter.java    From Ticket-Analysis with MIT License 4 votes vote down vote up
public BarHighlighter(BarDataProvider chart) {
    super(chart);
}
 
Example #21
Source File: HorizontalBarChartRenderer.java    From Ticket-Analysis with MIT License 4 votes vote down vote up
public HorizontalBarChartRenderer(BarDataProvider chart, ChartAnimator animator,
                                  ViewPortHandler viewPortHandler) {
    super(chart, animator, viewPortHandler);

    mValuePaint.setTextAlign(Align.LEFT);
}
 
Example #22
Source File: HorizontalBarHighlighter.java    From StockChart-MPAndroidChart with MIT License 4 votes vote down vote up
public HorizontalBarHighlighter(BarDataProvider chart) {
    super(chart);
}
 
Example #23
Source File: CombinedHighlighter.java    From StockChart-MPAndroidChart with MIT License 4 votes vote down vote up
public CombinedHighlighter(CombinedDataProvider chart, BarDataProvider barChart) {
    super(chart);

    // if there is BarData, create a BarHighlighter
    barHighlighter = barChart.getBarData() == null ? null : new BarHighlighter(barChart);
}
 
Example #24
Source File: BarHighlighter.java    From StockChart-MPAndroidChart with MIT License 4 votes vote down vote up
public BarHighlighter(BarDataProvider chart) {
    super(chart);
}
 
Example #25
Source File: TimeBarChartRenderer.java    From StockChart-MPAndroidChart with MIT License 4 votes vote down vote up
public TimeBarChartRenderer(BarDataProvider chart, ChartAnimator animator, ViewPortHandler viewPortHandler) {
    super(chart, animator, viewPortHandler);
}
 
Example #26
Source File: HorizontalBarChartRenderer.java    From StockChart-MPAndroidChart with MIT License 4 votes vote down vote up
public HorizontalBarChartRenderer(BarDataProvider chart, ChartAnimator animator,
                                  ViewPortHandler viewPortHandler) {
    super(chart, animator, viewPortHandler);

    mValuePaint.setTextAlign(Align.LEFT);
}