good-good-study / flutter_chart Goto Github PK
View Code? Open in Web Editor NEWflutter canvas绘制
License: BSD 2-Clause "Simplified" License
flutter canvas绘制
License: BSD 2-Clause "Simplified" License
能支持水平条形图吗?也就是说,柱子是水平方向的bar chart.
Is it possible to scroll the chart horizontally ?
Sometimes data could be longer , what to do in that case
测试方法, 长按柱状图显示数据之后,在动画结束之前立即切换界面,此时将会报错
我尝试试了一下 为什么最多只能设置7个数据
I'm currently attempting to modify the source code of your repository to implement chart zooming and dragging through gestures like onScaleStart/onScaleUpdate/onScaleEnd, but I'm encountering some issues with zooming. Could you please add zooming functionality to your codebase, or provide some suggestions on my code? (I can offer some compensation if successful.)
您好!请教一下,为什么x轴我设置了十几条数据还是一直显示7条。恕在下愚钝没找到这个api,望先生不吝赐教。
class FeedrateView extends StatefulWidget {
final Size size;
CoordDetailModelFanuc socketdata;
FeedrateView({this.size, this.socketdata});
@OverRide
_FeedrateViewState createState() => _FeedrateViewState();
}
class _FeedrateViewState extends State {
List data = [];
@OverRide
Widget build(BuildContext context) {
return Container(child: Padding(padding: EdgeInsets.all(4.0),child: buildChartLine(),));
}
@OverRide
void initState() {
// TODO: implement initState
super.initState();
}
@OverRide
///curve or line
Widget buildChartLine() {
var chartLine = ChartLine(
chartBeans: data,
var chartLine = ChartLine(
chartBeans: [
ChartBean(x: '12:01', y: Random().nextInt(100).toDouble()),
ChartBean(x: '12:02', y: Random().nextInt(100).toDouble()),
ChartBean(x: '12:03', y: Random().nextInt(100).toDouble()),
ChartBean(x: '12:04', y: Random().nextInt(100).toDouble()),
ChartBean(x: '12:05', y: Random().nextInt(100).toDouble()),
ChartBean(x: '12:06', y: Random().nextInt(100).toDouble()),
ChartBean(x: '12:07', y: Random().nextInt(100).toDouble()),
],
size: widget.size,
isCurve: true,
lineWidth: 2,
lineColor: Colors.deepPurple,
fontColor: Colors.black54,
xyColor: Colors.black54,
shaderColors: [Colors.yellow, Colors.lightGreenAccent, Colors.blue],
fontSize: 12,
yNum: 8,
backgroundColor: Colors.white,
isAnimation: false,
duration: Duration(milliseconds: 1000),
isCycle: false,
);
return chartLine;
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.