The project used charts to compare Google’s Flutter_Charts and FL_chart, and finally chose the latter. One of the reasons is that Flutter_Charts does not support graphs, so you need to set them by yourself.

introduce

Graphic type

Fl_chart supports a full range of charts:

  • The line chart

  • The graph

    !

  • A histogram

  • The pie chart

  • Hash map

  • Radar map

  • .

    use

    1. Add the dependent

      In the project root directory pubspec.yaml add:

      dependencies:
        fl_chart: ^ 0.35.0
      Copy the code
    2. download

      On the console enter:

      flutter packages get
      Copy the code