Labeling plot bands

6 posts, 0 answers
  1. Michael
    Michael avatar
    3 posts
    Member since:
    Oct 2012

    Posted 16 Apr 2013 Link to this post

    In this demo there is a plotBand at 30000, but it's pretty meaningless without a label. Is there a way to create a tooltip/label on it?
    Thanks!
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 17 Apr 2013 Link to this post

    Hello Michael,

    By design Chart's PlotBands does not have any tooltip / labels. If you wish you can submit this idea as a feature request at our UserVoice portal - this way the community would be able to evaluate it and if the suggestion gains popularity we will consider its implementation.
     
    Regards,
    Iliana Nikolova
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Sai Nadh
    Sai Nadh avatar
    1 posts
    Member since:
    May 2016

    Posted 14 Mar 2017 in reply to Iliana Nikolova Link to this post

    Hello Nikolova,

    Kindly let us know if solution is available for this query. 

    In our project we need to show label for plotbands, because in case of multiple axis user is confused that for which axis it is plotted. 

    thank you

  4. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 16 Mar 2017 Link to this post

    Hi Sai Nadh,

    There is no a specific plotBands label option available in Kendo UI Chart, however you could draw text via the Drawing API. Take a look at the following examples which should give a basic idea: 

    http://dojo.telerik.com/@Iliana/odAce (using the valueAxis.labels.visual option)
    http://demos.telerik.com/kendo-ui/bar-charts/visuals
    http://docs.telerik.com/kendo-ui/controls/charts/how-to/appearance/donut-chart-hole-text

    Regards,
    Iliana Nikolova
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  5. Michel
    Michel avatar
    23 posts
    Member since:
    Mar 2012

    Posted 30 Nov 2017 Link to this post

    Hi,

    Is it possible to get the rect geometry that the plotband is drawn into to place the text?

    regards

  6. Tsvetina
    Admin
    Tsvetina avatar
    2324 posts

    Posted 01 Dec 2017 Link to this post

    Hello Thierry,

    It isn't possible to get the plotband rect using the Chart APIs. However, you can draw a custom line/rectangle in the Chart on render, which could also have a Text element added. This help article shows such an example:
    Render Custom Plot Bands

    Regards,
    Tsvetina
    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.
Back to Top