ICandleDataSet<D> class abstract

What the candle stick renderer reads from a data set: candle body width, colors per direction and the shadow line. Implemented by CandleDataSet.

Every color may be ColorTemplate.COLOR_NONE to fall back to the data set color of the entry. That is the default for all of them.

D is the type of the payload attached to each entry.

Inheritance
Implementers

Constructors

ICandleDataSet()

Properties

axisDependency ↔ AxisDependency
The y axis this data set is plotted against. Default AxisDependency.LEFT.
getter/setter pairinherited
barSpace → double
Space left free on each side of a candle body, as a fraction of the x step from 0 to 0.45. Default 0.1.
no setter
color → Color
The first of colors, the color used when only one is set.
no setterinherited
colors → List<Color>
Colors used to draw the entries, cycled by getColor when there are fewer colors than entries.
no setterinherited
dashPathEffectHighlight → DashPathEffect?
Dash effect of the highlight indicator lines, null for solid lines.
no setterinherited
decreasingColor → Color
Body color when close is below open.
no setter
decreasingPaintStyle → PaintStyle
Whether decreasing bodies are filled or outlined. Default PaintStyle.FILL.
no setter
entryCount → int
Number of entries in this data set.
no setterinherited
form → LegendForm
Shape drawn for this data set in the legend. LegendForm.DEFAULT uses the legend's form.
no setterinherited
formLineDashEffect → DashPathEffect?
Dash effect for legend forms drawn as lines. Null uses the legend's dash effect.
no setterinherited
formLineWidth → double
Line width in dp for legend forms drawn as lines. NaN uses the legend's line width.
no setterinherited
formSize → double
Size of the legend form in dp. NaN uses the legend's form size.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hasNonFiniteY → bool
True when an entry's y may not be a finite number, so a renderer has to look for gaps before drawing a line. The default is true, which is always safe; answer false only when every y is known to be finite.
no setterinherited
highlightColor → Color
Color of the highlight indicator drawn at a selected entry. Default a light orange, rgb(255, 187, 115).
no setterinherited
highlightLineWidth → double
Width of the highlight indicator lines in dp. Default 0.5 dp.
no setterinherited
horizontalHighlightIndicatorSpan → HighlightLineSpan
How far the horizontal highlight line reaches. Default HighlightLineSpan.FULL.
no setterinherited
iconsOffset ↔ MPPointF
Offset of the icons from their entry position in dp. For pie and radar charts x moves the icon along the value direction and y moves it towards or away from the center.
getter/setter pairinherited
increasingColor → Color
Body color when close is above open.
no setter
increasingPaintStyle → PaintStyle
Whether increasing bodies are filled or outlined. Default PaintStyle.STROKE.
no setter
isDrawIconsEnabled ↔ bool
True to draw the entry icons. Default true. Not drawn when more entries are visible than the chart's maxVisibleCount allows.
getter/setter pairinherited
isDrawValuesEnabled ↔ bool
True to draw the value labels at the entries. Default true. Not drawn when more entries are visible than the chart's maxVisibleCount allows.
getter/setter pairinherited
isHighlightEnabled ↔ bool
True if entries of this data set can be highlighted by touch or chart.highlightValue(...). Default true.
getter/setter pairinherited
isHorizontalHighlightIndicatorEnabled → bool
True to draw a horizontal line through a highlighted entry. Default true.
no setterinherited
isVerticalHighlightIndicatorEnabled → bool
True to draw a vertical line through a highlighted entry. Default true.
no setterinherited
isVisible ↔ bool
True if this data set is drawn. Default true. Hidden data sets still count for the axis ranges.
getter/setter pairinherited
label ↔ String
Name shown in the legend for this data set.
getter/setter pairinherited
needsFormatter → bool
True if no formatter was set, so the chart should supply its default formatter.
no setterinherited
neutralColor → Color
Body color when open equals close.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shadowColor → Color
Color of the shadow line, unless shadowColorSameAsCandle is true.
no setter
shadowColorSameAsCandle → bool
True to draw the shadow line in the body color of its candle instead of shadowColor. Default false.
no setter
shadowWidth → double
Stroke width of the shadow line between high and low in dp. Default 1.5 dp.
no setter
showCandleBar → bool
True to draw candle bodies; false draws only the open and close ticks on the shadow line. Default true.
no setter
valueFormatter ↔ IValueFormatter
Formatter for the value labels drawn at the entries. Until one is set, the chart's default formatter is returned and needsFormatter is true.
getter/setter pairinherited
valueTextColor ↔ Color
Color of the value labels. Reading it returns the first of valueTextColors; writing replaces the whole list.
getter/setter pairinherited
valueTextColors ↔ List<Color>
Colors of the value labels, cycled by getValueTextColor when there are fewer colors than entries.
getter/setter pairinherited
valueTextSize ↔ double
Text size of the value labels in dp. Default 7 dp.
getter/setter pairinherited
valueTypeface ↔ Typeface?
Typeface of the value labels, null for the default.
getter/setter pairinherited
verticalHighlightIndicatorSpan → HighlightLineSpan
How far the vertical highlight line reaches. Default HighlightLineSpan.FULL.
no setterinherited
xMax → double
Largest x value in this data set, -Float.MAX_VALUE when empty.
no setterinherited
xMin → double
Smallest x value in this data set, Kotlin Float.MAX_VALUE when empty.
no setterinherited
yMax → double
Largest y value in this data set, -Float.MAX_VALUE when empty.
no setterinherited
yMin → double
Smallest y value in this data set, Kotlin Float.MAX_VALUE when empty.
no setterinherited

