-
Notifications
You must be signed in to change notification settings - Fork 290
Nullpointerexception #1
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
Comments
Hello segi07, Thank you for writing. After reviewing your code I noticed that you have a few potential problems. First of all you are trying to add series to the chart before defining axes. That would result in a NPE, since the series, once attached to the chart, are looking for axes, so they can calculate all data points in order to be ready for rendering. Make sure you add the axes before the series. Also you need to add the chart to the layout at some point, otherwise nothing will show on the screen. I am sending you the bare minimum to get your code snippet up and running:
And the xml:
This is the result of the code: I am closing this issue. Please refer to our support system for better user experience, should you encounter any more problems using our controls - Go to http://www.telerik.com/support/android-ui and select the Dedicated Support link. Thank you and good luck with your projects! Regards, |
Hello antony-jerkov Thanks for response, Actually i was refering telerik guides thats why i got error. i need another help if you can.. i need this type of bar chart with different colors.. i tried but get only one color.. another problem is, i want to remove below screen.. how can i.?? Thank you in advance. Regards, |
when i am using RadCartenChartView, i got nullpointer error.
code:
The text was updated successfully, but these errors were encountered: