NiceRealtimeChart constructor

const NiceRealtimeChart({
  1. Key? key,
  2. required List<NiceRealtimeSeries> series,
  3. Future<List<NiceRealtimePoint>> fetchData()?,
  4. Duration updateInterval = const Duration(seconds: 2),
  5. int maxPoints = 60,
  6. double height = 250,
  7. String? title,
  8. bool showGrid = true,
  9. bool showLegend = true,
  10. String? yAxisLabel,
  11. double? minY,
  12. double? maxY,
  13. bool paused = false,
})

Implementation

const NiceRealtimeChart({
  super.key,
  required this.series,
  this.fetchData,
  this.updateInterval = const Duration(seconds: 2),
  this.maxPoints = 60,
  this.height = 250,
  this.title,
  this.showGrid = true,
  this.showLegend = true,
  this.yAxisLabel,
  this.minY,
  this.maxY,
  this.paused = false,
});