Methods

addEntry(CandleEntry<D> e) → bool
Appends e at the end of the entry list and updates the min and max values.
inherited
addEntryOrdered(CandleEntry<D> e) → void
Inserts e at the position matching its x value and updates the min and max values.
inherited
calcMinMax() → void
Recomputes xMin, xMax, yMin and yMax from all entries.
inherited
calcMinMaxY(double fromX, double toX) → void
Recomputes yMin and yMax from the entries between the x values fromX and toX only. Used when the chart auto scales its y axis to the visible range.
inherited
clear() → void
Removes all entries and resets the min and max values.
inherited
contains(CandleEntry<D> entry) → bool
True if entry is in this data set. Scans all entries.
inherited
getColor(int index) → Color
Returns the color for entry index, wrapping around colors with modulo.
inherited
getEntriesForXValue(double xValue) → List<CandleEntry<D>>
Returns all entries whose x value equals xValue, or an empty list if there is none.
inherited
getEntryForIndex(int index) → CandleEntry<D>
Returns the entry at position index in the entry list.
inherited
getEntryForXValue(double xValue, [double closestToY = double.nan, Rounding rounding = Rounding.CLOSEST]) → CandleEntry<D>?
Returns the entry at xValue, or the entry at the nearest x value according to rounding if there is none.
inherited
getEntryIndex(double xValue, [double closestToY = double.nan, Rounding rounding = Rounding.CLOSEST]) → int
Returns the index of the entry at xValue, or of the entry at the nearest x value according to rounding.
inherited
getEntryIndexOf(Entry e) → int
Returns the index of e in the entry list, or -1 if it is not contained.
inherited
getIndexInEntries(int xIndex) → int
Returns the index of the first entry whose x value equals xIndex by scanning all entries, or -1 if there is none.
inherited
getValueTextColor(int index) → Color
Returns the value label color for entry index, wrapping around valueTextColors with modulo.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEntry(CandleEntry<D> e) → bool
Removes e and updates the min and max values. Returns false if e is not contained.
inherited
removeEntryByIndex(int index) → bool
Removes the entry at index and returns true. Throws when index is out of range.
inherited
removeEntryByXValue(double xValue) → bool
Removes the entry at or closest to xValue. Returns false if the data set is empty.
inherited
removeFirst() → bool
Removes the entry at index 0. Returns false if the data set is empty.
inherited
removeLast() → bool
Removes the last entry. Returns false if the data set is empty.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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