Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added horizontal bar charts.
To be able to reuse the bar_chart_data, I changed the naming of
y
andx
to in the bars and groups tovalue
, because in the horizontal bar they would be flipped.Also, horizontal bars have the ability to put text onto the bar, which is saved in
BarChartRodData.title
.We could also draw this text 90° rotated on the vertical bar chart to be consistent, but this is not implemented yet.
I added a temporary example
What do you think?
PS: it would be really cool if we could format the code according to effective dart, I just noticed there is a lot of whitespace change in the diff which is unrelated :(