12

Is there any library for Flutter (Dart) for drawing Graphs on the screen with a coordinate system? Or how would I approach doing it from scratch?

2
  • Did you have a look at this blog post? medium.com/dartlang/zero-to-one-with-flutter-43b13fd7b354 I don't know if there are any high level libraries yet to draw graphs, but I think this would be how you do it from scratch. Commented Apr 30, 2017 at 7:11
  • Thank you, I'm definately going to take a look at it! Commented May 1, 2017 at 15:57

1 Answer 1

23

There is no graph drawing library for Flutter right now. The Dart UI package contains a canvas implementation. There are some examples using the class: example mentioned in comment above, part two in the series of those blog post, or this official example in the Flutter repo. The official canvas example seems outdated, not all objects are rendered within the visible part of the canvas.

Flutter issues: There is an open issue for Charting library for Flutter #9043, and a documentation issue mentions questions regarding charting as well. Based on that information it doesn't seem like the Flutter team is currently working on charting components, so it could be done as a community effort.

Update: There is now a an open source Flutter library for charting created by Google called chart_flutter. Among the examples there is a simple line chart example which might fit your needs.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for clerifying, I guess I have something to do now... :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.