CandleDataSet class

Inheritance
Implemented types

Constructors

CandleDataSet(List<CandleEntry> yVals, String label)

Properties

hashCode int
The hash code for this object.
no setterinherited
highlightDashPathEffect DashPathEffect
no getterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<CandleEntry>?
no setterinherited
xMax double
no getterinherited
xMin double
no getterinherited
yMax double
no getterinherited
yMin double
no getterinherited

Methods

addColor(Color color) → void
Adds a color to the colors array of the DataSet.
inherited
addEntry(CandleEntry? e) bool
inherited
addEntryByIndex(int index, CandleEntry? e) bool
It's best not to use this method because it will cause the points to be unevenly distributed in x axis. the added entry's x value must be in range of Pre's x value(Pre : Entry at index - 1) and Cur's x value(Cur: Entry at index).
inherited
addEntryOrdered(CandleEntry? e) → void
inherited
calcMinMax() → void
inherited
calcMinMax1(CandleEntry? e) → void
Updates the min and max x and y value of this DataSet based on the given Entry.
override
calcMinMaxX1(CandleEntry e) → void
inherited
calcMinMaxY(double fromX, double toX) → void
inherited
calcMinMaxY1(CandleEntry? e) → void
override
clear() → void
inherited
contains(CandleEntry e) bool
inherited
copy(BaseDataSet<Entry> baseDataSet) → void
override
copy1() DataSet<CandleEntry>
Provides an exact copy of the DataSet this method is used on.
override
copy2(DataSet<Entry> dataSet) → void
@param dataSet
inherited
disableDashedHighlightLine() → void
Disables the highlight-line to be drawn in dashed mode.
inherited
enableDashedHighlightLine(double lineLength, double spaceLength, double phase) → void
Enables the highlight-line to be drawn in dashed mode, e.g. like this "- - - - - -"
inherited
getAxisDependency() AxisDependency
inherited
getBarSpace() double
Returns the space that is left out on the left and right side of each candle.
override
getColor1() Color
inherited
getColor2(int index) Color
inherited
getColors() List<Color>?
###### COLOR GETTING RELATED METHODS #####
inherited
getDashPathEffectHighlight() DashPathEffect?
Returns the DashPathEffect that is used for highlighting. @return
override
getDecreasingColor() Color
Returns the decreasing color (for open > close).
override
getDecreasingPaintStyle() PaintingStyle
Returns paint style when open > close
override
getEntriesForXValue(double? xValue) List<CandleEntry>
inherited
getEntryCount() int
inherited
getEntryForIndex(int? index) CandleEntry?
inherited
getEntryForXValue1(double? xValue, double? closestToY, Rounding rounding) CandleEntry?
inherited
getEntryForXValue2(double? xValue, double? closestToY) CandleEntry?
inherited
getEntryIndex1(double? xValue, double? closestToY, Rounding rounding) int
inherited
getEntryIndex2(Entry? e) int
inherited
getForm() LegendForm
inherited
getFormLineDashEffect() DashPathEffect?
inherited
getFormLineWidth() double
inherited
getFormSize() double
inherited
getGradientColor1() GradientColor?
inherited
getGradientColor2(int index) GradientColor
inherited
getGradientColors() List<GradientColor>?
inherited
getHighLightColor() Color
Returns the color that is used for drawing the highlight indicators.
inherited
getHighlightLineWidth() double?
Returns the line-width in which highlight lines are to be drawn. @return
inherited
getIconsOffset() MPPointF
inherited
getIncreasingColor() Color
Returns the increasing color (for open < close).
override
getIncreasingPaintStyle() PaintingStyle
Returns paint style when open < close
override
getIndexInEntries(int xIndex) int
###### DATA RELATED METHODS ######
inherited
getLabel() String
inherited
getNeutralColor() Color
Returns the neutral color (for open == close)
override
getShadowColor() Color
Returns shadow color for all entries
override
getShadowColorSameAsCandle() bool
Is the shadow color same as the candle color?
override
getShadowWidth() double?
Returns the width of the candle-shadow-line in pixels.
override
getShowCandleBar() bool
Returns whether the candle bars should show? When false, only "ticks" will show
override
getValueColors() List<Color>?
inherited
getValueFormatter() ValueFormatter?
inherited
getValueTextColor1() Color
inherited
getValueTextColor2(int index) Color
inherited
getValueTextSize() double?
inherited
getValueTypeface() TypeFace?
inherited
getXMax() double
inherited
getXMin() double
inherited
getYMax() double
inherited
getYMin() double
inherited
isDashedHighlightLineEnabled() bool
Returns true if the dashed-line effect is enabled for highlight lines, false if not. Default: disabled
inherited
isDrawIconsEnabled() bool
inherited
isDrawValuesEnabled() bool
inherited
isHighlightEnabled() bool
inherited
isHorizontalHighlightIndicatorEnabled() bool
Returns true if vertical highlight indicator lines are enabled (drawn) @return
inherited
isVerticalHighlightIndicatorEnabled() bool
Returns true if vertical highlight indicator lines are enabled (drawn) @return
inherited
isVisible() bool
inherited
needsFormatter() bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyDataSetChanged() → void
Use this method to tell the data set that the underlying data has changed.
inherited
removeEntry1(CandleEntry? e) bool
inherited
removeEntry2(int index) bool
inherited
removeEntryByXValue(double xValue) bool
inherited
removeFirst() bool
inherited
removeLast() bool
inherited
resetColors() → void
Resets all colors of this DataSet and recreates the colors array.
inherited
setAxisDependency(AxisDependency dependency) → void
inherited
setBarSpace(double space) → void
Sets the space that is left out on the left and right side of each candle, default 0.1f (10%), max 0.45f, min 0f
setColor1(Color color) → void
Sets the one and ONLY color that should be used for this DataSet. Internally, this recreates the colors array and adds the specified color.
inherited
setColor2(Color color, int alpha) → void
Sets a color with a specific alpha value.
inherited
setColor3(Color color, int alpha) → void
inherited
setColors1(List<Color> colors) → void
Sets the colors that should be used fore this DataSet. Colors are reused as soon as the number of Entries the DataSet represents is higher than the size of the colors array. If you are using colors from the resources, make sure that the colors are already prepared (by calling getResources().getColor(...)) before adding them to the DataSet.
inherited
setColors2(List<Color> colors, int alpha) → void
Sets colors with a specific alpha value.
inherited
setDecreasingColor(Color color) → void
Sets the one and ONLY color that should be used for this DataSet when open > close.
setDecreasingPaintStyle(PaintingStyle decreasingPaintStyle) → void
Sets paint style when open > close
setDrawHighlightIndicators(bool enabled) → void
Enables / disables both vertical and horizontal highlight-indicators. @param enabled
inherited
setDrawHorizontalHighlightIndicator(bool enabled) → void
Enables / disables the horizontal highlight-indicator. If disabled, the indicator is not drawn. @param enabled
inherited
setDrawIcons(bool enabled) → void
inherited
setDrawValues(bool enabled) → void
inherited
setDrawVerticalHighlightIndicator(bool enabled) → void
Enables / disables the vertical highlight-indicator. If disabled, the indicator is not drawn. @param enabled
inherited
setForm(LegendForm form) → void
inherited
setFormLineDashEffect(DashPathEffect dashPathEffect) → void
inherited
setFormLineWidth(double formLineWidth) → void
inherited
setFormSize(double formSize) → void
inherited
setGradientColor(Color startColor, Color endColor) → void
Sets the start and end color for gradient color, ONLY color that should be used for this DataSet.
inherited
setGradientColors(List<GradientColor> gradientColors) → void
Sets the start and end color for gradient colors, ONLY color that should be used for this DataSet.
inherited
setHighLightColor(Color color) → void
Sets the color that is used for drawing the highlight indicators. Dont forget to resolve the color using getResources().getColor(...) or Color.rgb(...).
inherited
setHighlightEnabled(bool enabled) → void
inherited
setHighlightLineWidth(double width) → void
Sets the width of the highlight line in dp. @param width
inherited
setIconsOffset(MPPointF offsetDp) → void
inherited
setIncreasingColor(Color color) → void
Sets the one and ONLY color that should be used for this DataSet when open <= close.
setIncreasingPaintStyle(PaintingStyle paintStyle) → void
Sets paint style when open < close
setLabel(String label) → void
###### OTHER STYLING RELATED METHODS #####
inherited
setNeutralColor(Color color) → void
Sets the one and ONLY color that should be used for this DataSet when open == close.
setShadowColor(Color shadowColor) → void
Sets shadow color for all entries
setShadowColorSameAsCandle(bool shadowColorSameAsCandle) → void
Sets shadow color to be the same color as the candle color
setShadowWidth(double width) → void
Sets the width of the candle-shadow-line in pixels. Default 3f.
setShowCandleBar(bool showCandleBar) → void
Sets whether the candle bars should show?
setValueFormatter(ValueFormatter? f) → void
inherited
setValues(List<CandleEntry> values) → void
Sets the array of entries that this DataSet represents, and calls notifyDataSetChanged()
inherited
setValueTextColor(Color color) → void
inherited
setValueTextColors(List<Color> colors) → void
inherited
setValueTextSize(double size) → void
inherited
setValueTypeface(TypeFace tf) → void
inherited
setVisible(bool visible) → void
inherited
toSimpleString() String
Returns a simple string representation of the DataSet with the type and the number of Entries.
inherited
toString() String
A string representation of this object.
inherited
updateEntryByIndex(int index, CandleEntry? e) bool
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited