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
close icon

label bar on axis not visible when the value = 0

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 23, 2019 07:31 AM UTC

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. 
          primaryXAxis: CategoryAxis( arrangeByIndex: true), 
          // Other configurations 

CY Cyril January 13, 2020 05:28 PM UTC

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


DP Dharanitharan Palanisamy Syncfusion Team January 14, 2020 04:37 AM UTC

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

AJ Alyssa James March 18, 2020 04:00 PM UTC

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 19, 2020 06:23 AM UTC

Hi Alyssa, 

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


Live Chat Icon For mobile
Up arrow icon