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

X Axis accuracy

1 Answer 58 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
User1564
Top achievements
Rank 1
Veteran
User1564 asked on 01 Oct 2020, 10:34 AM

Hello,

I've got a system, where I want to check how often it run.
Now I've got 80 values with value 0 or 1 and Datetime.

Now I want to see how long it run in the last 24h.
X Axis is DateTime and Y Axis is 0 and 1

The first issue is, that it draws every Datetime value in the x axis, which really took long and wasnt really my target, cause 
through the wide of the line the user should see approximately how long it run.
If I change the BaseUnit to hour its fast, but all the smaller values get lost.

I added a picture what I am planning to do

Regards

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 06 Oct 2020, 08:55 AM

Hello,

RadHtmlChart can show only one DateTime unit type at a time, so if the BaseUnit is set to hours it is expected for the series with very small values in minutes to be almost invisible. A possible approach you can consider is to add a navigator to the chart, which will allow the used to change the viewed data range while the chart will choose the appropriate BaseUnit automatically depending on the user's selection:

https://demos.telerik.com/aspnet-ajax/htmlchart/examples/functionality/datanavigation/defaultcs.aspx

If this approach is not applicable to your needs, please, send me a small sample (with some data) where I can examine the setup that you have and advise you further how to achieve the target result (if possible).

Regards,
Vessy
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Tags
Chart (HTML5)
Asked by
User1564
Top achievements
Rank 1
Veteran
Answers by
Vessy
Telerik team
Share this question
or