@Test(expected = IllegalArgumentException.class) public void addData_NullSet_ThrowIllegalArgumentException() { BarSet set = null; mChartView.addData(set); }
public void addData(ChartSet set) { if (!data.isEmpty() && set.size() != data.get(0).size()) throw new IllegalArgumentException("The number of entries between sets doesn't match."); if (set == null) throw new IllegalArgumentException("Chart data set can't be null."); data.add(set); }
ChartView extends RelativeLayout { public void addData(ChartSet set) { if (!data.isEmpty() && set.size() != data.get(0).size()) throw new IllegalArgumentException("The number of entries between sets doesn't match."); if (set == null) throw new IllegalArgumentException("Chart data set can't be null."); data.add(set); } }
ChartView extends RelativeLayout { public void addData(ChartSet set) { if (!data.isEmpty() && set.size() != data.get(0).size()) throw new IllegalArgumentException("The number of entries between sets doesn't match."); if (set == null) throw new IllegalArgumentException("Chart data set can't be null."); data.add(set); } ChartView(Context context, AttributeSet attrs);  ChartView(Context context); }
ChartView extends RelativeLayout { public void addData(ChartSet set) { if (!data.isEmpty() && set.size() != data.get(0).size()) throw new IllegalArgumentException("The number of entries between sets doesn't match."); if (set == null) throw new IllegalArgumentException("Chart data set can't be null."); data.add(set); } ChartView(Context context, AttributeSet attrs);  ChartView(Context context); @Override void onAttachedToWindow(); @Override void onDetachedFromWindow(); @Override void onMeasure(int widthMeasureSpec, int heightMeasureSpec); @Override boolean onTouchEvent(@NonNull MotionEvent event); void addData(ChartSet set); void addData(ArrayList<ChartSet> data); void show(); void show(int setIndex); void show(Animation anim); void dismiss(); void dismiss(int setIndex); void dismiss(@NonNull Animation anim); void reset(); ChartView updateValues(int setIndex, float[] values); void notifyDataUpdate(); void showTooltip(Tooltip tooltip, boolean correctPos); void dismissAllTooltips(); void animateSet(int index, BaseStyleAnimation anim); boolean canIPleaseAskYouToDraw(); Orientation getOrientation(); float getInnerChartBottom(); float getInnerChartLeft(); float getInnerChartRight(); float getInnerChartTop(); float getZeroPosition(); ArrayList<ChartSet> getData(); ArrayList<Rect> getEntriesArea(int index); Animation getChartAnimation(); ChartView setYLabels(YRenderer.LabelPosition position); ChartView setXLabels(XRenderer.LabelPosition position); ChartView setLabelsFormat(DecimalFormat format); ChartView setLabelsColor(@ColorInt int color); ChartView setFontSize(@IntRange(from = 0) int size); ChartView setTypeface(Typeface typeface); ChartView setXAxis(boolean bool); ChartView setYAxis(boolean bool); ChartView setAxisBorderValues(int minValue, int maxValue, int step); ChartView setAxisBorderValues(int minValue, int maxValue); ChartView setAxisThickness(@FloatRange(from = 0.f) float thickness); ChartView setAxisColor(@ColorInt int color); ChartView setStep(int step); void setOnEntryClickListener(OnEntryClickListener listener); @Override void setOnClickListener(OnClickListener listener); ChartView setBorderSpacing(float spacing); ChartView setTopSpacing(float spacing); ChartView setGrid(@IntRange(from = 0) int rows, @IntRange(from = 0) int columns,
							 Paint paint); ChartView setValueThreshold(float startValue, float endValue, Paint paint); ChartView setValueThreshold(float[] startValues, float[] endValues, Paint paint); ChartView setLabelThreshold(int startLabel, int endLabel, Paint paint); ChartView setLabelThreshold(int[] startLabels, int[] endLabels, Paint paint); ChartView setAxisLabelsSpacing(float spacing); ChartView setTooltips(Tooltip tip); }
ChartView extends RelativeLayout { public void addData(ChartSet set) { if (!data.isEmpty() && set.size() != data.get(0).size()) throw new IllegalArgumentException("The number of entries between sets doesn't match."); if (set == null) throw new IllegalArgumentException("Chart data set can't be null."); data.add(set); } ChartView(Context context, AttributeSet attrs);  ChartView(Context context); @Override void onAttachedToWindow(); @Override void onDetachedFromWindow(); @Override void onMeasure(int widthMeasureSpec, int heightMeasureSpec); @Override boolean onTouchEvent(@NonNull MotionEvent event); void addData(ChartSet set); void addData(ArrayList<ChartSet> data); void show(); void show(int setIndex); void show(Animation anim); void dismiss(); void dismiss(int setIndex); void dismiss(@NonNull Animation anim); void reset(); ChartView updateValues(int setIndex, float[] values); void notifyDataUpdate(); void showTooltip(Tooltip tooltip, boolean correctPos); void dismissAllTooltips(); void animateSet(int index, BaseStyleAnimation anim); boolean canIPleaseAskYouToDraw(); Orientation getOrientation(); float getInnerChartBottom(); float getInnerChartLeft(); float getInnerChartRight(); float getInnerChartTop(); float getZeroPosition(); ArrayList<ChartSet> getData(); ArrayList<Rect> getEntriesArea(int index); Animation getChartAnimation(); ChartView setYLabels(YRenderer.LabelPosition position); ChartView setXLabels(XRenderer.LabelPosition position); ChartView setLabelsFormat(DecimalFormat format); ChartView setLabelsColor(@ColorInt int color); ChartView setFontSize(@IntRange(from = 0) int size); ChartView setTypeface(Typeface typeface); ChartView setXAxis(boolean bool); ChartView setYAxis(boolean bool); ChartView setAxisBorderValues(int minValue, int maxValue, int step); ChartView setAxisBorderValues(int minValue, int maxValue); ChartView setAxisThickness(@FloatRange(from = 0.f) float thickness); ChartView setAxisColor(@ColorInt int color); ChartView setStep(int step); void setOnEntryClickListener(OnEntryClickListener listener); @Override void setOnClickListener(OnClickListener listener); ChartView setBorderSpacing(float spacing); ChartView setTopSpacing(float spacing); ChartView setGrid(@IntRange(from = 0) int rows, @IntRange(from = 0) int columns,
							 Paint paint); ChartView setValueThreshold(float startValue, float endValue, Paint paint); ChartView setValueThreshold(float[] startValues, float[] endValues, Paint paint); ChartView setLabelThreshold(int startLabel, int endLabel, Paint paint); ChartView setLabelThreshold(int[] startLabels, int[] endLabels, Paint paint); ChartView setAxisLabelsSpacing(float spacing); ChartView setTooltips(Tooltip tip);  }