v0.0.11
fcharts
一個用於 Flutter 的圖表庫。使用簡單直覺的 API 建立美觀、動畫與響應式圖表。
37喜歡 368近 30 天下載35Pub 分數
平台暫無資料
📊 使用簡單直覺的 API 建立美觀、響應式且帶有動畫效果的圖表。
以下為英文專案原文快照,最新內容請造訪 GitHub。
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.
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:
依賴清單 5 項
{"sdk":"flutter"}^1.1.2^1.14.5{"sdk":"flutter"}^1.3.0先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