Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
About DataChartView problem

Where can I download some sample code for Android Studio user?

I can't get DataChartView work,I put following code in layout xml:

<com.infragistics.controls.DataChartView android:id="@+id/dataChart"
android:background="#d00b0b" />

the problem is:

Error inflating class com.infragistics.controls.DataChartView

Thanks for help

  • 28750
    Offline posted

    Hello Felix,

    Thank you for your post.

    Currently when using the DataChartView control, we recommend that you locate the container that you are looking to place the DataChartView in by id, and place it in that container programmatically. This is because XML layout support for the DataChartView Android control is not currently supported.

    I have been speaking with our development team, and XML layout support for the DataChartView has been determined to be a new product idea. You can suggest new product ideas for future versions (or vote for existing ones) at

    Submitting your idea will allow you to communicate directly with our product management team, track the progress of your idea at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.

    Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it.  You can also link back to this thread for additional details.

    Please let me know if you have any other questions or concerns on this matter.

    Associate Developer
    Infragistics Inc.