This repository has been archived on 2026-03-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
pblv-demoapp/lib/history_page.dart
2026-02-04 11:41:24 +01:00

54 lines
1.3 KiB
Dart

import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_charts/charts.dart';
class HistoryPage extends StatelessWidget {
const HistoryPage({super.key});
@override
Widget build(BuildContext context) {
return Center(
child: SfCartesianChart(
title: ChartTitle(text: "Verlauf"),
series: [
StepAreaSeries(
name: "SYS",
dataSource: [
(0, 138),
(1, 140),
(2, 160),
(3, 145),
(4, 130),
(5, 125),
(6, 120),
(7, 118),
(8, 120),
],
color: Color(0xFF030070),
xValueMapper: (e, _) => e.$1,
yValueMapper: (e, _) => e.$2,
),
StepAreaSeries(
name: "DIA",
dataSource: [
(0, 76),
(1, 80),
(2, 86),
(3, 90),
(4, 88),
(5, 76),
(6, 70),
(7, 72),
(8, 68),
],
enableTooltip: true,
color: Color(0xFF8ED973),
xValueMapper: (e, _) => e.$1,
yValueMapper: (e, _) => e.$2,
),
],
legend: Legend(isVisible: true, position: LegendPosition.bottom),
),
);
}
}