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

Show chartview even if there is no data (empty content)

4 Answers 221 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 08 Dec 2014, 09:18 AM
I am using the RadChartView (RadCartesianChart to be precise). The data I receive is pushed to me from the server, every minute or so. There are times when there will be no data. By default, the RadChartView will show a message like 'no data to plot'. However, I would like to show the X- and Y-axis anyway, and hide the EmptyContent message.

Is this possible?

4 Answers, 1 is accepted

Sort by
0
Peter
Top achievements
Rank 1
answered on 08 Dec 2014, 09:40 AM
Unfortunately, I don't think there is an elegant solution. However, I managed to hack it by adding a series with one item and setting its stroke to Transparent:

<telerik:ScatterLineSeries XValueBinding="."
                  YValueBinding="."
                  Stroke="Transparent">
    <telerik:ScatterLineSeries.ItemsSource>
        <x:Array Type="system:Int32">
            <system:Int32>0</system:Int32>
        </x:Array>
    </telerik:ScatterLineSeries.ItemsSource>
</telerik:ScatterLineSeries>
0
Peshito
Telerik team
answered on 10 Dec 2014, 09:15 AM
Hello Peter,

I am happy you managed to workaround it. There is actually a feature request logged in our Feedback Portal. You can vote for it in order to raise its priority.

Regards,
Peshito
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Flemming
Top achievements
Rank 1
answered on 23 Sep 2016, 11:39 AM

What is the status of this feature?

/Flemming Rosenbrandt

0
Peshito
Telerik team
answered on 27 Sep 2016, 06:25 AM
Hi Flemming,

This feature is not yet completed and it is not in our road map for the upcoming release. As a workaround use the approach suggested in this thread by adding a series with one point and setting its stroke to transparent.

Regards,
Peshito
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
ChartView
Asked by
Peter
Top achievements
Rank 1
Answers by
Peter
Top achievements
Rank 1
Peshito
Telerik team
Flemming
Top achievements
Rank 1
Share this question
or