Skip to content
This repository was archived by the owner on Sep 17, 2021. It is now read-only.
This repository was archived by the owner on Sep 17, 2021. It is now read-only.

Bar Chart Color Pattern #134

Closed
Closed
@deejaygeroso

Description

@deejaygeroso

Hey Nice Package Btw man! There's not a lot of good packages out there in react-native in supporting charts for now. So this was kind of very helpful for me.

So The way I Understand it Bar Charts Supports 3 Colors (1 color that is just being darkened for a pattern of 3) so if I have a data of :
[{
"value": 100,
"name": "apple",
}, {
"value": 100,
"name": "apple",
}, ],
[{
"value": 100,
"name": "banana",
}, {
"value": 100,
"name": "banana",
},],
[{
"value": 100,
"name": "grape",
}, {
"value": 100,
"name": "grape",
}, ]

So I will have a graph that looks like this:
Image1:
Imgur

My Problem is that when I have a data which has a group of 2 or more than 3 (shown in image 2&3) The Pattern of 3 colors still remains.

Image2
Imgur

Image3
Imgur

Is There a way that I could color the bars by group. Like 2 colors per group of 2 bars and 4 colors per group of 4 bars?? Anyway man Really loved your work. I'm so grateful for this one. Hope to hear from you soon. Thank You =)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions