加上如下代码即可: plotLines:[{//基准线color:'#FF4040',dashStyle:'Dash',width:1.5,//基准线宽度value:5,//基准线的参考值zIndex:5}]该代码加在xAxis里或者yAxis,xAxis则该基准线与y轴平行,yAxis则与x轴平行 完整代码: <!DOCTYPE HTML PUBLIC "-//W3C//DTD H
防采集标记:亢少军老师的课程和资料 import 'package:flutter/material.dart';class LayoutDemo extends StatelessWidget {@overrideWidget build(BuildContext context) {return new Scaffold(appBar: new AppBar(title: new Text