NiceChart constructor
const
NiceChart({ - Key? key,
- required List<NiceChartSeries> series,
- List<String>? categories,
- double? width,
- double height = 300,
- String? title,
- bool showLegend = true,
- bool showGrid = true,
- bool stacked = false,
- List<NiceChartAnnotation>? annotations,
- void onDataPointClick(
- String seriesName,
- int dataIndex,
- double value
)?,
- String? xAxisLabel,
- 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,
});