• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 package com.github.mikephil.charting.charts;
3 
4 import android.content.Context;
5 import android.util.AttributeSet;
6 
7 import com.github.mikephil.charting.data.BubbleData;
8 import com.github.mikephil.charting.interfaces.dataprovider.BubbleDataProvider;
9 import com.github.mikephil.charting.renderer.BubbleChartRenderer;
10 
11 /**
12  * The BubbleChart. Draws bubbles. Bubble chart implementation: Copyright 2015
13  * Pierre-Marc Airoldi Licensed under Apache License 2.0. In the BubbleChart, it
14  * is the area of the bubble, not the radius or diameter of the bubble that
15  * conveys the data.
16  *
17  * @author Philipp Jahoda
18  */
19 public class BubbleChart extends BarLineChartBase<BubbleData> implements BubbleDataProvider {
20 
BubbleChart(Context context)21     public BubbleChart(Context context) {
22         super(context);
23     }
24 
BubbleChart(Context context, AttributeSet attrs)25     public BubbleChart(Context context, AttributeSet attrs) {
26         super(context, attrs);
27     }
28 
BubbleChart(Context context, AttributeSet attrs, int defStyle)29     public BubbleChart(Context context, AttributeSet attrs, int defStyle) {
30         super(context, attrs, defStyle);
31     }
32 
33     @Override
init()34     protected void init() {
35         super.init();
36 
37         mRenderer = new BubbleChartRenderer(this, mAnimator, mViewPortHandler);
38     }
39 
getBubbleData()40     public BubbleData getBubbleData() {
41         return mData;
42     }
43 }
44