PieSeries<T, D> constructor
PieSeries<T, D>({List<T> dataSource, ChartValueMapper<T, D> xValueMapper, ChartValueMapper<T, num> yValueMapper, ChartValueMapper<T, Color> pointColorMapper, ChartValueMapper<T, String> pointRadiusMapper, ChartValueMapper<T, String> dataLabelMapper, ChartValueMapper<T, String> sortFieldValueMapper, int startAngle, int endAngle, String radius, bool explode, bool explodeAll, int explodeIndex, ActivationMode explodeGesture, String explodeOffset, double groupTo, CircularChartGroupMode groupMode, EmptyPointSettings emptyPointSettings, Color strokeColor, double strokeWidth, double opacity, DataLabelSettings dataLabelSettings, bool enableTooltip, bool enableSmartLabels, String name, double animationDuration, SelectionSettings selectionSettings, SortingOrder sortingOrder, LegendIconType legendIconType })
Implementation
PieSeries(
{List<T> dataSource,
ChartValueMapper<T, D> xValueMapper,
ChartValueMapper<T, num> yValueMapper,
ChartValueMapper<T, Color> pointColorMapper,
ChartValueMapper<T, String> pointRadiusMapper,
ChartValueMapper<T, String> dataLabelMapper,
ChartValueMapper<T, String> sortFieldValueMapper,
int startAngle,
int endAngle,
String radius,
bool explode,
bool explodeAll,
int explodeIndex,
ActivationMode explodeGesture,
String explodeOffset,
double groupTo,
CircularChartGroupMode groupMode,
EmptyPointSettings emptyPointSettings,
Color strokeColor,
double strokeWidth,
double opacity,
DataLabelSettings dataLabelSettings,
bool enableTooltip,
bool enableSmartLabels,
String name,
double animationDuration,
SelectionSettings selectionSettings,
SortingOrder sortingOrder,
LegendIconType legendIconType})
: super(
animationDuration: animationDuration,
dataSource: dataSource,
xValueMapper: (int index) => xValueMapper(dataSource[index], index),
yValueMapper: (int index) => yValueMapper(dataSource[index], index),
pointColorMapper: (int index) => pointColorMapper != null
? pointColorMapper(dataSource[index], index)
: null,
pointRadiusMapper: (int index) => pointRadiusMapper != null
? pointRadiusMapper(dataSource[index], index)
: null,
dataLabelMapper: (int index) => dataLabelMapper != null
? dataLabelMapper(dataSource[index], index)
: null,
sortFieldValueMapper: sortFieldValueMapper != null
? (int index) => sortFieldValueMapper(dataSource[index], index)
: null,
startAngle: startAngle,
endAngle: endAngle,
radius: radius,
explode: explode,
explodeAll: explodeAll,
explodeIndex: explodeIndex,
explodeOffset: explodeOffset,
explodeGesture: explodeGesture,
groupTo: groupTo,
groupMode: groupMode,
emptyPointSettings: emptyPointSettings,
borderColor: strokeColor,
borderWidth: strokeWidth,
opacity: opacity,
dataLabelSettings: dataLabelSettings,
enableTooltip: enableTooltip,
name: name,
selectionSettings: selectionSettings,
legendIconType: legendIconType,
sortingOrder: sortingOrder,
enableSmartLabels: enableSmartLabels);