The limits for box are as followMinX=0,MaxX=400,MinY=0,MaxY=4Ultrachart limits are as followMinX=0,MaxX=600,MinY=0,MaxY=3.5777
Problem1: Box upper border is overriding on ultrachart upperblack border.
Box upper border line should not override the ultrachart black border line as Box MaxY is 4.0 which is above the MaxY of ultrachart..How can achive this.
Problem 2:- Box should be drawn inside the ultrachart black border in any condition box border should not override the ultrachart black border lines.How can i achive this.
Hello Asha,
I have been trying to reproduce the behavior you described and using the similar values I got everything to work as expected. If you were to upload a code snippet or a sample project I might be able to find what is causing it.
Looking forward to your reply.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
IAdvanceAxis xAxis = e.Grid["X"] as IAdvanceAxis;
IAdvanceAxis yAxis = e.Grid["Y"] as IAdvanceAxis;DrawHighlightedSection is called in ZoomChart_FillSceneGraph
private void DrawHighlightedSection(IAdvanceAxis xAxis, IAdvanceAxis yAxis){int indexOfBorderBox = -1;for (int current = 0; current < mSceneGraph.Count; current++){if (mSceneGraph[current].Path == "Border.Title.Grid.Chart"){indexOfBorderBox = current;break;}
//default white
Details for above code:-The limits for box are as followHighlightRangeXMin =0,HighlightRangeXMax =400,HighlightRangeYMin =0,HighlightRangeYMax =4Ultrachart limits are as followMinX=0,MaxX=600,MinY=0,MaxY=3.5777.Hope this information helps u to know what is causing it.
HI Petar,Code snippet:-
private
void DrawHighlightedSection(IAdvanceAxis xAxis, IAdvanceAxis yAxis){int indexOfBorderBox = -1;for (int current = 0; current < mSceneGraph.Count; current++){if (mSceneGraph[current].Path == "Border.Title.Grid.Chart"
)
{
indexOfBorderBox = current;
;
}
(HighlightRangeXMin > Chart.Axis.X.RangeMin || HighlightRangeXMax < Chart.Axis.X.RangeMax
|| HighlightRangeYMin > Chart.Axis.Y.RangeMin || HighlightRangeYMax < Chart.Axis.Y.RangeMax)
)yAxis.Map(HighlightRangeYMax);
)xAxis.Map(HighlightRangeXMin);
)xAxis.Map(HighlightRangeXMin));
)yAxis.Map(HighlightRangeYMax));
(indexOfBorderBox != -1)
Chart.Axis.PE =
.FromArgb(0, 240, 240, 240));
(topLeftX, topLeftY), rectWidth, rectHeight);
rectBox.PE.Stroke =
.FromArgb(255, 255, 99, 0);
rectBox.PE.Fill =
//Reduction Box
rectBox.PE.FillOpacity = 150;
mSceneGraph.Insert(indexOfBorderBox, rectBox);
else
Chart.Axis.PE.Stroke =