multi_charts 0.3.0 copy "multi_charts: ^0.3.0" to clipboard
multi_charts: ^0.3.0 copied to clipboard

A Flutter package providing different types of charts built purely in dart.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:multi_charts/multi_charts.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Radar Chart Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: Text("Radar Chart Example"),
        ),
        body: Column(children: [
          Container(
            width: 450,
            height: 450,
            //Radar Chart
            child: RadarChart(
              values: [1, 2, 4, 7, 9, 0, 6],
              labels: [
                "Label1",
                "Label2",
                "Label3",
                "Label4",
                "Label5",
                "Label6",
                "Label7",
              ],
              maxValue: 10,
              fillColor: Colors.blue,
              chartRadiusFactor: 0.7,
            ),
          ),
          //Pie Chart
          PieChart(
            values: [15, 10, 30, 25, 20],
            labels: ["Label1", "Label2", "Label3", "Label4", "Label5"],
            sliceFillColors: [
              Colors.blueAccent,
              Colors.greenAccent,
              Colors.pink,
              Colors.orange,
              Colors.red,
            ],
            animationDuration: Duration(milliseconds: 1500),
            legendPosition: LegendPosition.Right,
          ),
        ]),
      ),
    );
  }
}
31
likes
150
pub points
84%
popularity

Publisher

unverified uploader

A Flutter package providing different types of charts built purely in dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on multi_charts