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

how to remove no dataseries in ChartArea

1 Answer 58 Views
Chart
This is a migrated thread and some comments may be shown as answers.
manimaran
Top achievements
Rank 1
manimaran asked on 13 Feb 2012, 07:55 AM


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

1 Answer, 1 is accepted

Sort by
0
Rahul
Top achievements
Rank 2
answered on 13 Feb 2012, 01:24 PM
Hi manimaran

  Please check out below Code for your requirement.

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


Regards
Rahul
Tags
Chart
Asked by
manimaran
Top achievements
Rank 1
Answers by
Rahul
Top achievements
Rank 2
Share this question
or