hyzp_ybqx-Commit076:已实现统计图表都能显示点位编号信息
This commit is contained in:
@@ -3,7 +3,6 @@ import 'package:fl_chart/fl_chart.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||||
import 'package:hyzp_ybqx/components/commonFun.dart';
|
import 'package:hyzp_ybqx/components/commonFun.dart';
|
||||||
import 'package:hyzp_ybqx/components/dioFun.dart';
|
|
||||||
import 'package:hyzp_ybqx/components/hyxx_data_handle.dart';
|
import 'package:hyzp_ybqx/components/hyxx_data_handle.dart';
|
||||||
import 'package:hyzp_ybqx/pages/Works/TJXX/tj_data.dart';
|
import 'package:hyzp_ybqx/pages/Works/TJXX/tj_data.dart';
|
||||||
|
|
||||||
@@ -159,7 +158,6 @@ class ZptjBarChartState extends State<ZptjBarChart> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
body: Container(
|
body: Container(
|
||||||
alignment: Alignment(0, -0.85),
|
alignment: Alignment(0, -0.85),
|
||||||
child: AspectRatio(
|
child: AspectRatio(
|
||||||
@@ -345,7 +343,8 @@ class ZptjBarChartState extends State<ZptjBarChart> {
|
|||||||
//将 today 字段放大 _rate 倍
|
//将 today 字段放大 _rate 倍
|
||||||
listBarData.add(
|
listBarData.add(
|
||||||
makeGroupData(
|
makeGroupData(
|
||||||
listAllStatisData[i]['id'],
|
// listAllStatisData[i]['id'],
|
||||||
|
i + 1,
|
||||||
(listAllStatisData[i][_field1] * _rate).toDouble(),
|
(listAllStatisData[i][_field1] * _rate).toDouble(),
|
||||||
listAllStatisData[i][_field2].toDouble()),
|
listAllStatisData[i][_field2].toDouble()),
|
||||||
);
|
);
|
||||||
@@ -372,7 +371,8 @@ class ZptjBarChartState extends State<ZptjBarChart> {
|
|||||||
//将 today 字段放大 _rate 倍
|
//将 today 字段放大 _rate 倍
|
||||||
listBarData.add(
|
listBarData.add(
|
||||||
makeGroupData(
|
makeGroupData(
|
||||||
listAllStatisData[i]['id'],
|
// listAllStatisData[i]['id'],
|
||||||
|
i + 1,
|
||||||
(listAllStatisData[i][_field1] * _rate).toDouble(),
|
(listAllStatisData[i][_field1] * _rate).toDouble(),
|
||||||
listAllStatisData[i][_field2].toDouble()),
|
listAllStatisData[i][_field2].toDouble()),
|
||||||
);
|
);
|
||||||
@@ -419,7 +419,8 @@ class ZptjBarChartState extends State<ZptjBarChart> {
|
|||||||
//将 today 字段放大 _rate 倍
|
//将 today 字段放大 _rate 倍
|
||||||
listBarData.add(
|
listBarData.add(
|
||||||
makeGroupData(
|
makeGroupData(
|
||||||
listAllStatisData[i]['id'],
|
// listAllStatisData[i]['id'],
|
||||||
|
i + 1,
|
||||||
(listAllStatisData[i][_field1] * _rate).toDouble(),
|
(listAllStatisData[i][_field1] * _rate).toDouble(),
|
||||||
listAllStatisData[i][_field2].toDouble()),
|
listAllStatisData[i][_field2].toDouble()),
|
||||||
);
|
);
|
||||||
@@ -429,7 +430,6 @@ class ZptjBarChartState extends State<ZptjBarChart> {
|
|||||||
: _maxY;
|
: _maxY;
|
||||||
_maxY = listAllStatisData[i][_field2] > _maxY ? listAllStatisData[i][_field2] : _maxY;
|
_maxY = listAllStatisData[i][_field2] > _maxY ? listAllStatisData[i][_field2] : _maxY;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import 'package:fl_chart/fl_chart.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||||
import 'package:hyzp_ybqx/components/commonFun.dart';
|
import 'package:hyzp_ybqx/components/commonFun.dart';
|
||||||
import 'package:hyzp_ybqx/components/dioFun.dart';
|
|
||||||
import 'package:hyzp_ybqx/components/hyxx_data_handle.dart';
|
import 'package:hyzp_ybqx/components/hyxx_data_handle.dart';
|
||||||
import 'package:hyzp_ybqx/pages/Works/TJXX/tj_data.dart';
|
import 'package:hyzp_ybqx/pages/Works/TJXX/tj_data.dart';
|
||||||
|
|
||||||
@@ -399,7 +398,8 @@ class ZptjBarChartOneState extends State<ZptjBarChartOne> {
|
|||||||
//将 today 字段放大 _rate 倍
|
//将 today 字段放大 _rate 倍
|
||||||
listBarData.add(
|
listBarData.add(
|
||||||
makeGroupData(
|
makeGroupData(
|
||||||
listAllStatisData[i]['id'],
|
// listAllStatisData[i]['id'],
|
||||||
|
i + 1,
|
||||||
(listAllStatisData[i][_field1] * _rate).toDouble(),
|
(listAllStatisData[i][_field1] * _rate).toDouble(),
|
||||||
listAllStatisData[i][_field2].toDouble()),
|
listAllStatisData[i][_field2].toDouble()),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user