how to remove no dataseries in ChartArea

2 posts, 0 answers
  1. manimaran
    manimaran avatar
    2 posts
    Member since:
    Aug 2011

    Posted 13 Feb 2012 Link to this post


    hi 


    Plz can u tell me how to remove no dataseries  while my chart is loading.
    While i run my program first it shows no dataseries, after few seconds only my values are display as a graph( plz refer my first attachment)

    if i use nodataseries property. It comes like this. plz refer my attachment 2 


    my coding
    <UserControl 
        xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit" x:Class="FirstSliverLightApps.MainPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"             
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
        xmlns:control="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"
        xmlns:chart="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d"
        d:DesignHeight="390" d:DesignWidth="1000" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" >


        <Grid x:Name="LayoutRoot" Background="White" Width="1000">
            
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="600" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <telerik:RadChart x:Name="MyChart" Grid.Column="0"     />
            <telerik:RadChart x:Name="MyChart_stack" Grid.Column="0"  />
            <telerik:ChartArea NoDataString="Loading"/>
           
            <Button x:Name="Stack" Content="Stack Chart" Width="100" Height="40" Click="Stack_Click_1" Grid.ColumnSpan="2" Margin="728,166,90,184"></Button>
            <Button x:Name="Column" Content="Column Chart" Height="40" Visibility="Collapsed" Margin="728,225,90,125" Click="Column_Click_1"  Width="100" Grid.ColumnSpan="2" />
        </Grid>
    </UserControl>


    thanks

    Mani
  2. Rahul
    Rahul avatar
    116 posts
    Member since:
    Feb 2011

    Posted 13 Feb 2012 Link to this post

    Hi manimaran

      Please check out below Code for your requirement.

    chart.DefaultView.ChartArea.IsNoDataMessageEnabled = false;
    or
    chart.DefaultView.ChartArea.NoDataString = string.empty;


    Regards
    Rahul
  3. DevCraft banner
Back to Top