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 have found an instance where I made a simple bar char with 8 bars (one series), without constraining the chart height, and observed that chart gets stuck in an infinite loop of rebuilding itself, with a slightly greater height each time. You can see it growing on the screen. If I set a specific Height on the chart there is no problem. I can see that ChartAxis.ChartAxis_SizeChanged keeps getting called. Unfortunately, I haven't been able to make a simple repro project where this occurs, so I don't know if this is sufficient information for you to figure this out. If not, maybe I would have time to work on the repro after next week. The sizing scenario is that the chart is in a horizontal stackpanel with a DataGrid to the left that has scrollbars disabled so the DataGrid sizes to whatever is needed. When I use a pie chart to the right of the DataGrid it sizes itself to the same height as the DataGrid, which is what I want. With the bar chart in the same position I get a problem. Peter |
|
|
Hello Peter Unfortunately I was unable to reproduce this. If you are able to create a repro project, that would be fantastic as we'd certainly like to solve this issue. If however you do not work out what is causing this loop, you may be able to bind the height of the Chart to the ActualHeight of the DataGrid. -Jason Fauchelle |
|