更新睡眠报告散点图

This commit is contained in:
wyf
2025-08-22 10:17:55 +08:00
parent f21f75d5e4
commit c432212870
8 changed files with 82 additions and 65 deletions

View File

@@ -152,8 +152,8 @@ class _HeartPointWidgetState extends State<HeartPointWidget> {
height: 31.rpx,
),
Padding(
padding: EdgeInsetsDirectional.fromSTEB(
30.rpx, 0.rpx, 30.rpx, 0.rpx),
padding:
EdgeInsetsDirectional.fromSTEB(0.rpx, 0.rpx, 30.rpx, 0.rpx),
child: Container(
width: MediaQuery.of(context).size.width * 0.7,
height: MediaQuery.of(context).size.width * 0.7,
@@ -163,10 +163,14 @@ class _HeartPointWidgetState extends State<HeartPointWidget> {
),
child: ScatterPlotChart(
points: data,
xMax: maxX.toInt(), // x轴最大值
yMax: maxY.toInt(), // y轴最大值
// xMax: maxX.toInt(), // x轴最大值
// yMax: maxY.toInt(), // y轴最大值
xMax: 3000, // x轴最大值
yMax: 3000, // y轴最大值
xMin: 0,
yMin: 0,
pointColor: stringToColor("#00C1AA"), // 点的颜色
divisions: 7, // 刻度分割数量
// divisions: 7, // 刻度分割数量
),
),
),