I am trying to display SfChart with column series inside the fragment. Somehow, the X-axis is not shown from its beginning. I think it is due to the fact that I have ActionBar above the fragment. How can I display the full chart without having it cropped?
YPYuvaraj Palanisamy Syncfusion Team July 19, 2016 12:42 PM UTC
Hi Stefan Mihajlovic,
Thanks for contacting Syncfusion Support
We havetestedwithboth defaultActionBar and Toolbar but we are not able to reproduce thereportedissue. We have prepared a sample for your reference. Please update us the modified sample for further assistance on this.
I tried to fix the issue by looking into the sample and implementing part of its logic, but I was unsuccessful in that task. The issue still persists in my app. Here is the code of my app that I am developing. Please run it and see if the issue is also present on your machine. After successful build and deployment of the app, swipe from left corner to right to open Navigation Bar and go to Statistics sections.
Note: Reference to Syncfusion.SfChart.Android needs to be added first in order to build app successfully.
PSParthiban Sundaram Syncfusion Team July 21, 2016 06:25 PM UTC
As we have analyzed, we found that setting the “app:layout_scrollFlags="scroll|enterAlways” for Toolbar is the reason for the SfChart to crop below the actual area. We have also ensured this with default framework controls like Button, TextView etc. We have removed this property in toolbar and attached the sample. Please check and let us know if you need to set this property for some expected behavior in your application.