-
Notifications
You must be signed in to change notification settings - Fork 846
[syncfusion_flutter_charts] X-Axis with interval month or year updates ticks confusingly #2130
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
Comments
Hi DrNiels, We have reviewed your query and would like to inform you that, based on the current behavior, the axis recalculates the axis labels in the same position when the visible range changes. Currently, there is no option to meet this requirement in the SfCartesianChart. However, we have already logged a feature request for "Instead of recalculating the axis labels keep them stable on panning" in our feedback portal. We will prioritize features for each release based on demand and priority so that this feature may be available in one of our upcoming releases. You can also track the status of the feature with the feedback provided. FR: https://www.syncfusion.com/feedback/36499 Regards, |
Hi DrNiels, The initialVisibleMinimum and initialVisibleMaximum properties are used to control the visible range of the axis when the chart is first rendered. These properties take effect only when their values lie within the actual data range. For example, if the actual data range is from January 2000 to March 2003, and you set initialVisibleMinimum to January 2001 and initialVisibleMaximum to March 2001, the visible range will be updated accordingly. However, if the values are set outside the actual data range—say from January 1999 to January 2004—the chart will ignore them and default to displaying the full actual range, from January 2000 to March 2003. If you want to display a visible range that lies outside the automatically calculated data range, you can explicitly set your own minimum and maximum for the axis. This will override the auto-calculated actual range and allow initialVisibleMinimum and initialVisibleMaximum to work based on your defined axis range. This gives you more control over both the data bounds and the initial view window. Here's a modified code snippet for your reference:
Demo: Recording.2025-04-29.094343.mp4Regards, |
Please reopen this ticket, if you need further assistance with this. |
Your demo video itself also shows my issue. Consider the label "Feb" in the last few seconds of the video. At 0:07, it has a value of ~64, at 0:08 ~48 until it reaches 40 at 0:10. Thus, the label "Feb" does not stand for 1st February but changes the specific day depending on the panning state. As such, I would want a precise label for 1st February 00:00, so a value in the middle between Feb and Mar would correspond to a value from mid February. With the current implementation it's really tough to make out specifics like that. Thus, I would like to reopen the issue, but I don't have the permissions to do so :) |
Bug description
When panning a chart with fixed interval type and one value for each interval step, the x axis moves along with the values as expected if the interval is day or lower. However, at the levels month and year, the x axis updates the displayed ticks and changes the day, providing the feeling of the ticks "standing still" and only moving the columns, especially if the (default) dateformat does not include the day.
It would be nice to always have the smooth version like day and below.
Syncfusion Flutter Charts are at version 27.1.50
Steps to reproduce
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
Weird panning on month and above:

Smooth panning on day and below:

Stack Traces
Stack Traces
Not applicable
On which target platforms have you observed this bug?
Android, Web
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: