GraphXSpec constructor
const
GraphXSpec({
- bool grid = true,
- String scale = 'index',
- String field = '',
- double? min,
- double? max,
- List<
GraphTick> tickValues = const [], - String label = 't',
- String format = 'MMM d',
- double barSpacing = 8,
- double minBarSpacing = 0.5,
- double maxBarSpacing = 80,
- double rightOffset = 3,
- String follow = 'end',
- bool clamp = true,
- bool overscroll = false,
- double axisHeight = 24,
- bool labels = true,
- double historyThreshold = 10,
- bool moreHistory = true,
- String fit = 'none',
- int? slots,
- int? tickEvery,
- double? maxBarWidth,
- String ticks = 'step',
- double morph = 0,
- List<
GraphBandSpec> bands = const [], - 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,
});