flutter_chartx 1.0.0-dev8 copy "flutter_chartx: ^1.0.0-dev8" to clipboard
flutter_chartx: ^1.0.0-dev8 copied to clipboard

This package offers widgets for drawing simple to complex charts with customizable options like visibility, color, line width, line color, text color, and more.

example/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_chartx/components/ChartLabeledData.dart';
import 'package:flutter_chartx/components/types.dart';
import 'package:flutter_chartx/widgets/ColumnChart.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(fontFamily: "Pretendard"),
      home: Scaffold(
        body: Container(
          padding: EdgeInsets.all(15),
          alignment: Alignment.center,
          child: ColumnChart(
            markType: ChartMarkType.percent,
            maxValue: 100,
            datas: [
              ChartLabeledData(label: "A", value: 90, color: Colors.deepOrange),
              ChartLabeledData(label: "B", value: 70, color: Colors.orange),
              ChartLabeledData(label: "C", value: 30, color: Colors.red),
              ChartLabeledData(label: "D", value: 70, color: Colors.blue),
            ],
          ),
        ),
      ),
    );
  }
}
3
likes
150
points
45
downloads

Publisher

verified publisherttangkong.dev

Weekly Downloads

This package offers widgets for drawing simple to complex charts with customizable options like visibility, color, line width, line color, text color, and more.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_chartx