Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

bar_chart_race

the first library to draw fantastic bar charts race in flutter

bar_chart_race

usage

let’s get started

add the dependencies to your app:

dependencies:
  bar_chart_race: ^0.0.4

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

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Top