Target Color

4 posts, 0 answers
  1. Patrick
    Patrick avatar
    26 posts
    Member since:
    Jan 2018

    Posted 03 May 2018 Link to this post

    Should be really simple.... cannot find any documentation and the demo is lacking...

    How do you set the target color from the helper?


                .HtmlAttributes(new { style = "text-align: left; width:100%; line-height:30px;" })
                .Tooltip(tooltip => tooltip.Format("{0}%"))
                .SeriesColors(new string[] {"blue"})
                .ValueAxis(axis => axis
                    .PlotBands(bands => {
                    .Data(new double[] { 43, 95 })
  2. Tsvetina
    Tsvetina avatar
    2481 posts

    Posted 07 May 2018 Link to this post

    Hi Patrick,

    The Target color can be configured if there is an explicit Bullet series definition, because the Target property is specific to this series type only:
    @model IEnumerable<TelerikMvcApp26.Models.Bullet>
         .Series(s=>s.Bullet(m=>m.Current, m=>m.Target).Target(t=>t.Color("green")))

    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. terrysmith
    terrysmith avatar
    131 posts
    Member since:
    Nov 2006

    Posted 04 Feb in reply to Tsvetina Link to this post

    I've spent hours on this same issue and searched your doc multiple times before finding this post. This should be in your product documentation, not "documented" in this forum post.
  4. Tsvetomir
    Tsvetomir avatar
    596 posts

    Posted 06 Feb Link to this post

    Hi Terry,

    All of the functionalities that are exposed by a certain widget are documented and placed in the API reference of the respective widget. Since the documentation aims for clarifying a whole concept a functionality rather than very specific ones, you could search in the API article of the Sparkline widget:

    For instance, if you type in "bullet", all of the additional options will be displayed and you would be able to check out the color option as well.


    Progress Telerik

    Get quickly onboarded and successful with your Telerik UI for ASP.NET MVC with the dedicated Virtual Classroom technical training, available to all active customers.
Back to Top