I have to draw a box in ultrachart when user specifiys x and y limits.Hightlighting the area and grayout the area outside the box as shown in the image below.
Hello Asha,
In order to add visual objects onto the UltraChart you can use the FillSceneGraph event as described in our online documentation: http://help.infragistics.com/NetAdvantage/WinForms/2010.2/CLR2.0/?page=Chart_FillSceneGraph_Event.html
You can place a Boxes on top of the chart semi-transparent colors and use the IAdvanceAxis to get reference from your axes values.
Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Thanks for reply.I was able to draw the box previously but was not able to give transparent color to box.
You can set the used Primitive’s PaintElement’s FillOpacity and StrokeOpacity properties to a values from 0 to 255 in order to seethe the Fill and Stroke colors’ transparency. Here is a code snippet you can try out:
PaintElement myPE = new PaintElement();
myPE.Fill = Color.Green;
myPE.FillOpacity = 70;
myPE.Stroke = Color.Blue;
myPE.StrokeOpacity = 150;
myPE.StrokeWidth = 20;
Please let me know if you require any further assistance on the matter and if this solves it please verify the thread as answered so other users may take better advantage of it.