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
|
Hello Peter I was not able to exactly reproduce this outcome, but I was able to produce a similar result. I have fixed the issue that I was able to produce which should resolve the effect that you are seeing as well. This fix will be in the next nightly builds available from around 1200GMT. If you are still seeing the "wrapping" issue after you download the next nightly build, please send us a repro. Cheers -Jason |
|
|
Hi Jason, Thanks for the quick fix. I will test it. Peter |
|
|
Hi Jason, I find that the change you made did not fix the problem I was running into. However, I think I did figure it out. I am normally building the charts in code, and I could not contruct a XAML example that demonstrated the problem. With the aid of your source code I finally figured out that the problem was this sequence 1) ChartAxis axis = new ChartAxis() 2) assign the properties to the axis, including LabelRotation = 90. 3) Chart.XAxis = axis. If I change it to 1) ChartAxis axis = new ChartAxis() 2) Chart.XAxis = axis. 3) assign the properties to the axis, including LabelRotation = 90. Then everyting works fine. It appears that problem with the first sequence occurs because the Orientation property (read only) of the ChartAxis is not set to Horizontal until it the new chart axis it assigned to the XAxis property of the chart. When I am assigning properties before this occurs it seems that the first x-axis label gets constructed with the assumption that the axis is vertical (by ChartAxis.BuildAxisLabel). Then when the axis is assigned to Chart.XAxis rather than rebuilding this one existing label it is updated by ChartAxis.UpdateAxisLabels, but the HorizonatalAlignment, VerticalAlignment, Margin, Width, and Height don't get updated. So I do think this is a bug in ChartAxis, but it is now easy for me to avoid (and I'm sure few build charts in code). I did observe a possibly related problem with minor tick labels and label rotation, but this one I can reproduce in XAML, so I will start another thread. By the way, I do think having the source code is great. It would have been nearly impossible to figure this out without it because I only got the idea to change the sequence by stepping though the label building, and I never could have constructed an example to illustrate the problem to you in XAML. And your code is much easier to understand than some I've seen (e.g., Microsoft)! |
|
|
Hello Peter Good to hear you're finding the source code useful and easy to follow. Thanks for finding a way to reproduce this issue. I have fixed this by resetting the label and tick mark caches when the Orientation is updated. This fix will be available in the next nightly build. -Jason |
|
|
Hi Jason, I have now confirmed that this is fixed. thanks, Peter |
|