Chartee
A chart library for Flutter
Features
This package allows you to create the following charts:
- Bar chart
- Line chart
- Area chart
It's also possible to make combinations of these charts.
Getting started
Install the package.
dependencies:
chartee: <latest-version>
Usage
This is a simple example of a simple bar chart. More examples will be available soon.
Chart(
leftLabels: Labels(
getLabelText: (index, value) => value.toString(),
padding: const EdgeInsets.only(right: 16),
),
layers: [
ChartGridLayer.horizontal(
(index, value) => GridLine(
color: Colors.grey,
dashArray: [5, 5],
extendBehindLabels: true,
),
),
const ChartBarLayer(
items: [
BarStack(
x: 2,
bars: [
Bar(fromValue: 0, toValue: 100, color: Colors.red),
Bar(fromValue: 0, toValue: -150, color: Colors.blue),
],
borderRadius: BorderRadius.all(Radius.circular(4)),
),
BarStack(
x: 3,
bars: [
Bar(
fromValue: 60,
toValue: 100,
color: Colors.blue,
borderRadius: BorderRadius.all(Radius.circular(4)),
),
Bar(
fromValue: 0,
toValue: 50,
color: Colors.red,
borderRadius: BorderRadius.all(Radius.circular(4)),
),
],
),
],
),
),
);
Additional information
This package is maintained by Chargee. If you would like to contribute please open an issue or create a pull request on our Github repository.
Libraries
- chartee
- errors/empty_error
- errors/unbounded_error
- models/bar
- models/bar_stack
- models/bounding_box
- models/chart_item
- models/chart_layer
- models/cursor_builder
- models/grid_line
- models/labels
- models/point
- models/selection_overlay
- models/selection_overlay_builder
- models/selection_overlay_item
- models/widget_builder
- utils/chart
- utils/items
- utils/layers
- utils/paint
- utils/path
- widgets/chart
- widgets/chart_area
- widgets/chart_bars
- widgets/chart_base
- widgets/chart_cursor
- widgets/chart_gesture_handler
- widgets/chart_grid
- widgets/chart_line
- widgets/chart_selection
- widgets/chart_x_labels
- widgets/chart_y_labels
- widgets/scrollable_chart