I want to add rectangle to my ultrachart between 2 selected datapoints like below;
I can get the rows by ChartDataClicked Event. Thats okey. However i can not draw the rectange between 2 points.I think i should use 'FillSceneGraph' or 'Annotains'. However no idea about how to do it ?Can you help me abou this ?
Hello,
My recommendations is to use FillSceneGraph to add a Box primitive to the chart's scene graph. You can find an example of how to use the scene graph for custom rendering here: https://www.infragistics.com/help/winforms/chart-modify-scene-graph-using-fillscenegraph-event
Annotations probably will not work since they draw above chart items. You can read more about annotations to determine if you can adapt this feature to your needs here: https://www.infragistics.com/help/winforms/chart-annotations
Please let me know if you have any further questions.
Hello Mike,Thanks for the response. Yes, i tried to make this.
However i failed. I need some simple example for that. Could you please make this for me ? I am really kind of helpless.
Hi John,
Yes, I can build this for you. I will begin working now. I expect it to take me a couple of days to complete, so please expect the sample by the end of the day on Wednesday.
Thank you Mike. Looking forward to it :)
I've completed the sample. In the sample, I highlight the background in red over an arbitrary range. I included comments in the sample to explain how I got the information I needed from the scene graph and to offer advice on how you might extend my solution. Please let me know how this works for you.
ChartCustomDraw.zip
thank you, i will modify with this.
Please let me know if there is anything further I can do to help.