-
-
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
Issue while displaying the chart (HorizontalBarChartView) #202
Comments
This is first time I am asking question on github. I don't know how to use github for communication. Please forgive me if the question is irrelevant. |
the compiler doesn't know where is HorizontalBarChartView because you changed the name from the original class name "HorizontalBarChartView" to "GraphViewController" |
@bautistax Thanks. |
Try Charts.HorizontalBarChartView
|
@danielgindi Thanks. Sorry But I didn't get you. how to use Charts.HorizontalBarChartView. Can you please elaborate it. |
@wganeshb You're missing the namespace |
|
@liuxuan30 Thanks, You are right. now I changed the import to "DemoCharts-Swift.h". The build is successful without error. But still I am getting console log as "Unknown class HorizontalBarChartView in Interface Builder file.". I have IBOutlet for HorizontalBarChartView inside GraphViewController. And it is very well connected. Am I missing anything else. |
I've already said that you are missing a namespace. The charts are namespaced under Charts. |
@danielgindi Thanks, now it is not not giving any error or console log. But somehow not showing the chart. I cross checked all the connections and still working on if I am missing anything. I guess it should show default data from 'months' and 'parties' array. Thanks.. 😄 |
Thanks a lot for this great chart library. I tried to integrate this library almost for the 4 days in my objectiveC project. But every time missing something. Sorry for the trouble I gave. @danielgindi already mentioned the usage steps in readme file. they are pretty straight forward. I read them again and again and everytime made the same mistakes. Finally successfully integrated the Charts in ObjectiveC project. I would like to share the steps again that I went through.
On file create Xcode will Show popup as shown below. Select YES. It will create the bridging header files for project.
On adding the Xcode will look like below screen shot.
These are some of the mandatory steps. In order to avoid the 'File not found' like other compile time errors. Follow the objectiveC example Demos provided by the @danielgindi, the project owner under project ChartsDemo. These demos are really best example covering all the charts. Thank you once again. 👍 |
I am trying to implement chart functionality using iOS-charts.
I tried with the ChartsDemo example. It compiled successfully. and could run it on device too.
I followed all the steps from README file.
I repeated it number of times in last 3 days. But I am still struggling with the integration.
I am not getting if I am missing something while integration.
After errorless integration I am getting console log as "Unknown class HorizontalBarChartView in Interface Builder file."
I created single view application using Xcode 6.4
Following are some of the screenshots of my Xcode. Please help me with the successful integration.
In GraphViewController I have copied and used code from HorizontalBarChartViewController.h and .m
as it is.
The text was updated successfully, but these errors were encountered: