We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

label bar on axis not visible when the value = 0

Hi
i want to have a basic bar chart with the following data : but the M is not visible on my X axis ...  is there a way to force the label ? Thks
dataSource: <SalesData>[
SalesData('L', 5),
SalesData('M', 3),
SalesData('M', 0),
SalesData('J', 2),
SalesData('V', 4),
SalesData('S', 3),
SalesData('D', 5),

],


5 Replies

DD Dharanidharan Dharmasivam Syncfusion Team December 22, 2019 11:31 PM

Hi Cyril, 
 
Greetings from Syncfusion. We have analyzed your query with the provided code snippet. We would like to let you know that, in the category axis, when the x-values are the same, then all the x-values will be grouped and renders one behind the other. This is our default behavior. If you need to render all the data points, then specify the arrangeByIndex property of the category axis to true. Find the code snippet below to achieve this. 
 
 
SfCartesianChart( 
          primaryXAxis: CategoryAxis( arrangeByIndex: true), 
          // Other configurations 
        ) 
 
 
Screenshot 
 
Thanks, 
Dharani. 



CY Cyril January 13, 2020 09:28 AM

Hi Dharani
thank you very much for your answer.
All the best for 2020

cyril*



DP Dharanitharan Palanisamy Syncfusion Team January 13, 2020 08:37 PM

Hi Cyril, 
  
Thanks for your update. We are always happy in assisting you. Kindly revert us if you have any other queries. 
  
Thanks, 
Dharanitharan.P 



AJ Alyssa James March 18, 2020 08:00 AM

Hello Dharani
i'm new to Flutter, so i'm having some beginner's problems 
i had this problem too for 3 days now and thanks to you i solved it 
thanks very much 















DD Dharanidharan Dharmasivam Syncfusion Team March 18, 2020 10:23 PM

Hi Alyssa, 

Most welcome. Kindly get back to us if you have further queries. 

Thanks, 
Dharani. 


Loader.
Live Chat Icon For mobile
Up arrow icon