Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bar chart - is it possible to have stacked values? #104

Closed
atreeon opened this issue Nov 10, 2019 · 5 comments
Closed

Bar chart - is it possible to have stacked values? #104

atreeon opened this issue Nov 10, 2019 · 5 comments
Labels
enhancement New feature or request

Comments

@atreeon
Copy link

atreeon commented Nov 10, 2019

Is it possible to create something like below? Stacked charts I think they are called.

Screenshot 2019-11-10 at 17 09 20

@imaNNeo
Copy link
Owner

imaNNeo commented Nov 10, 2019

Hi, unfortunately, it is impossible at the moment.
We will implement it ASAP.
Stay tuned!

@imaNNeo imaNNeo added the enhancement New feature or request label Nov 10, 2019
@kw2019ltd
Copy link

also if can be horizontal stacked like below
https://google.github.io/charts/flutter/example/bar_charts/stacked_horizontal

@imaNNeo
Copy link
Owner

imaNNeo commented Nov 15, 2019

Hey guys,
I've just implemented the stacked bar chart in 0.4.2 , using BarChartRodStackItem in our `BarChart'.
check out the samples:

Sample 4 (Source Code)

Sample 5 (Source Code)

@imaNNeo
Copy link
Owner

imaNNeo commented Nov 15, 2019

@kw2019ltd
Unfortunately, we do not support horizontal bar charts.
Make another issue to follow it up.

@bebopinbebop
Copy link

I use a Transform.rotate widget to rotate the chart:

Transform.rotate(
angle: 3.14 / 2,
child: BarChart(
isPlaying ? randomData() : mainBarData(),
swapAnimationDuration: animDuration,
),
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants