Skip to main content

Basic Time

basic_time

List<TimeData> timeList = [
TimeData(domain: DateTime(2023, 8, 26), measure: 3),
TimeData(domain: DateTime(2023, 8, 27), measure: 5),
TimeData(domain: DateTime(2023, 8, 29), measure: 9),
TimeData(domain: DateTime(2023, 9, 1), measure: 6.5),
];
final timeGroup = [
TimeGroup(
id: '1',
chartType: ChartType.bar,
data: timeList,
),
TimeGroup(
id: '2',
chartType: ChartType.line,
data: timeList,
),
TimeGroup(
id: '3',
chartType: ChartType.scatterPlot,
data: timeList,
),
];

AspectRatio(
aspectRatio: 16 / 9,
child: DChartComboT(
groupList: timeGroup,
),
),