更新睡眠报告散点图
This commit is contained in:
@@ -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, // 刻度分割数量
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user