This is a migrated thread and some comments may be shown as answers.

2D scattered/point sample

3 Answers 40 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 20 Mar 2011, 01:25 PM
Hi,
I am new to telerik charting. I have a list of nodes having x and y values between -1.5 -1.5 on both x and y axis
 Can you please send me any sample, how can i map my points and set x and y axis values. Thanks

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 23 Mar 2011, 09:42 AM
Hello Muhammad,

To see more information along the lines of the requested functionality, please refer to the following example:

http://demos.telerik.com/silverlight/#Chart/Gallery/Scatter

The same approach is applicable for a chart in wpf.
I hope this gets you started properly.

Regards,
Yavor
the Telerik team
0
Muhammad
Top achievements
Rank 1
answered on 23 Mar 2011, 09:52 AM

Hi,
I am able to set data for graph. However i need help in X and Y  axis positions. I need to set my X axis and y axis in center to make it like plus sign. Its the requirement. More explanation is that the Min XValue = -1.5 and maxXvalue = 1.5 same with Y axis from -1.5 to 1.5. i need the decimals like -1.5,-1.25,-1, .... to be displayed in the center rather then left and bottom.
Also i need to define some custom icons for different legends. is it possible. And is there any zooming functionality available?
Thanks
0
Yavor
Telerik team
answered on 25 Mar 2011, 09:13 AM
Hi Muhammad,

You can force the axis to be in such a layout, by manually presetting the ranges. For example, this may look something like this:

RadChart1.DefaultSeriesDefinition = new BubbleSeriesDefinition();
           RadChart1.DefaultView.ChartArea.EnableAnimations = false;            
           RadChart1.DefaultView.ChartArea.AxisY.AutoRange = false;
           RadChart1.DefaultView.ChartArea.AxisY.MinValue = -100;
           RadChart1.DefaultView.ChartArea.AxisY.MaxValue = 100;
           RadChart1.DefaultView.ChartArea.AxisY.Step = 10;
           RadChart1.DefaultView.ChartArea.AxisX.AutoRange = false;
           RadChart1.DefaultView.ChartArea.AxisX.MinValue = -100;
           RadChart1.DefaultView.ChartArea.AxisX.MaxValue = 100;
           RadChart1.DefaultView.ChartArea.AxisX.Step = 5;

Further, you can customize the legend, as shown in the following article:

http://www.telerik.com/help/silverlight/radchart-styling-and-appearance-styling-chart-legend.html

Additionally, you can review the zooming and scrolling features of the control here:

http://demos.telerik.com/silverlight/#Chart/ZoomScroll

I hope this information helps.

All the best,
Yavor
the Telerik team
Tags
Chart
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Muhammad
Top achievements
Rank 1
Share this question
or