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
15
CategoryDateTimeXAxis and SetDateTimeMemberPath issue
posted

I'm trying to use date/time on the XAxis of a Line Series Chart but the date/time's are not showing up on the Axis.  This is a smple of how I'm setting up my XAxis in code.  There are no examples in the Android Sample Browser that use DateTimeXAxis.   If someone could either point out what I'm doing wrong or upload a working sample that would be appreciated.

CategoryDateTimeXAxis xAxis = new CategoryDateTimeXAxis();

xAxis.setTitle("Date");
xAxis.setDateTimeMemberPath("date");
xAxis.setLabel("date");
xAxis.setLabelAngle(45);
Parents
No Data
Reply
  • 28925
    Suggested Answer
    Offline posted

    Hello Ed,

    Thank you for contacting Infragistics. The issue might be because setLabel isn't defined as a format.

    eg. try setting it to the following:

    xAxis.setLabel("Date:D");

    I attached files from code files from a working sample demonstrating this below. Let me know if you have any questions.

    chartexample.zip

Children
No Data