-
Notifications
You must be signed in to change notification settings - Fork 774
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
X-Axis Label Missing #117
Comments
Hi @opalr , I have checked this. The axis labels are displayed based on the calculated interval value. In your case, the last data point is less than the calculated interval, so it is not displayed. It won't be replicated in normal/simple data and it occurs only on some specific scenario. So, if you could share your data too, it would be helpful to analyze at our end and provide the solution sooner. Thanks, |
Data is below. DateTime for x-axis, doubles for y-axis.
|
Hi @opalr , We have analyzed the reported scenario with the data provided and we found the last x-axis label is missing which is due to the range calculation in the axis. The range calculation in the axis depends on the width of the axis i.e., If the width of the chart is smaller but, the calculated range for the axis has to fit in 5 labels to the x-axis then due to smaller width of the axis only 4 labels can be accommodated. This case can be ignored by either customizing the value of the interval property accordingly or by setting range padding as additional which is available in the chart axis. We have created a sample with the provided data and properties and replicated the reported scenario provided a fix by changing the value of interval property. Please refer the code snippet below.
The sample for reference can be found below. Also, for further reference on rangePadding and interval, please refer the user guide below.
Thanks, |
The far right axis label is sometimes missing, as shown below. I kept all the SfCartesianChart parameters the same except for the series parameter, and the far right label disappeared. So it depends on the data provided to the chart. It might be related to having a lot of values in the series, but not sure. The code is also below.
Is there a way to ensure the far right label is visible?
If you need the data to reproduce the issue, let me know and I can provide it.
Code:
The text was updated successfully, but these errors were encountered: