Chartview format seconds

3 posts, 0 answers
  1. john
    john avatar
    5 posts
    Member since:
    Aug 2015

    Posted 26 Feb Link to this post

    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. Hristo
    Admin
    Hristo avatar
    1517 posts

    Posted 02 Mar Link to this post

    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.
  3. john
    john avatar
    5 posts
    Member since:
    Aug 2015

    Posted 03 Mar in reply to Hristo Link to this post

    With some modifications, this works with dynamic data too.

    Thanks.

Back to Top