Flutter - Draw Graphs on the screen

10,710

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.

Share:
10,710
OhMad
Author by

OhMad

Updated on June 05, 2022

Comments

  • OhMad
    OhMad almost 2 years

    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?

  • OhMad
    OhMad about 7 years
    Thanks for clerifying, I guess I have something to do now... :)