Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
385
dynamically resize the column thickness by dragging the cursor in a stacked column chart.
posted

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

Parents
No Data
Reply
  • 28496
    Offline posted

     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.


Children