This question is locked. New answers and comments are not allowed.
Hello!
I'm currently developing a bubble chart component using the RadChart control.
I'm having some trouble though since I can't seem to set the color for each data series manually.
All I've been able to do is to color the "rim" of the bubbles in each data series (see attached image).
This is the code I'm using to do this (it's perhaps overkill to set all these parameters, but nothing seems to work):
dataSeries.Definition.Appearance.Fill = new SolidColorBrush(currentColor);
((BubbleSeriesDefinition)(seriesMapping.SeriesDefinition)).Appearance.Fill = new SolidColorBrush(currentColor);
((BubbleSeriesDefinition)(seriesMapping.SeriesDefinition)).Appearance.Stroke = new SolidColorBrush(currentColor);
((BubbleSeriesDefinition)(seriesMapping.SeriesDefinition)).Appearance.Foreground = new SolidColorBrush(currentColor);
((BubbleSeriesDefinition)(seriesMapping.SeriesDefinition)).Appearance.StrokeThickness = 1;
((BubbleSeriesDefinition)(seriesMapping.SeriesDefinition)).Appearance.PointMark.Stroke = new SolidColorBrush(currentColor);
((BubbleSeriesDefinition)(seriesMapping.SeriesDefinition)).Appearance.PointMark.Fill = new SolidColorBrush(currentColor);
I've tried different things for a while and I still don't know how to get any further with this issue.
The color for each series in the legend is set correctly using the code above.
VERY thankful for help!!
// Johan
I'm currently developing a bubble chart component using the RadChart control.
I'm having some trouble though since I can't seem to set the color for each data series manually.
All I've been able to do is to color the "rim" of the bubbles in each data series (see attached image).
This is the code I'm using to do this (it's perhaps overkill to set all these parameters, but nothing seems to work):
dataSeries.Definition.Appearance.Fill = new SolidColorBrush(currentColor);
((BubbleSeriesDefinition)(seriesMapping.SeriesDefinition)).Appearance.Fill = new SolidColorBrush(currentColor);
((BubbleSeriesDefinition)(seriesMapping.SeriesDefinition)).Appearance.Stroke = new SolidColorBrush(currentColor);
((BubbleSeriesDefinition)(seriesMapping.SeriesDefinition)).Appearance.Foreground = new SolidColorBrush(currentColor);
((BubbleSeriesDefinition)(seriesMapping.SeriesDefinition)).Appearance.StrokeThickness = 1;
((BubbleSeriesDefinition)(seriesMapping.SeriesDefinition)).Appearance.PointMark.Stroke = new SolidColorBrush(currentColor);
((BubbleSeriesDefinition)(seriesMapping.SeriesDefinition)).Appearance.PointMark.Fill = new SolidColorBrush(currentColor);
I've tried different things for a while and I still don't know how to get any further with this issue.
The color for each series in the legend is set correctly using the code above.
VERY thankful for help!!
// Johan