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

Time in YAxis (Graph, Winforms)

1 Answer 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 14 Nov 2018, 08:30 PM

Hi All!

I want to build a graph with time values:

YAxis - Numeric (i convert TimeSpan to integer with TimeSpan.TotalSeconds and and use this number in the graph)

XAxis - Category

please see the attached screen.

How i can replace numeric values with Time values? I tried formatting and it does not help. probably need to listen to events, but I could not find an example.

I really need your help.

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 19 Nov 2018, 02:33 PM
Hi David,

The axis scale can be set to Category, Numeric, or DateTime. Unfortunately, there is no TimeSpan option for the scale.
However, you can still display the current time value above each column using the DataPointLabel property and the TimeSpan.FromSeconds method. You might need to set Visible=True of the DataPointLabelStyle and also get the time in a User Function if it is not already present as a data field.

Regards,
Nasko
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or