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, Dimitar. I am not sure if you saw my questions so I will duplicate them here if you don't mind
1)
Hello, I have another issue with the code above. The problem is with the Override object herefor (int i = 0; i < GetHistogramData().Rows.Count; i++){Override colorOverride = new Override();colorOverride.Column = -2;colorOverride.Row = i;colorOverride.PE = new PaintElement(Color.LightSlateGray);this.ultraChart1.Override.Add(colorOverride);}
what I want is that Line chart to be red collor and Column chart to be LightSlateGray. But when I use override for
colorOverride.Column = 0;
colorOverride.Row = 0;
it colors first column of column chart and whole line chart in the same color. So when I get Override through the foreach loop all columns in the column chart (it is desirable) and whole line chart (not desirable) have the same color, colors are merged and it is impossible to see the line when columns are on the background.
Is there a way to set different color for the line?
I was trying to do something like this but it didn't helped
for (int i = 0; i < GetHistogramData().Rows.Count; i++){Override colorOverrideline = new Override();colorOverrideline.Column = -2;colorOverrideline.Row = i;colorOverrideline.PE = new PaintElement(Color.Red);myLineLayer.ChartComponent.Override.Add(colorOverrideline);}
It colors whole control anyway
I also checked ZeroAlignData property via designer. BTW where can I find this property in the code?
2) Also while using column chart in ultraChart1_FillSceneGraph event I was able to get var axisX = e.Grid["X"] as IAdvanceAxis; but now when I use composite chart I get null here.
The same thing with labels angle. When I was using column chart I was able to set Axis.X.Labels.Orientation = Custom and than set angle of labels. Using composite chart this property takes no effect.
Can you advice something?
Thanks!
Sorry I guess I confused this topic with this one http://es.infragistics.com/community/forums/p/92468/457865.aspx#457865.
Also while using column chart in ultraChart1_FillSceneGraph event I was able to get var axisX = e.Grid["X"] as IAdvanceAxis; but now when I use composite chart I get null here.
Thanks
for (int i = 0; i < GetHistogramData().Rows.Count; i++) { Override colorOverrideline = new Override(); colorOverrideline.Column = -2; colorOverrideline.Row = i; colorOverrideline.PE = new PaintElement(Color.Red); myLineLayer.ChartComponent.Override.Add(colorOverrideline); }
Thanks.
Thanks! I missed this line.
Hi Oleksandr,
It seems that Mike has responded to you in this forum thread:
http://es.infragistics.com/community/forums/p/92739/459314.aspx#459314
You need to bind the different series to the different data sources. The sample code you have provided is doing just that. You only need to add one small modification – change the following line (which is right after you initialize the histogramSeries):
histogramSeries.DataBind(GetHistogramData(), "Monthly Achieve");
to:
histogramSeries.DataBind(GetHistogramData(),"Value", "Month");
After doing that I was able to run your sample and the chart was with 9 columns and a line consisting of 20 points.
I am looking forward to your reply.