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

5 posts, 0 answers
  1. Peter
    Peter avatar
    10 posts
    Member since:
    Apr 2014

    Posted 08 Dec 2014 Link to this post

    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?
  2. Peter
    Peter avatar
    10 posts
    Member since:
    Apr 2014

    Posted 08 Dec 2014 in reply to Peter Link to this post

    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>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Peshito
    Admin
    Peshito avatar
    496 posts

    Posted 10 Dec 2014 Link to this post

    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.

     
  5. Flemming
    Flemming avatar
    12 posts
    Member since:
    Aug 2016

    Posted 23 Sep in reply to Peshito Link to this post

    What is the status of this feature?

    /Flemming Rosenbrandt

  6. Peshito
    Admin
    Peshito avatar
    496 posts

    Posted 27 Sep Link to this post

    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.
Back to Top
UI for WPF is Visual Studio 2017 Ready