-
-
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
Candlestick doesn't work when x does not start at 0 #3441
Comments
take a look at the demo. You can workaround by modifying the value formatter to start from 0. And what number you start with? I checked the code, no matter what your X val is, when rendering, it should maps to Xbounds starting from 0. So it should be transparent. I tweaked the Chart demo to
and it sill draws fine.
|
post more details and images and reopen it. |
Can't reopen the issue. Should I just open a new issue? |
Dup of #1742 |
What did you do?
We're attempting to make a candlestick graph where the x-axis is a date value. We added a datevalueformatter so the x-axis would display DD-MMM-YYYY.
What did you expect to happen?
The date formatter would display the date on the x-axis.
What happened instead?
The graph axis labels were 01-Jan-1970. In addition, the candlestick graph was drawn oddly. The red dot that was normally there was gone.
From a quick look at the code, the renderer seems to assume that x is a monotonically increasing value that starts at 0.
Charts Environment
Charts version/Branch/Commit Number:
Charts 3.1.1
Xcode 9.3
Swift 4.1
iOS 11.3
Mac OS 10.13.4
The text was updated successfully, but these errors were encountered: