LineDataSet class

Inheritance
Implemented types

Constructors

LineDataSet(List<Entry> yVals, String label)

Properties

dashPathEffect DashPathEffect
write-only
hashCode int
The hash code for this object. [...]
read-only, inherited
highlightDashPathEffect DashPathEffect
write-only, inherited
mDrawCircleHole bool
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
values List<Entry>
read-only, inherited
xMax double
write-only, inherited
xMin double
write-only, inherited
yMax double
write-only, inherited
yMin double
write-only, inherited

Methods

addColor(Color color) → void
Adds a color to the colors array of the DataSet. [...]
inherited
addEntry(Entry e) bool
inherited
addEntryByIndex(int index, Entry 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(Entry e) → void
inherited
calcMinMax() → void
inherited
calcMinMax1(Entry e) → void
Updates the min and max x and y value of this DataSet based on the given Entry. [...]
inherited
calcMinMaxX1(Entry e) → void
inherited
calcMinMaxY(double fromX, double toX) → void
inherited
calcMinMaxY1(Entry e) → void
inherited
clear() → void
inherited
contains(Entry e) bool
inherited
copy(BaseDataSet<Entry> baseDataSet) → void
override
copy1() DataSet<Entry>
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
disableDashedLine() → void
Disables the line to be drawn in dashed mode.
enableDashedHighlightLine(double lineLength, double spaceLength, double phase) → void
Enables the highlight-line to be drawn in dashed mode, e.g. like this "- - - - - -" [...]
inherited
enableDashedLine(double lineLength, double spaceLength, double phase) → void
Enables the line to be drawn in dashed mode, e.g. like this "- - - - - -". THIS ONLY WORKS IF HARDWARE-ACCELERATION IS TURNED OFF. Keep in mind that hardware acceleration boosts performance. [...]
getAxisDependency() AxisDependency
inherited
getCircleColor(int index) Color
Returns the color at the given index of the DataSet's circle-color array. Performs a IndexOutOfBounds check by modulus. [...]
override
getCircleColorCount() int
Returns the number of colors in this DataSet's circle-color array. [...]
override
getCircleColors() List<Color>
returns all colors specified for the circles [...]
getCircleHoleColor() Color
Returns the color of the inner circle (the circle-hole). [...]
override
getCircleHoleRadius() double
Returns the hole radius of the drawn circles.
override
getCircleRadius() double
Returns the size of the drawn circles.
override
getCircleSize() double
This function is deprecated because of unclarity. Use getCircleRadius instead.
getColor1() Color
inherited
getColor2(int index) Color
inherited
getColors() List<Color>
###### COLOR GETTING RELATED METHODS #####
inherited
getCubicIntensity() double
Returns the intensity of the cubic lines (the effect intensity). Max = 1f = very cubic, Min = 0.05f = low cubic effect, Default: 0.2f [...]
override
getDashPathEffect() DashPathEffect
Returns the DashPathEffect that is used for drawing the lines. [...]
override
getDashPathEffectHighlight() DashPathEffect
Returns the DashPathEffect that is used for highlighting. @return
inherited
getEntriesForXValue(double xValue) List<Entry>
inherited
getEntryCount() int
inherited
getEntryForIndex(int index) Entry
inherited
getEntryForXValue1(double xValue, double closestToY, Rounding rounding) Entry
inherited
getEntryForXValue2(double xValue, double closestToY) Entry
inherited
getEntryIndex1(double xValue, double closestToY, Rounding rounding) int
inherited
getEntryIndex2(Entry e) int
inherited
getFillAlpha() int
Sets the drawable to be used to fill the area below the line. [...]
inherited
getFillColor() Color
Returns the color that is used for filling the line surface area. [...]
inherited
getFillFormatter() IFillFormatter
Returns the IFillFormatter that is set for this DataSet. [...]
override
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
getIndexInEntries(int xIndex) int
###### DATA RELATED METHODS ######
inherited
getLabel() String
inherited
getLineWidth() double
Returns the stroke-width of the drawn line [...]
inherited
getMode() Mode
Returns the drawing mode for this line dataset [...]
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
isDashedLineEnabled() bool
Returns true if the dashed-line effect is enabled, false if not. If the DashPathEffect object is null, also return false here. [...]
override
isDrawCircleHoleEnabled() bool
Returns true if drawing the circle-holes is enabled, false if not. [...]
override
isDrawCirclesEnabled() bool
Returns true if drawing circles for this DataSet is enabled, false if not [...]
override
isDrawCubicEnabled() bool
override
isDrawFilledEnabled() bool
Returns true if filled drawing is enabled, false if not [...]
inherited
isDrawIconsEnabled() bool
inherited
isDrawSteppedEnabled() bool
override
isDrawValuesEnabled() bool
inherited
isGradientEnabled() 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 non-existent method or property is accessed. [...]
inherited
notifyDataSetChanged() → void
Use this method to tell the data set that the underlying data has changed.
inherited
removeEntry1(Entry e) bool
inherited
removeEntry2(int index) bool
inherited
removeEntryByXValue(double xValue) bool
inherited
removeFirst() bool
inherited
removeLast() bool
inherited
resetCircleColors() → void
resets the circle-colors array and creates a one
resetColors() → void
Resets all colors of this DataSet and recreates the colors array.
inherited
setAxisDependency(AxisDependency dependency) → void
inherited
setCircleColor(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. [...]
setCircleColors(List<Color> colors) → void
Sets the colors that should be used for the circles of this DataSet. Colors are reused as soon as the number of Entries the DataSet represents is higher than the size of the colors array. Make sure that the colors are already prepared (by calling getResources().getColor(...)) before adding them to the DataSet. [...]
setCircleHoleColor(Color color) → void
Sets the color of the inner circle of the line-circles. [...]
setCircleHoleRadius(double holeRadius) → void
Sets the hole radius of the drawn circles. Default radius = 2f, Min = 0.5f [...]
setCircleRadius(double radius) → void
Sets the radius of the drawn circles. Default radius = 4f, Min = 1f [...]
setCircleSize(double size) → void
sets the size (radius) of the circle shpaed value indicators, default size = 4f [...]
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
setCubicIntensity(double intensity) → void
Sets the intensity for cubic lines (if enabled). Max = 1f = very cubic, Min = 0.05f = low cubic effect, Default: 0.2f [...]
setDrawCircleHole(bool enabled) → void
Set this to true to allow drawing a hole in each data circle. [...]
setDrawCircles(bool enabled) → void
set this to true to enable the drawing of circle indicators for this DataSet, default true [...]
setDrawFilled(bool filled) → void
Set to true if the DataSet should be drawn filled (surface), and not just as a line, disabling this will give great performance boost. Please note that this method uses the canvas.clipPath(...) method for drawing the filled area. For devices with API level < 18 (Android 4.3), hardware acceleration of the chart should be turned off. Default: false [...]
inherited
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
setFillAlpha(int alpha) → void
sets the alpha value (transparency) that is used for filling the line surface (0-255), default: 85 [...]
inherited
setFillColor(Color color) → void
Sets the color that is used for filling the area below the line. Resets an eventually set "fillDrawable". [...]
inherited
setFillFormatter(IFillFormatter formatter) → void
Sets a custom IFillFormatter to the chart that handles the position of the filled-line for each DataSet. Set this to null to use the default logic. [...]
setForm(LegendForm form) → void
inherited
setFormLineDashEffect(DashPathEffect dashPathEffect) → void
inherited
setFormLineWidth(double formLineWidth) → void
inherited
setFormSize(double formSize) → void
inherited
setGradientColor(Color start, Color end) → 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
setGradientFilled(bool enabled) → void
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
setLabel(String label) → void
###### OTHER STYLING RELATED METHODS #####
inherited
setLineWidth(double width) → void
set the line width of the chart (min = 0.2f, max = 10f); default 1f NOTE: thinner line == better performance, thicker line == worse performance [...]
inherited
setMode(Mode mode) → void
Returns the drawing mode for this LineDataSet [...]
setValueFormatter(ValueFormatter f) → void
inherited
setValues(List<Entry> 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. [...]
override
updateEntryByIndex(int index, Entry e) bool
inherited

Operators

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