This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I get overlapping labels on the x-axis of one of my graphs. What can I do to prevent this? Is there a way to decrease the number of labels so that they do not overlap? Here is the XAML-snippert where I define the graph:
<Charting:Chart Height="300" DataContext="{Binding SelectedBuddy}" ZoomMode="Horizontal"> |
|
|
Hello There are a couple of options here. Let me know if any of these solutions don't work out for you. Cheers
|
|
|
Both options only offer a partial solution in my case, but I might be doing something wrong. My users highly varying datasets: some have only a few entries in, say, the last six months, while others have many. In that case, some would only need a level-count of 1, while others, say 4. The same applies to the MajorTickSpacing, a particular tick spacing of x looks good on dataset A, while it looks absolutely horrific on dataset B and vice versa. Of course, I could try to derive an algorithm to determine the optimal MajorTickSpacing, but I was hoping for something simpler.
Best regards, Manfred
MajorTickSpacing 0Dataset A
Dataset B
MajorTickSpacing 3Dataset A Dataset B |
|
|
Hello I have now added a LabelStep property to the ChartAxis. This can be used to specify if any of the axis labels should be skipped. By default, the property value is 0 which lets the ChartAxis automatically choose an appropriate label step which helps to prevent label overlaps. So you don't even need to set it. It's not perfect, but from what I can see from your images, it will work well in your application. This update will be available through the nightly builds from tomorrow the 30th of March. Let me know how it goes. - Jason |
|
|
Works very well!
Thank you,
Manfred |
|