Dart Documentationorson_chartsDataUtils

DataUtils class

Utility methods for working with data.

Static Properties

List<int> AA #

Static Methods

num total(Values<num> values) #

Returns the total of the supplied numerical values, ignoring any null items.

int count(KeyedValues3D data, Comparable seriesKey) #

Counts the number of non-null items in data for the series with the specified seriesKey.

int countForRow(KeyedValues3D data, Comparable rowKey) #

Counts the number of non-null items in data for the row with the specified rowKey.

int countForColumn(KeyedValues3D data, Comparable columnKey) #

Counts the number of non-null items in data for the column with the specified columnKey.

num totalForSeries(KeyedValues3D<num> data, Comparable seriesKey) #

Returns the total of the non-null values in data for the series with the specified seriesKey.

num totalForRow(KeyedValues3D<num> data, Comparable rowKey) #

Returns the total of the non-null values in data for the row with the specified rowKey.

num totalForColumn(KeyedValues3D<num> data, Comparable columnKey) #

Returns the total of the non-null values in data for the column with the specified columnKey.

Range findValueRange(Values3D<num> data, num base) #

Finds the minimum and maximum values in data, including the base value if it is not null.

Range findStackedValueRange(Values3D<num> dataset) #

Returns the range of values in the dataset assuming that in each cell the values across all series are stacked on top of each other (in the way that a stacked bar chart is), starting from a base value of 0.0.

Range findStackedValueRangeWithBase(Values3D<num> dataset, num base) #

Returns the range of values in the dataset assuming that in each cell the values across all series are stacked on top of each other (in the way that a stacked bar chart is), starting from the specified base value.

List<num> stackSubTotal(Values3D<num> data, num base, int series, int row, int column) #

Returns the negative and positive stack subtotals for the specified cell and all series up to but not including series.

List<int> findDistRange() #

Range findXRange(XYZDataset dataset) #

Iterates over the dataset and returns the range (minimum and maximum) of the x-values contained in the dataset.

Range findXRangeWithBase(XYZDataset dataset, num inc) #

Iterates over the dataset and returns the range (minimum and maximum) of the x-values contained in the dataset. In the case where inc is non-null, the range will be extended (if necessary) to include this additional value.

Range findYRange(XYZDataset dataset) #

Iterates over the dataset and returns the range (minimum and maximum) of the y-values contained in the dataset.

Range findYRangeWithBase(XYZDataset dataset, num inc) #

Iterates over the dataset and returns the range (minimum and maximum) of the y-values contained in the dataset. In the case where inc is non-null, the range will be extended (if necessary) to include this additional value.

Range findZRange(XYZDataset dataset) #

Iterates over the dataset and returns the range (minimum and maximum) of the z-values contained in the dataset.

Range findZRangeWithBase(XYZDataset dataset, num inc) #

Iterates over the dataset and returns the range (minimum and maximum) of the z-values contained in the dataset. In the case where inc is non-null, the range will be extended (if necessary) to include this additional value.

num totalForXYZSeries(XYZDataset dataset, Comparable seriesKey) #

Returns the total of all values in a series.