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

[Solved] Scatter / Point with Logarithmic

4 Answers 114 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ming
Top achievements
Rank 1
Ming asked on 12 Jul 2010, 01:11 AM
Hi,

I needed to plot a Scatter / Point chart with with Y-Axis Logarithmic. It doesn;t work on my test. following is my test code.

            RadChart1.DefaultSeriesDefinition = new ScatterSeriesDefinition();
            RadChart1.DefaultView.ChartArea.AxisY.IsLogarithmic = true;

            RadChart1.ItemsSource = SeriesExtensions.GetUserScatterData();
































        public static List<List<UserDataPoint>> GetUserScatterData()
        {
            List<List<UserDataPoint>> data = new List<List<UserDataPoint>>();
            Random rand = new Random(DateTime.Now.Millisecond);

            List<UserDataPoint> seriesData = new List<UserDataPoint>();
            for (int i = 0; i < 199; i++)
            {
                seriesData.Add(new UserDataPoint(rand.Next(-100, 100), rand.Next(-990, 990)));
            }
            data.Add(seriesData);

            //List<UserDataPoint> seriesData3 = new List<UserDataPoint>();
            //for (int i = 0; i < 50; i++)
            //{
            //    seriesData3.Add(new UserDataPoint(rand.Next(-80, 10), rand.Next(10, 600)));
            //}
            //data.Add(seriesData3);

            List<UserDataPoint> seriesData3 = new List<UserDataPoint>();
            for (int i = 0; i < 50; i++)
            {
                seriesData3.Add(new UserDataPoint(rand.Next(-80, 10), rand.Next(189870, 60878770)));
            }
            data.Add(seriesData3);


            return data;
        }





4 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 14 Jul 2010, 10:21 AM
Hello Jaiming Li,

Thank you for bringing this to our attention. Indeed, there seems to be a problem plotting Scatter chart with logarithmic Y axis. I have notified our developers and a fix will be provided in one of the future versions of the control.

Thank you for the valuable feedback.Your Telerik points have been updated.

Best wishes,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ming
Top achievements
Rank 1
answered on 15 Jul 2010, 04:43 AM
Very cool, the 7/14 release fixed the Scatter / Point with Logarithmic bug!
0
Pepito
Top achievements
Rank 1
answered on 14 Aug 2011, 04:32 PM
i have a cuestion, what library i should add to use UserDataPoint? 
0
Evgenia
Telerik team
answered on 16 Aug 2011, 03:22 PM
Hi Pepito,

UserDataPoint is our custom class that we are using for convenience purposes in our examples. You can find it under your local installation path - for example C:\Program Files\Telerik\RadControls for Silverlight Q2 2011\Demos.

Kind regards,
Evgenia
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
Tags
Chart
Asked by
Ming
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Ming
Top achievements
Rank 1
Pepito
Top achievements
Rank 1
Evgenia
Telerik team
Share this question
or