-
-
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
Custom ChartXAxisValueFormatter not Being Called with Data containing NSObjects #429
Comments
I think I figure it out: |
Even with the change (removing NSObject), It doesn't get called when I place an object like NSdatecomponents into the xAxis array. |
@someoneAnyone you cannot pass You can only pass I really hope that in the next Swift version we will be able to specify that a specific function is not available in Swift, but only in ObjC. This way we'll hide the ObjC bridges from Swift consumers. |
Ok, one way I got around this was by passing a time interval as a string then using the custom formatter to turn into a date string. But I'm having a hard time keeping the x-axis sync to line data.... Any tips on how to do that in the combined chart view? As you can seen the image above I'm trying to get a time series type visual going. here is where I'm at with it now... My values aren't matching up... with the time on x-axis. |
Hi! I'm experimenting with this framework and its really cool, but I've having some trouble figuring out some things... My goal is to re-create a D3 chart as seen below.
I'm using the
CombinedChartView
and in my test code, I'm generating an array of dates.later I configure my custom formatter..
But as you can see from code comments above, if I pass in an object
MyFormatter()
is never called. It only happens if I pass in a string. Is this intentional? Am I approaching this the wrong way? Is there another method I can use to get the object?Thanks!
The text was updated successfully, but these errors were encountered: