Y Margins much larger than they should be
Posted: Wed Mar 12, 2014 6:51 pm
I am hoping you might be able to help me figure out where I am going wrong.
When my app initially opens the very first chart to be displayed always has way wider Y margin settings. I'm seeing something like 40 or 50 pixels where my setting is 10.
This is with:
_chart.ViewXY.ZoomPanOptions.ViewFitYMarginPixels = 10;(In Constructor)
_chart.ViewXY.FitView();(very last function call before EndUpdate() in my chart drawing routine)
Things I have noticed:
-increasing the ViewFitYMarginPixels also increases the first renderings way to big margins linearly
-when I set the ViewFitYMarginPixels to 100 pixels the initial chart has a Y margin of 0
-choosing a different chart to open first results in the same problem
-anything that causes the chart to re-render draws the Y margins correctly and I have no more issues
Any help would be greatly appreciated as I am stuck on this one.
When my app initially opens the very first chart to be displayed always has way wider Y margin settings. I'm seeing something like 40 or 50 pixels where my setting is 10.
This is with:
_chart.ViewXY.ZoomPanOptions.ViewFitYMarginPixels = 10;(In Constructor)
_chart.ViewXY.FitView();(very last function call before EndUpdate() in my chart drawing routine)
Things I have noticed:
-increasing the ViewFitYMarginPixels also increases the first renderings way to big margins linearly
-when I set the ViewFitYMarginPixels to 100 pixels the initial chart has a Y margin of 0
-choosing a different chart to open first results in the same problem
-anything that causes the chart to re-render draws the Y margins correctly and I have no more issues
Any help would be greatly appreciated as I am stuck on this one.