NiceChart constructor

const NiceChart({
  1. Key? key,
  2. required List<NiceChartSeries> series,
  3. List<String>? categories,
  4. double? width,
  5. double height = 300,
  6. String? title,
  7. bool showLegend = true,
  8. bool showGrid = true,
  9. bool stacked = false,
  10. List<NiceChartAnnotation>? annotations,
  11. void onDataPointClick(
    1. String seriesName,
    2. int dataIndex,
    3. double value
    )?,
  12. String? xAxisLabel,
  13. String? yAxisLabel,
})

Implementation

const NiceChart({
  super.key,
  required this.series,
  this.categories,
  this.width,
  this.height = 300,
  this.title,
  this.showLegend = true,
  this.showGrid = true,
  this.stacked = false,
  this.annotations,
  this.onDataPointClick,
  this.xAxisLabel,
  this.yAxisLabel,
});