ParetoChartData class
Prepared, immutable data for a Pareto bar-and-line composition.
Categories are sorted from largest to smallest while equal values preserve their source order. valuePoints and cumulativePoints deliberately share the same X values and labels so they can be rendered as a bar series and a line series on independent Y axes.
- Annotations
Constructors
-
ParetoChartData({required Iterable<
ParetoCategory> categories}) -
factory
Properties
-
categories
→ List<
ParetoCategory> -
Categories in descending value order.
final
-
cumulativePercentages
→ List<
double> -
Running contribution to total, expressed from 0 to 100.
final
-
cumulativePoints
→ List<
ChartDataPoint> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- total → double
-
Sum of all category values.
final
-
valuePoints
→ List<
ChartDataPoint> -
no setter
Methods
-
firstIndexAtOrAbove(
double percentage) → int? -
Returns the first sorted category index reaching
percentage. -
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