FLUTTER ECOSYSTEM

thekeenant/fcharts

📊 Erstellen Sie schöne, responsive und animierte Diagramme mit einer einfachen und intuitiven API.

Projektcover von fcharts
Stars
326
Forks
43
Letzter Push (UTC)
22.06.2020
Projektstatus
Aktiv
Keenan GitHub avatar
GITHUB User

Keenan ↗

Senior Software Engineer

SprachenDartObjective-CJava

Technische Themen

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 5 Einträge
  • flutter{"sdk":"flutter"}
  • meta^1.1.2
  • collection^1.14.5
  • flutter_testEntwicklung{"sdk":"flutter"}
  • testEntwicklung^1.3.0

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

fcharts

Build Status Pub Status

A work-in-progress chart library for Flutter. Until version 1.0.0 the API is subject to change drastically. Needless to say, fcharts is not production ready.

The goal of this project is to allow for creating beautiful, responsive charts using a simple and intuitive API.

Inspired by Mikkel Ravn's tutorial on Flutter widgets and animations. If you have used Recharts (ReactJS library) you will find the high level API to be somewhat familiar.

Demo

Bar chart demo

Example Usage

class SimpleLineChart extends StatelessWidget {
  // X value -> Y value
  static const myData = [
    ["A", "✔"],
    ["B", "❓"],
    ["C", "✖"],
    ["D", "❓"],
    ["E", "✖"],
    ["F", "✖"],
    ["G", "✔"],
  ];
  
  @override
  Widget build(BuildContext context) {
    return new LineChart(
      lines: [
        new Line<List<String>, String, String>(
          data: myData,
          xFn: (datum) => datum[0],
          yFn: (datum) => datum[1],
        ),
      ],
      chartPadding: new EdgeInsets.fromLTRB(30.0, 10.0, 10.0, 30.0),
    );
  }
}

The above code creates:

line chart