GroupData constructor

GroupData(
  1. ChartType type,
  2. List<SingleData> data, {
  3. String? id,
  4. SNumber? barSize,
  5. SNumber? barMaxSize,
  6. SNumber? barMinSize = const SNumber(1, false),
  7. String? name,
  8. String? yAxisId,
  9. String? xAxisId,
  10. String? stackId,
  11. StackStrategy strategy = StackStrategy.none,
})

Implementation

GroupData(
  this.type,
  this.data, {
  String? id,
  this.barSize,
  this.barMaxSize,
  this.barMinSize = const SNumber(1, false),
  this.name,
  String? yAxisId,
  String? xAxisId,
  String? stackId,
  this.strategy = StackStrategy.none,
}) {
  if (id == null || id.isEmpty) {
    this.id = const Uuid().v4().toString().replaceAll('-', '');
  } else {
    this.id = id;
  }
  _stackId = stackId;
  _xAxisId = xAxisId;
  _yAxisId = yAxisId;
}