How can format the labels in mschart so that it contains X-Value and other value from database like this:
12 KG , 200 POUND , 45 LIters
lets call it the MeasureUnit value and it is deffirent with each X-Value
help me please
I tried this but the label appears as 0 always
Chart1.Series(0).Points.DataBind(Data, XValue, YValue, "Label=" & YValue & ControlChars.Lf & LabelUnit)
Here is the Ans:
Chart1.Series(0).Points.DataBind(Data, XValue, YValue, "Unit=" & LabelUnit)
Chart1.Series("Series1").XValueMember = XValue
Chart1.Series("Series1").YValueMembers = YValue
For Each pnt As DataPoint In Chart1.Series(0).Points
pnt.Label = "#VAL" & ControlChars.Lf & pnt.GetCustomProperty("Unit")
Next
Chart1.Series("Series1").IsValueShownAsLabel = True
Chart1.Series("Series1").ToolTip = "#VAL"
You can use AxisLabel property
OR if your series already has data you can do