Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
715
Wanting piechart to resize with window with no extra padding
posted

Pls see screenshots, what I would like is for the pie chart just to resize to fit into the window. I currently have a piechart sitting inside a stack panel sitting inside a DockManager Content pane.

I have View3d=Tue plus the following transform

<Chart:XamChart.Transform3D>
                                    <Transform3DGroup>
                                        <ScaleTransform3D ScaleX="1.2" ScaleY="1.2" ScaleZ="1.2"/>
                                        <RotateTransform3D>
                                            <RotateTransform3D.Rotation>
                                                <AxisAngleRotation3D Angle="40" Axis="-0.961,0.27,0.06"/>
                                            </RotateTransform3D.Rotation>
                                        </RotateTransform3D>
                                    </Transform3DGroup>
                                </Chart:XamChart.Transform3D>

I have tried playing around with the Scene/Margin types but with no luck

 

Can anyone help me out? thanks

 

 

 

  • 138253
    Offline posted

    Hello Chris,

    Thank you for your post. I have been looking through it and I successfully reproduce your behavior. One possible solution for you is to replace the StackPanel with Grid, because the StackPanel can only resize its elements vertically or horizontally depending on the set orientation. I attached a screenshot to understand better.

    If you have any further questions on this matter do not hesitate to ask.