MindFusion.Charting for Silverlight allows users to change data of a bar in a bar chart or the coordinates of a point in a line chart. This is done by setting the AxesChart.Behavior property to Behavior.AllowXDrag or Behavior.AllowYDrag. The Behavior enumeration allows bitwise combining of its members.
C#
![]() |
---|
lineChart1.Behavior = Behavior.AllowXDrag | Behavior.AllowYDrag; |
VB.NET
![]() |
---|
lineChart1.Behavior = Behavior.AllowXDrag Or Behavior.AllowYDrag |
In bar charts you should only allow dragging in the direction of the bar - for horizontal bars this is Behavior.AllowXDrag, for vertical it is Behavior.AllowYDrag.
C#
![]() |
---|
lineChart1.Behavior = Behavior.DoNothing; |
VB.NET
![]() |
---|
lineChart1.Behavior = Behavior.DoNothing |