GraphXSpec constructor

const GraphXSpec({
  1. bool grid = true,
  2. String scale = 'index',
  3. String field = '',
  4. double? min,
  5. double? max,
  6. List<GraphTick> tickValues = const [],
  7. String label = 't',
  8. String format = 'MMM d',
  9. double barSpacing = 8,
  10. double minBarSpacing = 0.5,
  11. double maxBarSpacing = 80,
  12. double rightOffset = 3,
  13. String follow = 'end',
  14. bool clamp = true,
  15. bool overscroll = false,
  16. double axisHeight = 24,
  17. bool labels = true,
  18. double historyThreshold = 10,
  19. bool moreHistory = true,
  20. String fit = 'none',
  21. int? slots,
  22. int? tickEvery,
  23. double? maxBarWidth,
  24. String ticks = 'step',
  25. double morph = 0,
  26. List<GraphBandSpec> bands = const [],
  27. double inset = 0,
})

Implementation

const GraphXSpec({
  this.grid = true,
  this.scale = 'index',
  this.field = '',
  this.min,
  this.max,
  this.tickValues = const [],
  this.label = 't',
  this.format = 'MMM d',
  this.barSpacing = 8,
  this.minBarSpacing = 0.5,
  this.maxBarSpacing = 80,
  this.rightOffset = 3,
  this.follow = 'end',
  this.clamp = true,
  this.overscroll = false,
  this.axisHeight = 24,
  this.labels = true,
  this.historyThreshold = 10,
  this.moreHistory = true,
  this.fit = 'none',
  this.slots,
  this.tickEvery,
  this.maxBarWidth,
  this.ticks = 'step',
  this.morph = 0,
  this.bands = const [],
  this.inset = 0,
});