Hello,
Is there any way to rotate Box(Whisker chart) in Infragistic Win Forms UltraChart component so it would be horizontal?
Thanks in advance
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.
It worked fine, thanks a lot! But now when I am trying to make it wider the height of control is also increases. So I can't make it for example Height 70 px and width 500 px. Can you suggest something?
Also I have several questions regarding different charts layout:
1. What it takes to get rid of gradient for bars and make it painted with solid color?
2. Is there any way to move "Data values on chart" so they will be not on the edge of bar(one digit inside the bar and another outside) but whole value inside the bar or outside?
3. Also this solution
foreach (Primitive item in e.SceneGraph)
{
Text pl = item as Text;
if (pl != null && pl.Path == "Border.Title.Grid.Y") {
pl.bounds.Offset(-15, 0); }
if (pl != null && pl.Path == "Border.Title.Grid.X") { pl.PE.Fill = Color.Green; pl.bounds.Offset(5, 15); } }
worked fine for lot of charts except for "Column chart"
Is there a way to move X Axis labels for "Column chart"?
Any help will be much appreciated.
P.S. I couldn't open solution that you attached. It looks like it was because I use VS 2010. If it is possible to attach solution that was built in the same studio it would be great. Thanks again.