RadarLine chart static background if no data exists

4 posts, 1 answers
  1. Shane
    Shane avatar
    8 posts
    Member since:
    Nov 2015

    Posted 29 Feb Link to this post

    Given an empty radar line chart, is it possible to have the plotlines still colored as if there were data?  Here's a dojo example: http://dojo.telerik.com/@buffcessna/ELoha

    If you un-comment the data line, the graph looks fine.  But by commenting out the data line, the entire graph is green per the plotbands.

    Is there a way for the graph to be colored like the plotbands state even if there's no data present?

  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2592 posts

    Posted 02 Mar Link to this post

    Hi Shane,

    In order to achieve this I would suggest setting valueAxis min / max. For your convenience here is the updated dojo.

    Regards,
    Iliana Nikolova
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Shane
    Shane avatar
    8 posts
    Member since:
    Nov 2015

    Posted 02 Mar in reply to Iliana Nikolova Link to this post

    So simple and brilliant.  Thank you Iliana.

     

    So, how hard would it be to make the valueAxis max value dynamic based on if there was data or not?  So, if there is data, have the valueAxis max be the highest value in the dataset, but if there's no data have it be 11.

  5. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2592 posts

    Posted 03 Mar Link to this post

    Hi Shane,

    You could dynamically set valueAxis min / max via the chart.options (updated dojo).

    Regards,
    Iliana Nikolova
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET MVC is VS 2017 Ready