PrismLineChart constructor

const PrismLineChart({
  1. Key? key,
  2. required List<double> values,
  3. List<String> labels = const [],
  4. double height = 180,
  5. Color? color,
  6. PrismSemantic? semantic,
  7. bool fill = true,
  8. bool showPoints = true,
  9. bool showGrid = true,
})

Creates a line chart. Requires at least two values.

Implementation

const PrismLineChart({
  super.key,
  required this.values,
  this.labels = const [],
  this.height = 180,
  this.color,
  this.semantic,
  this.fill = true,
  this.showPoints = true,
  this.showGrid = true,
});