9 Answers, 1 is accepted
Silverlight is a different runtime from the .Net Framework and there is not problem to use Silverlight 4 controls. You will only need .Net 4.0 if you intend to use Ria Servcies which required .Net 4.0.
All the best,
Milan
the Telerik team
This blog post demonstrates how you can use RadChart with Ria Services. You can also check out this introductory video about Ria Services.
Do not hesitate to ask if you need more help.
Best wishes,
Milan
the Telerik team
Excuse me for the misunderstanding.
In that case, you will have to add your entity classes to a Web Project which will expose those classes through a web service which will be consumed by your Silverlight application.
This MSDN article explains the whole process.
Sincerely yours,
Milan
the Telerik team
I am trying to create a scatter chart which is doing good but I would like to to divide chart area in 4 equal rectangles.
Please see the attached image. I have done all other stuff but not able to create a rectangle inside chart area.
Please Help.
You can achieve the desired effect by drawing two custom gridlines -- you can find more information here.
Hope this helps.
Sincerely yours,
Freddie
the Telerik team
Thanks for your help. I did see that sample but my problem is different. I would like to draw those lines at run time between
Y and X-axis. But how do I get the centre point of Y and X of my chart series?
CustomGridLine yline = new CustomGridLine();
In order to draw the custom grid lines you need to know the axis's Max Value and range. You can get them on the RangeChanged event of the axis. Having these values you can correctly adjust the Intercept property of the custom grid line like this:
radChart.DefaultView.ChartArea.AxisY.RangeChanged +=
new
EventHandler(AxisY_RangeChanged);
radChart.DefaultView.ChartArea.AxisX.RangeChanged +=
new
EventHandler(AxisX_RangeChanged);
void
AxisX_RangeChanged(
object
sender, EventArgs e)
{
radChart.DefaultView.ChartArea.Annotations.Remove(xline);
xline.XIntercept = radChart.DefaultView.ChartArea.AxisX.ActualMaxValue - radChart.DefaultView.ChartArea.AxisX.ActualRange / 2;
xline.Visibility = System.Windows.Visibility.Visible;
xline.StrokeThickness = 3;
xline.Background =
new
SolidColorBrush(Colors.Blue);
radChart.DefaultView.ChartArea.Annotations.Add(xline);
}
CustomGridLine yline =
new
CustomGridLine(), xline =
new
CustomGridLine();
void
AxisY_RangeChanged(
object
sender, EventArgs e)
{
radChart.DefaultView.ChartArea.Annotations.Remove(yline);
yline.YIntercept = radChart.DefaultView.ChartArea.AxisY.ActualMaxValue - radChart.DefaultView.ChartArea.AxisY.ActualRange / 2;
yline.Visibility = System.Windows.Visibility.Visible;
yline.StrokeThickness = 3;
yline.Background =
new
SolidColorBrush(Colors.Blue);
radChart.DefaultView.ChartArea.Annotations.Add(yline);
}
Yavor Ivanov
the Telerik team