XyDataSeries<T, D> constructor

XyDataSeries<T, D>({ChartValueMapper<T, D> xValueMapper, ChartValueMapper<T, num> yValueMapper, ChartValueMapper<T, String> dataLabelMapper, String name, @required List<T> dataSource, String xAxisName, String yAxisName, ChartValueMapper<T, Color> pointColorMapper, String legendItemText, ChartValueMapper<T, dynamic> sortFieldValueMapper, LinearGradient gradient, ChartValueMapper<T, num> sizeValueMapper, double width, MarkerSettings markerSettings, bool isVisible, bool enableTooltip, EmptyPointSettings emptyPointSettings, DataLabelSettings dataLabelSettings, double animationDuration, List<double> dashArray, Color borderColor, double borderWidth, SelectionSettings selectionSettings, bool isVisibleInLegend, LegendIconType legendIconType, double opacity, List<ChartSegment> segments, Color color, SortingOrder sortingOrder })

Implementation

XyDataSeries(
    {ChartValueMapper<T, D> xValueMapper,
    ChartValueMapper<T, num> yValueMapper,
    ChartValueMapper<T, String> dataLabelMapper,
    String name,
    @required List<T> dataSource,
    String xAxisName,
    String yAxisName,
    ChartValueMapper<T, Color> pointColorMapper,
    String legendItemText,
    ChartValueMapper<T, dynamic> sortFieldValueMapper,
    LinearGradient gradient,
    ChartValueMapper<T, num> sizeValueMapper,
    double width,
    MarkerSettings markerSettings,
    bool isVisible,
    bool enableTooltip,
    EmptyPointSettings emptyPointSettings,
    DataLabelSettings dataLabelSettings,
    double animationDuration,
    List<double> dashArray,
    Color borderColor,
    double borderWidth,
    SelectionSettings selectionSettings,
    bool isVisibleInLegend,
    LegendIconType legendIconType,
    double opacity,
    List<ChartSegment> segments,
    Color color,
    SortingOrder sortingOrder})
    : super(
          isVisible: isVisible,
          legendItemText: legendItemText,
          xAxisName: xAxisName,
          dashArray: dashArray,
          segments: segments,
          isVisibleInLegend: isVisibleInLegend,
          borderColor: borderColor,
          borderWidth: borderWidth,
          yAxisName: yAxisName,
          color: color,
          name: name,
          width: width,
          xValueMapper: (int index) => xValueMapper(dataSource[index], index),
          yValueMapper: (int index) => yValueMapper(dataSource[index], index),
          sortFieldValueMapper: sortFieldValueMapper != null
              ? (int index) => sortFieldValueMapper(dataSource[index], index)
              : null,
          pointColorMapper: pointColorMapper != null
              ? (int index) => pointColorMapper(dataSource[index], index)
              : null,
          dataLabelMapper: dataLabelMapper != null
              ? (int index) => dataLabelMapper(dataSource[index], index)
              : null,
          sizeValueMapper: sizeValueMapper != null
              ? (int index) => sizeValueMapper(dataSource[index], index)
              : null,
          dataSource: dataSource,
          emptyPointSettings: emptyPointSettings,
          dataLabelSettings: dataLabelSettings,
          enableTooltip: enableTooltip,
          animationDuration: animationDuration,
          selectionSettings: selectionSettings,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder,
          opacity: opacity,
          gradient: gradient,
          markerSettings: markerSettings);