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

X labels Issues #1639

Closed
chuynadamas opened this issue Oct 10, 2016 · 2 comments
Closed

X labels Issues #1639

chuynadamas opened this issue Oct 10, 2016 · 2 comments

Comments

@chuynadamas
Copy link
Contributor

Hey guys @liuxuan30 @danielgindi I just pull the last commit but it seems that the problems with the labels still there, now even in the demo, the first label is missing, please check the image below.

screen shot 2016-10-10 at 12 42 39 pm

Also, I'm using the configuration of the @PhilJay example to group the bars

            // (0.02 + (0.90 / total bars) ) * 2 + 0.06 = 1.00 -> interval per "group"
            let groupSpace    = 0.06
            let barSpace      = 0.02
            let totalBarWidth = 0.90

            newValue?.barWidth = totalBarWidth / Double((newValue?.dataSets.count)!)
            chart.groupBars(fromX:0.0, groupSpace: groupSpace, barSpace: barSpace)

And the result is the following:

screen shot 2016-10-10 at 12 52 32 pm

As you can see the last bar stills have the same problem than before :/

Thanks in advance.

@liuxuan30
Copy link
Member

liuxuan30 commented Oct 11, 2016

Oh no, we had last label missing in line chart already and now the first label in bar chart..

@liuxuan30
Copy link
Member

liuxuan30 commented Oct 12, 2016

@chuynadamas I checked ChartsDemo, it looks like a formatter issue for now in DayAxisValueFormatter. It format 0.0 as "" because

return dayOfMonth == 0 ? @"" : [NSString stringWithFormat:@"%d%@ %@", dayOfMonth, appendix, monthName];

I filed a fix proposal in #1648 for your first issue;

however seems you opened two issues in this thread (which not recommended); the other issue is not investigated yet.

liuxuan30 added a commit to liuxuan30/Charts that referenced this issue Oct 12, 2016
…rst value will be 0.0

this address the first issue in ChartsOrg#1639
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants