BarDataSet class

Inheritance
Implemented types

Constructors

BarDataSet(List<BarEntry> yVals, String label)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<BarEntry>?
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(BarEntry? e) bool
inherited
addEntryByIndex(int index, BarEntry? e) bool
inherited
addEntryOrdered(BarEntry? e) → void
inherited
calcEntryCountIncludingStacks(List<BarEntry> yVals) → void
Calculates the total number of entries this DataSet represents, including stacks. All values belonging to a stack are calculated separately.
calcMinMax() → void
inherited
calcMinMax1(BarEntry? e) → void
Updates the min and max x and y value of this DataSet based on the given Entry.
override
calcMinMaxX1(BarEntry e) → void
inherited
calcMinMaxY(double fromX, double toX) → void
inherited
calcMinMaxY1(BarEntry e) → void
inherited
calcStackSize(List<BarEntry> yVals) → void
calculates the maximum stacksize that occurs in the Entries array of this DataSet
clear() → void
inherited
contains(BarEntry e) bool
inherited
copy(BaseDataSet<Entry> baseDataSet) → void
override
copy1() DataSet<BarEntry>
Provides an exact copy of the DataSet this method is used on.
override
copy2(DataSet<Entry> dataSet) → void
@param dataSet
inherited
getAxisDependency() AxisDependency
inherited
getBarBorderColor() Color
Returns the color drawing borders around the bars.
override
getBarBorderWidth() double
Returns the width used for drawing borders around the bars. If borderWidth == 0, no border will be drawn.
override
getBarShadowColor() Color
Returns the color used for drawing the bar-shadows. The bar shadows is a surface behind the bar that indicates the maximum value.
override
getColor1() Color
inherited
getColor2(int index) Color
inherited
getColors() List<Color>?
###### COLOR GETTING RELATED METHODS #####
inherited
getEntriesForXValue(double? xValue) List<BarEntry>
inherited
getEntryCount() int
inherited
getEntryCountStacks() int
returns the overall entry count, including counting each stack-value individually
getEntryForIndex(int? index) BarEntry?
inherited
getEntryForXValue1(double? xValue, double? closestToY, Rounding rounding) BarEntry?
inherited
getEntryForXValue2(double? xValue, double? closestToY) BarEntry?
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
getHighLightAlpha() int
Returns the alpha value (transparency) that is used for drawing the highlight indicator.
override
getHighLightColor() Color
Returns the color that is used for drawing the highlight indicators.
inherited
getIconsOffset() MPPointF
inherited
getIndexInEntries(int xIndex) int
###### DATA RELATED METHODS ######
inherited
getLabel() String
inherited
getStackLabels() List<String>
Returns the labels used for the different value-stacks in the legend. This is only relevant for stacked bar entries.
override
getStackSize() int
Returns the maximum number of bars that can be stacked upon another in this DataSet. This should return 1 for non stacked bars, and > 1 for stacked bars.
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
isDrawIconsEnabled() bool
inherited
isDrawValuesEnabled() bool
inherited
isHighlightEnabled() bool
inherited
isStacked() bool
Returns true if this DataSet is stacked (stacksize > 1) or not.
override
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(BarEntry? 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
setBarBorderColor(Color color) → void
Sets the color drawing borders around the bars.
setBarBorderWidth(double width) → void
Sets the width used for drawing borders around the bars. If borderWidth == 0, no border will be drawn.
setBarShadowColor(Color color) → void
Sets the color used for drawing the bar-shadows. The bar shadows is a surface behind the bar that indicates the maximum value. Don't for get to use getResources().getColor(...) to set this. Or Color.rgb(...).
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
setDrawIcons(bool enabled) → void
inherited
setDrawValues(bool enabled) → void
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
setHighLightAlpha(int alpha) → void
Set the alpha value (transparency) that is used for drawing the highlight indicator bar. min = 0 (fully transparent), max = 255 (fully opaque)
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
setIconsOffset(MPPointF offsetDp) → void
inherited
setLabel(String label) → void
###### OTHER STYLING RELATED METHODS #####
inherited
setStackLabels(List<String> labels) → void
Sets labels for different values of bar-stacks, in case there are one.
setValueFormatter(ValueFormatter? f) → void
inherited
setValues(List<BarEntry> 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, BarEntry? e) bool
inherited

Operators

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