RandomChartData class
Generator of sample data for testing the charts.
Constructors
- RandomChartData({required dynamic dataRows, required dynamic xUserLabels, required dynamic dataRowsLegends, required dynamic chartOptions, dynamic yUserLabels, dynamic dataRowsColors})
- RandomChartData.generated({required ChartOptions chartOptions, bool useUserProvidedYLabels = false, int numXLabels = 6, int numDataRows = 4, bool useMonthNames = true, int maxLabelLength = 8, bool overlapDataYs = false, dynamic dataRowsColors})
-
Generate random data for chart, with number of x labels given by
numXLabels
and number of data series given bynumDataRows
.
Properties
- chartOptions → ChartOptions
-
Chart options which may affect data validation.
finalinherited
-
dataRows
→ List<
List< double> > -
Data in rows.
finalinherited
-
dataRowsColors
→ List<
Color> -
Colors corresponding to each data row (series) in ChartData.
finalinherited
-
dataRowsLegends
→ List<
String> -
The legends for the dataRows (data series).
finalinherited
- dataYMax → double
-
no setterinherited
- dataYMin → double
-
no setterinherited
-
flatten
→ List<
double> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isUsingUserLabels → bool
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
xUserLabels
→ List<
String> -
Labels on independent (X) axis.
finalinherited
-
yUserLabels
→ List<
String> ? -
User defined labels to be used by the chart, instead of labels auto-generated from data.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited