-
- All Implemented Interfaces:
-
com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet,com.github.mikephil.charting.interfaces.datasets.ICandleDataSet,com.github.mikephil.charting.interfaces.datasets.IDataSet,com.github.mikephil.charting.interfaces.datasets.ILineScatterCandleRadarDataSet,com.github.mikephil.charting.interfaces.datasets.ILineScatterCandleRadarDataSet,java.io.Serializable
public class CandleDataSet extends LineScatterCandleRadarDataSet<CandleEntry> implements ICandleDataSet
DataSet for the CandleStickChart.
-
-
Constructor Summary
Constructors Constructor Description CandleDataSet(List<CandleEntry> yVals, String label)
-
Method Summary
Modifier and Type Method Description DataSet<CandleEntry>copy()Provides an exact copy of the DataSet this method is used on. voidsetBarSpace(float space)Sets the space that is left out on the left and right side of eachcandle, default 0.1f (10%), max 0. floatgetBarSpace()Returns the space that is left out on the left and right side of eachcandle. voidsetShadowWidth(float width)Sets the width of the candle-shadow-line in pixels. floatgetShadowWidth()Returns the width of the candle-shadow-line in pixels. voidsetShowCandleBar(boolean showCandleBar)Sets whether the candle bars should show? booleangetShowCandleBar()Returns whether the candle bars should show? voidsetNeutralColor(int color)Sets the one and ONLY color that should be used for this DataSet whenopen == close. intgetNeutralColor()Returns the neutral color (for open == close) voidsetIncreasingColor(int color)Sets the one and ONLY color that should be used for this DataSet whenopen <= close. intgetIncreasingColor()Returns the increasing color (for open < close). voidsetDecreasingColor(int color)Sets the one and ONLY color that should be used for this DataSet whenopen > close. intgetDecreasingColor()Returns the decreasing color (for open > close). Paint.StylegetIncreasingPaintStyle()Returns paint style when open < close voidsetIncreasingPaintStyle(Paint.Style paintStyle)Sets paint style when open < close Paint.StylegetDecreasingPaintStyle()Returns paint style when open > close voidsetDecreasingPaintStyle(Paint.Style decreasingPaintStyle)Sets paint style when open > close intgetShadowColor()Returns shadow color for all entries voidsetShadowColor(int shadowColor)Sets shadow color for all entries booleangetShadowColorSameAsCandle()Is the shadow color same as the candle color? voidsetShadowColorSameAsCandle(boolean shadowColorSameAsCandle)Sets shadow color to be the same color as the candle color -
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
-
-
Constructor Detail
-
CandleDataSet
CandleDataSet(List<CandleEntry> yVals, String label)
-
-
Method Detail
-
copy
DataSet<CandleEntry> copy()
Provides an exact copy of the DataSet this method is used on.
-
setBarSpace
void setBarSpace(float space)
Sets the space that is left out on the left and right side of eachcandle, default 0.1f (10%), max 0.45f, min 0f
-
getBarSpace
float getBarSpace()
Returns the space that is left out on the left and right side of eachcandle.
-
setShadowWidth
void setShadowWidth(float width)
Sets the width of the candle-shadow-line in pixels. Default 3f.
-
getShadowWidth
float getShadowWidth()
Returns the width of the candle-shadow-line in pixels.
-
setShowCandleBar
void setShowCandleBar(boolean showCandleBar)
Sets whether the candle bars should show?
-
getShowCandleBar
boolean getShowCandleBar()
Returns whether the candle bars should show?When false, only "ticks" will show- default: true
-
setNeutralColor
void setNeutralColor(int color)
Sets the one and ONLY color that should be used for this DataSet whenopen == close.
-
getNeutralColor
int getNeutralColor()
Returns the neutral color (for open == close)
-
setIncreasingColor
void setIncreasingColor(int color)
Sets the one and ONLY color that should be used for this DataSet whenopen <= close.
-
getIncreasingColor
int getIncreasingColor()
Returns the increasing color (for open < close).
-
setDecreasingColor
void setDecreasingColor(int color)
Sets the one and ONLY color that should be used for this DataSet whenopen > close.
-
getDecreasingColor
int getDecreasingColor()
Returns the decreasing color (for open > close).
-
getIncreasingPaintStyle
Paint.Style getIncreasingPaintStyle()
Returns paint style when open < close
-
setIncreasingPaintStyle
void setIncreasingPaintStyle(Paint.Style paintStyle)
Sets paint style when open < close
-
getDecreasingPaintStyle
Paint.Style getDecreasingPaintStyle()
Returns paint style when open > close
-
setDecreasingPaintStyle
void setDecreasingPaintStyle(Paint.Style decreasingPaintStyle)
Sets paint style when open > close
-
getShadowColor
int getShadowColor()
Returns shadow color for all entries
-
setShadowColor
void setShadowColor(int shadowColor)
Sets shadow color for all entries
-
getShadowColorSameAsCandle
boolean getShadowColorSameAsCandle()
Is the shadow color same as the candle color?
-
setShadowColorSameAsCandle
void setShadowColorSameAsCandle(boolean shadowColorSameAsCandle)
Sets shadow color to be the same color as the candle color
-
-
-
-