Coder Social home page Coder Social logo

flutter_chart's People

Contributors

good-good-study avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flutter_chart's Issues

Enable Horizontal scroll

Is it possible to scroll the chart horizontally ?
Sometimes data could be longer , what to do in that case

Could you please confirm if the zooming feature is supported?

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条数据?

您好!请教一下,为什么x轴我设置了十几条数据还是一直显示7条。恕在下愚钝没找到这个api,望先生不吝赐教。

你好,我把你的这个Widget放入StreamBuilder里面,有数据的时候为什么里面的界面不刷新呢?

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;

}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.