-
- All Implemented Interfaces:
-
com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet,com.github.mikephil.charting.interfaces.datasets.IDataSet,com.github.mikephil.charting.interfaces.datasets.ILineScatterCandleRadarDataSet,com.github.mikephil.charting.interfaces.datasets.ILineScatterCandleRadarDataSet,com.github.mikephil.charting.interfaces.datasets.IScatterDataSet,java.io.Serializable
public class ScatterDataSet extends LineScatterCandleRadarDataSet<Entry> implements IScatterDataSet
-
-
Constructor Summary
Constructors Constructor Description ScatterDataSet(List<Entry> yVals, String label)
-
Method Summary
Modifier and Type Method Description DataSet<Entry>copy()Provides an exact copy of the DataSet this method is used on. voidsetScatterShapeSize(float size)Sets the size in density pixels the drawn scattershape will have. floatgetScatterShapeSize()Returns the currently set scatter shape size voidsetScatterShape(ScatterChart.ScatterShape shape)Sets the ScatterShape this DataSet should be drawn with. voidsetShapeRenderer(IShapeRenderer shapeRenderer)Sets a new IShapeRenderer responsible for drawing this DataSet.This can also be used to set a custom IShapeRenderer aside from the default ones. IShapeRenderergetShapeRenderer()Returns the IShapeRenderer responsible for rendering this DataSet. voidsetScatterShapeHoleRadius(float holeRadius)Sets the radius of the hole in the shape (applies to Square, Circle and Triangle)Set this to <= 0 to remove holes. floatgetScatterShapeHoleRadius()Returns radius of the hole in the shape voidsetScatterShapeHoleColor(int holeColor)Sets the color for the hole in the shape. intgetScatterShapeHoleColor()Returns the color for the hole in the shape static IShapeRenderergetRendererForShape(ScatterChart.ScatterShape shape)-
Methods inherited from class com.github.mikephil.charting.data.LineScatterCandleRadarDataSet
disableDashedHighlightLine, enableDashedHighlightLine, getDashPathEffectHighlight, getHighlightLineWidth, isDashedHighlightLineEnabled, isHorizontalHighlightIndicatorEnabled, isVerticalHighlightIndicatorEnabled, setDrawHighlightIndicators, setDrawHorizontalHighlightIndicator, setDrawVerticalHighlightIndicator, setHighlightLineWidth -
Methods inherited from class com.github.mikephil.charting.data.BarLineScatterCandleBubbleDataSet
getHighLightColor, setHighLightColor -
Methods inherited from class com.github.mikephil.charting.data.DataSet
addEntry, addEntryOrdered, calcMinMax, calcMinMaxY, clear, copy, getEntries, getEntriesForXValue, getEntryCount, getEntryForIndex, getEntryForXValue, getEntryForXValue, getEntryIndex, getEntryIndex, getValues, getXMax, getXMin, getYMax, getYMin, removeEntry, setEntries, setValues, toSimpleString, toString -
Methods inherited from class com.github.mikephil.charting.data.BaseDataSet
addColor, contains, getAxisDependency, getColor, getColors, getForm, getFormLineDashEffect, getFormLineWidth, getFormSize, getIconsOffset, getIndexInEntries, getLabel, getValueColors, getValueFormatter, getValueTextColor, getValueTextSize, getValueTypeface, isDrawIconsEnabled, isDrawValuesEnabled, isHighlightEnabled, isVisible, needsFormatter, notifyDataSetChanged, removeEntry, removeEntryByXValue, removeFirst, removeLast, resetColors, setAxisDependency, setColor, setColors, setDrawIcons, setDrawValues, setForm, setFormLineDashEffect, setFormLineWidth, setFormSize, setHighlightEnabled, setIconsOffset, setLabel, setValueFormatter, setValueTextColor, setValueTextColors, setValueTextSize, setValueTypeface, setVisible -
Methods inherited from class com.github.mikephil.charting.interfaces.datasets.IDataSet
contains, getAxisDependency, getColor, getColor, getColors, getEntryForXValue, getEntryIndex, getEntryIndex, getForm, getFormLineDashEffect, getFormLineWidth, getFormSize, getIconsOffset, getIndexInEntries, getLabel, getValueFormatter, getValueTextColor, getValueTextColor, getValueTextSize, getValueTypeface, isDrawIconsEnabled, isDrawValuesEnabled, isHighlightEnabled, isVisible, needsFormatter, removeEntry, removeEntryByXValue, removeFirst, removeLast, setAxisDependency, setDrawIcons, setDrawValues, setHighlightEnabled, setIconsOffset, setLabel, setValueFormatter, setValueTextColor, setValueTextColors, setValueTextSize, setValueTypeface, setVisible -
Methods inherited from class com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet
getHighLightColor -
Methods inherited from class com.github.mikephil.charting.interfaces.datasets.ILineScatterCandleRadarDataSet
getDashPathEffectHighlight, getHighlightLineWidth, isHorizontalHighlightIndicatorEnabled, isVerticalHighlightIndicatorEnabled -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setScatterShapeSize
void setScatterShapeSize(float size)
Sets the size in density pixels the drawn scattershape will have. Thisonly applies for non custom shapes.
-
getScatterShapeSize
float getScatterShapeSize()
Returns the currently set scatter shape size
-
setScatterShape
void setScatterShape(ScatterChart.ScatterShape shape)
Sets the ScatterShape this DataSet should be drawn with. This will search for an available IShapeRenderer and set thisrenderer for the DataSet.
-
setShapeRenderer
void setShapeRenderer(IShapeRenderer shapeRenderer)
Sets a new IShapeRenderer responsible for drawing this DataSet.This can also be used to set a custom IShapeRenderer aside from the default ones.
-
getShapeRenderer
IShapeRenderer getShapeRenderer()
Returns the IShapeRenderer responsible for rendering this DataSet.
-
setScatterShapeHoleRadius
void setScatterShapeHoleRadius(float holeRadius)
Sets the radius of the hole in the shape (applies to Square, Circle and Triangle)Set this to <= 0 to remove holes.
-
getScatterShapeHoleRadius
float getScatterShapeHoleRadius()
Returns radius of the hole in the shape
-
setScatterShapeHoleColor
void setScatterShapeHoleColor(int holeColor)
Sets the color for the hole in the shape.
-
getScatterShapeHoleColor
int getScatterShapeHoleColor()
Returns the color for the hole in the shape
-
getRendererForShape
static IShapeRenderer getRendererForShape(ScatterChart.ScatterShape shape)
-
-
-
-