Hi,
Is it possible to dynamically resize the bin(column\bar) thickness of a stacked column chart. I am using a composite chart comprising of a stacked column chart and a line chart.
When I resize the column chart using the cursor , my line chart should also get redrawn.request you to kindly help me with the same.
Regards,
Uday
It looks like you've asked this specific question in a separate thread:http://forums.infragistics.com/forums/t/14731.aspx
I don't myself know how one would accomplish this. I'm simply pointing out the separate thread to help avoid some confusion later.
Hi David ,
Actually I have not asked you the proper question.What I need to do is create a box primitive on top of my chart dynamically based on the click and drag events. Also I should be able to select and resize the primitive.
Please find attached the files which contain a scree shot of my requirement. I would request you to kindly provide me a sample code as I am new to this component.
this is a difficult task to create, as it's not exactly a feature of the chart control.
you may need to handle the FillSceneGraph event to get references to the axes using e.Grid["X"] and e.Grid["Y"], casting them to IAdvanceAxis. these objects can then be used to map data values to pixel locations or vice-versa, using the axis' Map and MapInverse functions.
in the MouseDown event, you can use the chart's HitTest method to get the Box primitive in that position and make changes to the chart's data accordingly. if you want to change the size or position of the Boxes, you can use FillSceneGraph or the ChartDrawItem event for that.
good luck and let us know if you run into problems.
Is it possible to select various regions in the chart and resize the bins.
uday