bubble_chart 0.5.0 copy "bubble_chart: ^0.5.0" to clipboard
bubble_chart: ^0.5.0 copied to clipboard

A simple Dart implementation of bubble chart. It creates bubbles in random points and collide its all to container center. Can be implemented with any features.

Bubble chart #

pub package travis

A simple Dart implementation of bubble chart.

Usage #

Add bubble_chart to your pubspec:

dependencies:
  bubble_chart: any # or the latest version on Pub

Add in you project.

  final bubbles = BubbleNode.node(
    padding: 15,
    children: [
      BubbleNode.node(
        padding: 30,
        children: [
          BubbleNode.leaf(
            options: BubbleOptions(
              color: Colors.brown,
            ),
            value: 2583,
          ),
          BubbleNode.leaf(
            options: BubbleOptions(
              color: Colors.brown,
            ),
            value: 4159,
          ),
          BubbleNode.leaf(
            options: BubbleOptions(
              color: Colors.brown,
            ),
            value: 4159,
          ),
        ],
      ),
      BubbleNode.leaf(
        value: 4159,
      ),
      BubbleNode.leaf(
        value: 2074,
      ),
      BubbleNode.leaf(
        value: 4319,
      ),
      BubbleNode.leaf(
        value: 2074,
      ),
      BubbleNode.leaf(
        value: 2074,
      ),
      BubbleNode.leaf(
        value: 2074,
      ),
      BubbleNode.leaf(
        value: 2074,
      ),
    ],
  );

  Widget build(BuildContext context) {
    return Scaffold(
      body: BubbleChartLayout(
        root: bubbles,
      ),
    );
  }

Run the example #

See the example/ folder for a working example app.

Supporting Me #

A donation through my Ko-Fi page would be infinitly appriciated: ko-fi

but, if you can't or won't, a star on GitHub and a like on pub.dev would also go a long way!

Every donation gives me fuel to continue my open-source projects and lets me know that I'm doing a good job.

14
likes
120
pub points
82%
popularity

Publisher

unverified uploader

A simple Dart implementation of bubble chart. It creates bubbles in random points and collide its all to container center. Can be implemented with any features.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, flutter_lints

More

Packages that depend on bubble_chart