Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > Chart > Chart X-Axis Displayed values

Not answered Chart X-Axis Displayed values

Feed from this thread
  • fayssal el moufatich avatar

    Posted on Sep 16, 2011 (permalink)

    I am trying to plot a time series. If I pass the list of corresponding dates for the values. Chart will display all the dates, which is rather a mess. Is there an Excel-like behavior where the chart samples only a few dates on the x-axis for display.

    Thanks!
    Fayssal

    Reply

  • Tsvetomir Tsonev Tsvetomir Tsonev admin's avatar

    Posted on Sep 16, 2011 (permalink)

    Hello Fayssal,

    We will add an option to render every n-th label in order to address the more basic scenarios. We also plan to implement a true Date axis for future versions.

    Best wishes,
    Tsvetomir Tsonev
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • fayssal el moufatich avatar

    Posted on Sep 17, 2011 (permalink)

    It should fine. I have already come up with a workaround for it for now :).

    BR,
    Fayssal

    Reply

  • Devrao avatar

    Posted on Feb 9, 2012 (permalink)

    Hi Fayssel
     How you figure it out?
     Let us know it.I have same issue.

    Reply

  • Max avatar

    Posted on Feb 17, 2012 (permalink)

    Hi Fayssel,Would you mind sharing your findings please?
    We are having the same issue too.

    Thank you!
    Max

    Reply

  • Tsvetomir Tsonev Tsvetomir Tsonev admin's avatar

    Posted on Feb 20, 2012 (permalink)

    Hello,

    The Q1 '12 version of the MVC extensions adds support for a label step property. It allows you to render only every n-th label.
    .CategoryAxis(axis => axis
        .Categories(s => s.DateString)
        .Labels(l => l.Step(2))
    )


    Another alternative to a true DateTime axis would be to use a scatter chart to emulate it by representing the time as milliseconds. See the attached project for an example. Regards,
    Tsvetomir Tsonev
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
    Attached files

    Reply

  • Håvard avatar

    Posted on May 10, 2012 (permalink)

    you used this code to format the labels: 

    .Labels(l => l.Template("${ formatDate(value) }"))

    is it possible to do something similar for the series tooltip? 

    Reply

  • Tsvetomir Tsonev Tsvetomir Tsonev admin's avatar

    Posted on May 14, 2012 (permalink)

    Hi,

    Yes, the syntax is almost the same. As this is an XY-chart you need to specify which dimension of the value you need.

    .Tooltip(t => t.Visible(true).Template("${ formatDate(value.x) }"))

    I hope this helps.

    Regards,
    Tsvetomir Tsonev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > Chart > Chart X-Axis Displayed values
Related resources for "Chart X-Axis Displayed values"

ASP.NET MVC Chart Features  |  Documentation  |  Demos  |  Telerik TV ]