Hi!
Who knows how to use LabelMemberPath and FillMemberPath with BubbleSeries in XamDataChart and if it possible at all?
As far as I know BubbleSeries has 5 properties like Something_MemberPath.
XMemberPath, YMemberPath and RadiusMemberPath work fine but when I setup
LabelMemberPath and FillMemberPath I can't see any changes.
I've attached my simple project to this post.
LabelMemberPath indicates which property on the data items to use as a label in the ItemLegend associated with the bubble series, see this sample: http://samples.infragistics.com/sldv/RunSamples.aspx?cn=data-chart#/data-chart/bubble-brush-scale
You can also see, in the above sample how FillMemberPath is bound to either "Radius" "X" or "Y" depending on your selection in the combo box in the sample. Given that you have provided a FillScale, the FillMemberPath should point at a double value that indicates the interpolated position of the color to use from the FillScale for each data point.
Does this help?
-Graham
Thank you very much about the explanation.
LabelMemberPath is used mainly for legend.
And it is quite easy to use FillMemberPath property. It also needs to define FillScale
Property and do it like this for example:
ValueBrushScale _vbs = new ValueBrushScale();
_vbs.Brushes.Add(new SolidColorBrush(Colors.Coral));
_vbs.Brushes.Add(new SolidColorBrush(Colors.Black));
...
BubbleSeries bs;
bs.FillMemberPath = "Radius";
bs.FillScale = _vbs;