NrbScatterPlot constructor

const NrbScatterPlot({
  1. Key? key,
  2. required List<NrbScatterPoint> points,
  3. double width = double.infinity,
  4. double height = 250.0,
  5. Color pointColor = const Color(0xFF1E88E5),
  6. double pointRadius = 4.0,
  7. Color gridColor = const Color(0xFFE0E0E0),
  8. Color textColor = const Color(0xFF757575),
  9. Duration animationDuration = const Duration(milliseconds: 1000),
})

Constructor for the Scatter Plot.

Implementation

const NrbScatterPlot({
  super.key,
  required this.points,
  this.width = double.infinity,
  this.height = 250.0,
  this.pointColor = const Color(0xFF1E88E5), // Blue
  this.pointRadius = 4.0,
  this.gridColor = const Color(0xFFE0E0E0),
  this.textColor = const Color(0xFF757575),
  this.animationDuration = const Duration(milliseconds: 1000),
});