Real Time Data in RadChart

2 posts, 0 answers
  1. M_S_E
    M_S_E avatar
    1 posts
    Member since:
    Mar 2013

    Posted 30 Mar 2013 Link to this post

    sorry for poor english ;-)
    I'm creating a data logging software that gets temperature,pressure,... from external hardware. An IObservableCollection is used  to store new data i want to visualize them in your amazing chart tool. the logging may take days and data points adds every second.
    my problem is HorizontalAxis labels, I have already used another 3rd party component ( C1.WPF.Chart ). it has a property named : "IsTime" and when enabled and bound to a TimeSpan data label formatting changed as logging continued ( seconds,minutes,hours,...). Now I'm evaluating your control and pretty sure RadChart is capable of doing the same thing much better. would please tell me how?
    mentioned component looks like this :
    Axis AxisTemperatureVal = new Axis()
                    AxisType = AxisType.Y,
                    Title = "Temperature [°C]",
                    Name = "Temperature",
                    IsDependent = false,
                    Position = AxisPosition.Far,
                    MajorGridStrokeThickness = 0,
                    MinorTickThickness = 0,
                    Min = 0,
    MainPage.Chart.ChartType = C1.WPF.C1Chart.ChartType.Line;
    MainPage.Chart.View.AxisY.Min = 0;
    MainPage.Chart.View.AxisY.Max = 100;
    MainPage.Chart.View.AxisX.Title = "Time";
    MainPage.Chart.View.AxisX.IsTime = true;

    thanks in advance
  2. Missing user
    Missing user avatar

    Posted 03 Apr 2013 Link to this post

    Hi Mohammad,

    RadChart supports DateTime values rather than TimeSpan. Using DateTime objects for X values is done in a similar way - by setting the IsDateTime property of the X axis to true as shown in this article from the RadChart section in RadControls' for WPF documentation.

    Also, since you are new to our controls, I'd like to advise you to prefer RadChartView over RadChart wherever the situation permits it. RadChartView is the successor to RadChart and is built from the ground up to be faster and more flexible. You can read a comparison between the two here. RadChartView also supports DateTime binding in a different, but more appropriate way by using axes specifically designed for this purpose. The article which covers DateTime support in RadChartView is located here.

    Ivan N.
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top