-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
I am not able to design multicolor bar chart #1324
Comments
This is a stacked bar chart. In Charts' demos, you can see a stacked bar chart. Basically, each let entry = BarChartDataEntry(values: [4.6, 3.8], xIndex: 0) |
I tried the same, |
dataset.colors = [UIColor.cyanColor(), UIColor.greenColor()]
dataset.stackLabels = ["Inactive inventory", "Active inventory"] |
@danielgindi Please check the screenshot. I am able to draw the charts but only values are displaying no bars.
What i am doing wrong? |
Anyway, I was using the wrong formatter for x-axis. The x-axis value should be in day of year format. |
Hi,
I am using this library,
its a good one
I have around 6 pie charts and 6 bar charts
among them 2 bar charts are with two colours (like male-female ration in each dept.)
so my X-axis contains departments and Y-axis contains values.
I want male in one colour and female in other colour for particular dept.
can you pls guide for the same,
I asked same query on SO, but no answer yet.
here is the link, which contains my sample code as well.
http://stackoverflow.com/questions/38658402/multiple-colours-to-bar-charts-swift-one-above-the-other
The text was updated successfully, but these errors were encountered: