This is a migrated thread and some comments may be shown as answers.
Chartview format seconds
2 Answers 6 Views
This is a migrated thread and some comments may be shown as answers.
Nicklas
Top achievements
Rank 1
Veteran
Nicklas asked on 26 Feb 2020, 06:00 PM

Hi,

I'm currently working with a chartview where the y-axis contains seconds. I',m trying to convert the seconds to minutes and/or hours, depending on rather the amount of seconds is more or equal one or more hour/s.

How can I achieve this behavior?

 

Thanks in advance!

2 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 02 Mar 2020, 09:03 AM

Hi John,

The label`s text can be formatted by setting the LabelFormat property on the axis: https://docs.telerik.com/devtools/winforms/controls/chartview/axes/axes. You can also create a special format provider class and further customize the labels. Please check this documentation article: https://docs.telerik.com/devtools/winforms/controls/chartview/customization/custom-labels-text.

I hope this will help.

Regards,
Hristo
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Nicklas
Top achievements
Rank 1
Veteran
answered on 03 Mar 2020, 11:24 AM

With some modifications, this works with dynamic data too.

Thanks.

Asked by
Nicklas
Top achievements
Rank 1
Veteran
Answers by
Hristo
Telerik team
Nicklas
Top achievements
Rank 1
Veteran
Share this question
or