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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

label bar on axis not visible when the value = 0

Thread ID:





150111 Dec 20,2019 02:53 PM UTC Mar 19,2020 06:23 AM UTC Flutter 5
Tags: SfCartesianChart
Asked On December 20, 2019 02:53 PM UTC

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),


Dharanidharan Dharmasivam [Syncfusion]
Replied On 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 

Replied On January 13, 2020 05:28 PM UTC

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


Dharanitharan Palanisamy [Syncfusion]
Replied On 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. 

Alyssa James
Replied On 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 

Dharanidharan Dharmasivam [Syncfusion]
Replied On March 19, 2020 06:23 AM UTC

Hi Alyssa, 

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



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon