-
Notifications
You must be signed in to change notification settings - Fork 832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only one data, the chart line is too small #2239
Comments
Hi @BonyYeah, We have checked the reported issue and attempted to replicate it using the SfCartesianChart with ColumnSeries. However, we were unable to reproduce the issue in the syncfusion_flutter_charts package to latest version https://pub.dev/packages/syncfusion_flutter_charts/versions/28.1.38. However, we have ensured the scenarios mentioned with the latest version but are unable to replicate the issue.
We recommend you upgrade to the latest version, and if you are still experiencing the issue, we request you to replicate it in the attached sample and provide us with more details regarding the specific scenario in which you encounter this issue. This will help us to assist you more effectively. Regards, Sample: |
Hi @AswiniDileep
And the screenshot: |
Facing the exact same issue using SfCartesianChart, DateTimeAxis and ColumnSeries like in @BonyYeah 's example |
Hi @BonyYeah, Query 1: Thin Bar in Column Series with One Data Point We have reviewed your query and we would like to inform you are using a ColumnSeries with only one data point, the entire chart plot area is allocated to that single point, making the column appear thin due to setting minimum and maximum values for the axis, the available width is evenly distributed among all possible segments within the specified range. This is how DateTimeAxis behaves it divides the space equally based on the provided minimum and maximum values. Due to this the width of segment for one data point in column series is thin. This is the excepted behavior. Query 2: Also one thing I noticed, the chart assumes that the data is in December and the other column is in January, but looking at the data does not really match that We have ensured your query and ensured the below cases.
However, we were unable to reproduce it in our end. Please check the attached sample, and if you are still experiencing the issue, we request that you replicate it in the attached sample and provide us with more details regarding the specific scenario in which you are encountering this issue. This will help us to assist you more effectively. Query 3: DateTimeCategoryAxis not working fine with Minimum and Maximum Values We would like to inform you that indexed axes perform based on the given data points, and the minimum and maximum values are updated according to the provided data range. In your case, the chart will always display only one column when there is a single data point, regardless of the minimum and maximum values set. These parameters become relevant only when multiple data points are present in the chart.
Let me know if you need further assistance. Sample : GH_2239.zip Regards, |
I use the SfCartesianChart, When it have only one data and the first data, the line be too small, how can I fix it?

First data (error line width)
Other data(right line width)

The text was updated successfully, but these errors were encountered: