bar_chart_race 0.0.4 copy "bar_chart_race: ^0.0.4" to clipboard
bar_chart_race: ^0.0.4 copied to clipboard

A library to draw fantastic and easy bar charts race in Flutter with your data.

bar_chart_race #

A library to draw fantastic bar charts race in Flutter

Usage #

Let's get started #

add the dependencies to your app:

dependencies:
  bar_chart_race: ^0.0.1

then import it:
import 'package:bar_chart_race/bar_chart_race.dart';

then you can simply use:

BarChartRace(
            data: data,
            initialPlayState: true,
          )

this will create a bar chart with random colors and animate it.
the data and initialPlayState are required and here the exmplanation for most of the properties

  • data: the data you are going to show and it should contains at lease two rows and two columns
  • initialPlayState: if it's true then the bar chart will be animated
  • framesPerSecond: defines the number of frames to show per seconds
  • columnsLabel: represents the name of the columns
  • statesLabel: represents the name of the rows (usually time)
  • numberOfRactanglesToShow: represents the number of the first columns to show
  • title: The title of the bar chart race
  • columnsColor: the color of each rectangle

Contribution #

pull requests are welcome!

Last but not least #

the package is still in its first version so it may contains some issues.

7
likes
40
pub points
14%
popularity

Publisher

unverified uploader

A library to draw fantastic and easy bar charts race in Flutter with your data.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on bar_chart_race