hello,
i have radchart that i create programmatically. i add a few line series and 1 bubble series programmatically
i would like to control the point sizes of each series item individually in the bubble series. i cannot seem to control the individual point sizes of either a point series or a bubble series.
i have autosize = false; here is some code i am using.
Telerik.Charting.ChartSeries rulecs = new Telerik.Charting.ChartSeries();
rulecs.Name = Resources.MyGlobalResources.Rules;
rulecs.Appearance.FillStyle.MainColor = Color.Green;
rulecs.Appearance.FillStyle.SecondColor = Color.Green;
rulecs.Appearance.BubbleSize = 4;
rulecs.Type = Telerik.Charting.ChartSeriesType.Bubble;
rulecs.Appearance.PointMark.FillStyle.MainColor = Color.Green;
rulecs.Appearance.PointMark.FillStyle.SecondColor = Color.Green;
rulecs.Appearance.LegendDisplayMode = Telerik.Charting.ChartSeriesLegendDisplayMode.Nothing;
rulecs.Appearance.PointDimentions.AutoSize = false;
rulecs.Appearance.ShowLabels = false;
rulecs.Appearance.LabelAppearance.Visible = false;
then
to control each individual points
if (cbl_rules.Items[0].Selected)
{
for (int i = 0; i < a.Length; i++)
{
if (a[i])
{
if (rulecs.Items[i].ActiveRegion.Tooltip.Length > 0)
rulecs.Items[i].ActiveRegion.Tooltip = rulecs.Items[i].ActiveRegion.Tooltip + "," + Resources.MyGlobalResources.R1;
else
rulecs.Items[i].ActiveRegion.Tooltip = Resources.MyGlobalResources.R1;
rulecs.Items[i].PointAppearance.Dimensions.AutoSize = false;
rulecs.Items[i].PointAppearance.Dimensions.Height = 6;
rulecs.Items[i].Appearance.FillStyle.MainColor = Color.Red;
rulecs.SetItemColor(i, Color.Red);
rulecs.Items[i].Appearance.FillStyle.MainColor = Color.Red;
rulecs.Items[i].Appearance.FillStyle.SecondColor = Color.Red;
rulecs.Items[i].PointAppearance.Dimensions.Width = 6;
}
}
}
else leave the point as the original size and color.
the points only seem to change when i change the following code
rulecs.Appearance.BubbleSize = 4;
please help as i have looked through the help and forums but have not been able to control the sizing of each point individually. that said, i can control the color. please let me know, thanks.
questions.
1. can i control the size and color of each individual point separately in a point and bubble series? if so, how, if not, why not?
thanks again,
avh
i have radchart that i create programmatically. i add a few line series and 1 bubble series programmatically
i would like to control the point sizes of each series item individually in the bubble series. i cannot seem to control the individual point sizes of either a point series or a bubble series.
i have autosize = false; here is some code i am using.
Telerik.Charting.ChartSeries rulecs = new Telerik.Charting.ChartSeries();
rulecs.Name = Resources.MyGlobalResources.Rules;
rulecs.Appearance.FillStyle.MainColor = Color.Green;
rulecs.Appearance.FillStyle.SecondColor = Color.Green;
rulecs.Appearance.BubbleSize = 4;
rulecs.Type = Telerik.Charting.ChartSeriesType.Bubble;
rulecs.Appearance.PointMark.FillStyle.MainColor = Color.Green;
rulecs.Appearance.PointMark.FillStyle.SecondColor = Color.Green;
rulecs.Appearance.LegendDisplayMode = Telerik.Charting.ChartSeriesLegendDisplayMode.Nothing;
rulecs.Appearance.PointDimentions.AutoSize = false;
rulecs.Appearance.ShowLabels = false;
rulecs.Appearance.LabelAppearance.Visible = false;
then
to control each individual points
if (cbl_rules.Items[0].Selected)
{
for (int i = 0; i < a.Length; i++)
{
if (a[i])
{
if (rulecs.Items[i].ActiveRegion.Tooltip.Length > 0)
rulecs.Items[i].ActiveRegion.Tooltip = rulecs.Items[i].ActiveRegion.Tooltip + "," + Resources.MyGlobalResources.R1;
else
rulecs.Items[i].ActiveRegion.Tooltip = Resources.MyGlobalResources.R1;
rulecs.Items[i].PointAppearance.Dimensions.AutoSize = false;
rulecs.Items[i].PointAppearance.Dimensions.Height = 6;
rulecs.Items[i].Appearance.FillStyle.MainColor = Color.Red;
rulecs.SetItemColor(i, Color.Red);
rulecs.Items[i].Appearance.FillStyle.MainColor = Color.Red;
rulecs.Items[i].Appearance.FillStyle.SecondColor = Color.Red;
rulecs.Items[i].PointAppearance.Dimensions.Width = 6;
}
}
}
else leave the point as the original size and color.
the points only seem to change when i change the following code
rulecs.Appearance.BubbleSize = 4;
please help as i have looked through the help and forums but have not been able to control the sizing of each point individually. that said, i can control the color. please let me know, thanks.
questions.
1. can i control the size and color of each individual point separately in a point and bubble series? if so, how, if not, why not?
thanks again,
avh