Replies: 1 comment
-
Moved to #1099 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am currently using LiveCharts2 in my WPF application and I have a question about setting a fixed number of x-axis labels.
In my application, I want to display a fixed number of labels on the x-axis, regardless of the number of data points in my series. For example, I want to display 10 labels on the x-axis, but I might only have 7 data points in my series.
I tried to set the Labels property of the Axis object to a string array of 10 elements, but it didn't work as expected. The x-axis still only showed labels for the 7 data points in my series, and it didn't display the remaining 3 labels.
Here is a snippet of my code:
Is there a way to achieve this in LiveCharts2? Any help would be greatly appreciated.
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions