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
590
BoxChart rotation
posted

Hello, 

Is there any way to rotate Box(Whisker chart) in Infragistic Win Forms UltraChart component so it would be horizontal?

Horizontal box chart

Thanks in advance

Parents
No Data
Reply
  • 23930
    Verified Answer
    Offline posted

    Hello Oleksandr,

    Thank you for contacting Infragistics Developer Support.

    If you want to rotate the box chart horizontally, you could handle the FillSceneGraph event and get the GraphicsContext primitive. This primitive is basically responsible for drawing the rest of the primitives and it has a transform property. You can use this property to rotate the chart drawing (you need to rotate it by 90 degrees and translate its Y coordinate with the chart height). This way the chart will be rotated. Another thing you should do is to use the Y2 axis instead of the Y axis as when rotated, the Y2 axis will be in the place of the X axis. Also in order for the whole chart to be displayed after the rotation you should use a chart with equal height and width.

    I have attached a sample in order to demonstrate this approach.

    Please let me know if you have any additional questions.

    WC_BoxRotation.zip
Children