Why right side axis Y is in chart's view when set margin
Posted: Tue Jan 09, 2018 1:52 am
Hello, I get a question when set axis position. I set ViewXY's margin, disable AutoAdjustMargins and set YAxisAutoPlacement to AllRight, but the result not as what I thought: The Y Axis is in view
The xaml Code below:
The x axis behave normal but the y axis is not.
I knew that enable AutoAdjustMargins don't have this problem, but I should set solid margin for special requirement.
Can this be solve? Thx.
The xaml Code below:
Code: Select all
<Grid>
<lcusb:LightningChartUltimate Content="LightningChartUltimate">
<lcusb:LightningChartUltimate.ViewXY>
<lcusb:ViewXY Margins="50">
<lcusb:ViewXY.AxisLayout>
<lcusb:AxisLayout AutoAdjustMargins="False" YAxisAutoPlacement="AllRight" XAxisAutoPlacement="AllTop"/>
</lcusb:ViewXY.AxisLayout>
<lcusb:ViewXY.YAxes>
<lcusb:AxisY/>
</lcusb:ViewXY.YAxes>
<lcusb:ViewXY.XAxes>
<lcusb:AxisX/>
</lcusb:ViewXY.XAxes>
</lcusb:ViewXY>
</lcusb:LightningChartUltimate.ViewXY>
</lcusb:LightningChartUltimate>
</Grid>
I knew that enable AutoAdjustMargins don't have this problem, but I should set solid margin for special requirement.
Can this be solve? Thx.