This is a migrated thread and some comments may be shown as answers.

RadarLine chart static background if no data exists

3 Answers 34 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Shane
Top achievements
Rank 1
Shane asked on 29 Feb 2016, 03:42 PM

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?

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 02 Mar 2016, 01:45 PM
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
0
Shane
Top achievements
Rank 1
answered on 02 Mar 2016, 01:53 PM

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.

0
Accepted
Iliana Dyankova
Telerik team
answered on 03 Mar 2016, 04:15 PM
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
Tags
Chart
Asked by
Shane
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Shane
Top achievements
Rank 1
Share this question
or