ChartsOrg / ChartsOrg/Charts

Can I set different barWidth of BarChartDataSets in BarChart?

Open
#3,026 2 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I have two BarChartDataSets.
Can I set different barWidth for each BarChartDataSets?
First BarChartDataSet is 0.5 and Second BarChartDataSet is 1.0.
like this.
2017-11-21 2 19 37
Or another solution can do it?
I only find a approximate solution is set Second BarChartDataSet's barBorderWidth to 10.
like this.
![2017-11-21 2 30 57](https://user-images.githubusercontent.com/1498003/33058063-b2c7c33c-cec8-11e7-9f62-e245b3746017.png)

Contributor guide

Open the contributing guide

Research direction

Start at the BarChart and BarChartDataSets entry points named in the issue, and reproduce the example with datasets using widths 0.5 and 1.0. Determine whether separate widths are supported or what change would be needed; the issue is complete when the behavior or supported solution is established.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.