d_chart 2.10.2 copy "d_chart: ^2.10.2" to clipboard
d_chart: ^2.10.2 copied to clipboard

Simple way to show and use chart for Flutter with many option.

example/lib/main.dart

import 'package:d_chart/d_chart.dart';

import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Home(),
    );
  }
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('D\'Chart')),
      backgroundColor: Colors.white,
      body: ListView(
        padding: EdgeInsets.all(16),
        children: [
          AspectRatio(
            aspectRatio: 16 / 9,
            child: DChartBarO(
              groupList: [
                OrdinalGroup(
                  id: '1',
                  data: [
                    OrdinalData(domain: 'Mon', measure: 2),
                    OrdinalData(domain: 'Tue', measure: 6),
                    OrdinalData(domain: 'Wed', measure: 3),
                    OrdinalData(domain: 'Thu', measure: 7),
                  ],
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
194
likes
150
points
22.8k
downloads

Publisher

verified publisherindratrisnar.com

Weekly Downloads

Simple way to show and use chart for Flutter with many option.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

community_charts_common, community_charts_flutter, flutter

More

Packages that depend on d_chart