Search packages, repositories and app categories

chart_components cover
Package detailsv1.0.1

chart_components

Two chart components for Flutter. Animated bar chart and animated calendar grid chart based on the github's one. Many properties to customize.

30-day downloads
79
Likes
49
Pub points
70

Install package

flutter pub add chart_components

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

chart_components is a Flutter package offering two animated chart widgets: an animated bar chart and an animated calendar grid chart inspired by GitHub's visualization style. Designed for data representation, it provides extensive customization options through numerous configurable properties. The components are ideal for displaying time-series data or performance metrics with smooth animations. Built with Flutter's rendering engine, it ensures responsive and visually appealing charts suitable for dashboards and analytics interfaces.

Use cases

  • Displaying time-series data
  • Visualizing performance metrics
  • Creating dashboard widgets
  • Building analytics interfaces
  • Showing activity trends
  • Enhancing data presentation in apps

Key features

  • Animated bar chart
  • Animated calendar grid chart
  • Extensive customization options
  • Smooth animations
  • GitHub-inspired design
  • Responsive layout

Suitable for

  • Data visualization apps
  • Dashboard development
  • Analytics tools
  • Activity tracking features
  • Flutter developers seeking reusable charts

Considerations

  • Limited to two chart types
  • No built-in data transformation
  • Requires manual data handling
  • Not optimized for large datasets
  • No server-side rendering support
  • Depends on external source code

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Chart_Components

Animated bar chart for Flutter

Customizable bar chart for Flutter. The component calculates min and max of data and resizes bars as needed.

bar chart

  • Add a data collection with the values to generate the bars.
  • Add a string collection with the labels to display below the items (optional)
  • Change bar size, margins and top corners as needed.
  • Change bar's color based on value. Callback, optional.
  • Enable/disable value on top of bar
  • Add an icon to the top of the bar based on item's value. Callback, optiona.
  • Enable/disable animation.
  • Change animation duration and curve through the properties

Animated calendar grid for Flutter

calendar grid

  • Generates a grid for the selected month.
  • Changes day color through callback.
  • Animates changes. Animation curve and duration can be modified with the properties.

Demo

Demo:

Usage

To use plugin, just import package import 'package:chart_components/chart_components.dart';

Example

Check de example directory to access the project that implements the image shown above.

        ........
                    CalendarGrid(
                            year: 2020,
                            month: 1,
                            getColorOfDay: DataRepository.getDayColor,
                            animationDuration: Duration(milliseconds: 1500),
                    ),

        ...........
                    child: BarChart(
                    data: data,
                    labels: labels,
                    dislplayValue: true,
                    reverse: true,
                    getColor: DataRepository.getColor,
                    getIcon: DataRepository.getIcon,
                    barWidth: 42,
                    barSeparation: 12,
                    animationDuration: Duration(milliseconds: 1800),
                    animationCurve: Curves.easeInOutSine,
                    itemRadius: 30,
                    iconHeight: 24,
                    footerHeight: 24,
                    headerValueHeight: 16,
                    roundValuesOnText: false,
                    lineGridColor: Colors.lightBlue,
                    ),

Categories

Source repository

Projects using this package