![alt screenshot](https://github.com/EaniaHuui/chart_view/raw/main/screenshot/screenshot.gif)
Flutter自绘组件:扇形图
dependencies:
flutter:
sdk: flutter
chart_view:
git: https://github.com/EaniaHuui/chart_view.git
import 'package:chart_view/chart_view.dart';
PieChartView(
[
PieChartModel(
value: 35,
name: 'A',
color: Colors.blue,
radius: 100,
),
PieChartModel(
value: 15,
name: 'B',
color: Colors.red,
radius: 100,
),
PieChartModel(
value: 22,
name: 'C',
color: Colors.yellow,
radius: 100,
),
PieChartModel(
value: 18,
name: 'D',
color: Colors.orange,
radius: 100,
),
PieChartModel(
value: 39,
name: 'F',
color: Colors.green,
radius: 100,
),
],
)