BarChartGroupData class
Represents a group of rods (or bars) inside the BarChartWidget.
in the BarChartWidget we have some rods, they can be grouped or not, if you want to have grouped bars, simply put them in each group, otherwise just pass one of them in each group.
Constructors
-
BarChartGroupData({required int x, bool? groupVertically, List<
BarChartRodData> ? barRods, double? barsSpace, List<int> ? showingTooltipIndicators}) -
BarChartWidget renders groups, and arrange them using
alignment
,x
value defines the group's value in the x axis (set them incrementally). it renders a list of BarChartRodData that represents a rod (or a bar) in the bar chart, and appliesbarsSpace
between them.
Properties
-
barRods
→ List<
BarChartRodData> -
BarChartWidget renders barRods that represents a rod (or a bar) in the bar chart.
final
- barsSpace → double
-
BarChartWidget applies barsSpace between barRods if groupVertically is false.
final
- groupVertically → bool
-
If set true, it will show bars below/above each other.
Otherwise, it will show bars beside each other.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
props
→ List<
Object?> -
Used for equality check, see
EquatableMixin
.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
showingTooltipIndicators
→ List<
int> -
you can show some tooltipIndicators (a popup with an information)
on top of each BarChartRodData using showingTooltipIndicators,
just put indices you want to show it on top of them.
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - width → double
-
width of the group (sum of all BarChartRodData's width and spaces)
no setter
- x → int
-
Order along the x axis in which titles, and titles only, will be shown.
final
Methods
-
copyWith(
{int? x, bool? groupVertically, List< BarChartRodData> ? barRods, double? barsSpace, List<int> ? showingTooltipIndicators}) → BarChartGroupData - Copies current BarChartGroupData to a new BarChartGroupData, and replaces provided values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
lerp(
BarChartGroupData a, BarChartGroupData b, double t) → BarChartGroupData -
Lerps a BarChartGroupData based on
t
value, check Tween.lerp.