fiet_charts 0.1.0 fiet_charts: ^0.1.0 copied to clipboard
A FIET chart project.
Getting started #
flutter pub get fiet_charts
Usage #
A simple usage example:
Container(
width: size.width,
height: 300,
padding: const EdgeInsets.only(right: 20),
child: CustomPaint(
painter: BarChart(
primaryYAxis: YAxis(
max: 3000,
yAxisGrid: [
GridLine(value: 0, name: "0", textStyle: labelStyle),
GridLine(value: 3000, name: "3K", textStyle: labelStyle),
GridLine(value: 1500, name: "1.5K", textStyle: labelStyle),
GridLine(value: 2300, name: "2.3K", color: Color.fromARGB(255, 109, 208, 213)),
],
),
dataXLabel: [
TextSpan(text: "일"),
TextSpan(text: "월"),
TextSpan(text: "화", style:TextStyle(color: Colors.deepPurple, fontSize:16)),
TextSpan(text: "수"),
TextSpan(text: "목"),
TextSpan(text: "금"),
TextSpan(text: "토"),
],
dataSource: <double>[500, 2100, 2300, 2100, 1400, 2700, 2000],
dotIndex: [3, 4],
),
),
),