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

Centered Data Points #82

Open
tomasbek opened this issue Nov 14, 2017 · 2 comments
Open

Centered Data Points #82

tomasbek opened this issue Nov 14, 2017 · 2 comments
Labels

Comments

@tomasbek
Copy link

Hello everybody,

I'd be very happy to know if there is a way to 'center' the data points in regards to the x-scale. In order to make my request easier to understand please refer to the picture I attached (please ignore the colors).

5c303ac6-9adc-11e5-9006-3275a16b7ec8

I have tried to overcome this issue with adding 0.5 to my x values (for example, adding 0.5 to 6), which indeed made the data points centered. This, however, broke the accuracy of the didTouchChart function.

Thank you in advance!

@haemi
Copy link

haemi commented Dec 15, 2017

did you find a good solution for this?

@gpbl gpbl added the question label Jan 6, 2018
@gpbl
Copy link
Owner

gpbl commented Jan 6, 2018

Have you tried using the xLabels property as shown in this example? Together with xLabelFormatter you should move the labels and the vertical line.

https://github.com/gpbl/SwiftChart#partially-filled-series

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants