Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9223859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:10:30+00:00 2026-06-18T04:10:30+00:00

I’m using Radchart,i want to remove the line series which is showing value zero.Is

  • 0

I’m using Radchart,i want to remove the line series which is showing value zero.Is there any possible way to hide or remove the value showing zero.Please provide any solution or code.

Thanks in Advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:10:31+00:00Added an answer on June 18, 2026 at 4:10 am

    After 2 days of struggle i have found the solution how to hide or remove the line series which contains zeros.I have four line series in that 4th line series contains zero’s i which i want to hide those zero values and i have done.

    before implementation

    enter image description here

    After implementation

    enter image description here

    code

                 //-------------------Styling------------------------           
            RadChart1.DefaultView.ChartLegend.Background = new SolidColorBrush(Color.FromArgb(255, 75, 119, 255));
    
            RadChart1.DefaultView.ChartArea.AxisY.StripLinesVisibility = Visibility.Collapsed;
            RadChart1.DefaultView.ChartArea.AxisY.MajorGridLinesVisibility = Visibility.Visible;
    
            RadChart1.DefaultView.ChartLegend.UseAutoGeneratedItems = true;
            RadChart1.DefaultView.ChartLegend.Header = "";
    
    
            RadChart1.DefaultView.ChartLegendPosition = Telerik.Windows.Controls.Dock.Bottom;
            RadChart1.DefaultView.ChartLegend.Foreground = new SolidColorBrush(Colors.White);
            RadChart1.DefaultView.ChartLegend.LegendItemStyle = new Style() { TargetType = typeof(ChartLegendItem) };
            RadChart1.DefaultView.ChartLegend.LegendItemStyle.Setters.Add(new Setter() { Property = Control.ForegroundProperty, Value = new SolidColorBrush(Colors.White) });
    
    
            ChartLegendItem ch1 = new ChartLegendItem() { Label = "FY10", Background = new SolidColorBrush(Colors.Blue), Foreground = new SolidColorBrush(Colors.White) };
            ChartLegendItem ch2 = new ChartLegendItem() { Label = "FY11", Background = new SolidColorBrush(Colors.Brown), Foreground = new SolidColorBrush(Colors.White) };
            ChartLegendItem ch3 = new ChartLegendItem() { Label = "FY12", Background = new SolidColorBrush(Colors.Green), Foreground = new SolidColorBrush(Colors.White) };
            ChartLegendItem ch4 = new ChartLegendItem() { Label = "FY13", Background = new SolidColorBrush(Colors.Black), Foreground = new SolidColorBrush(Colors.White) };
    
            ChartLegendItemCollection chC = new ChartLegendItemCollection();
            chC.Add(ch1);
            chC.Add(ch2);
            chC.Add(ch3);
            chC.Add(ch4);
    
            RadChart1.DefaultView.ChartLegend.UseAutoGeneratedItems = false;
            RadChart1.DefaultView.ChartLegend.Items.Clear();
            RadChart1.DefaultView.ChartLegend.Items.Add(chC[0]);
            RadChart1.DefaultView.ChartLegend.Items.Add(chC[1]);
            RadChart1.DefaultView.ChartLegend.Items.Add(chC[2]);
            RadChart1.DefaultView.ChartLegend.Items.Add(chC[3]);
    
            Style pathStyle1 = new Style(typeof(System.Windows.Shapes.Path));
            pathStyle1.Setters.Add(new Setter(Shape.StrokeProperty, new SolidColorBrush(Colors.Blue)));
            pathStyle1.Setters.Add(new Setter(Shape.StrokeThicknessProperty, 2));
    
            Style lineStyle1 = new Style(typeof(Telerik.Windows.Controls.Charting.LineSeries));
            lineStyle1.Setters.Add(new Setter(LineSeries.BorderLineStyleProperty, pathStyle1));
    
            Style pathStyle2 = new Style(typeof(System.Windows.Shapes.Path));
            //  pathStyle2.Setters.Add(new Setter(Shape.StrokeDashArrayProperty, "1"));
            pathStyle2.Setters.Add(new Setter(Shape.StrokeProperty, new SolidColorBrush(Colors.Brown)));
            pathStyle2.Setters.Add(new Setter(Shape.StrokeThicknessProperty, 2));
    
            Style lineStyle2 = new Style(typeof(Telerik.Windows.Controls.Charting.SelfDrawingSeries));
            lineStyle2.Setters.Add(new Setter(SelfDrawingSeries.BorderLineStyleProperty, pathStyle2));
    
            Style pathStyle3 = new Style(typeof(System.Windows.Shapes.Path));
            //  pathStyle3.Setters.Add(new Setter(Shape.StrokeDashArrayProperty, "1"));
            pathStyle3.Setters.Add(new Setter(Shape.StrokeProperty, new SolidColorBrush(Colors.Green)));
            pathStyle3.Setters.Add(new Setter(Shape.StrokeThicknessProperty, 2));
    
            Style lineStyle3 = new Style(typeof(Telerik.Windows.Controls.Charting.SelfDrawingSeries));
            lineStyle3.Setters.Add(new Setter(SelfDrawingSeries.BorderLineStyleProperty, pathStyle3));
    
    
            Style pathStyle4 = new Style(typeof(System.Windows.Shapes.Path));
            //pathStyle4.Setters.Add(new Setter(Shape.StrokeDashArrayProperty, "1"));
            pathStyle4.Setters.Add(new Setter(Shape.StrokeProperty, new SolidColorBrush(Colors.Black)));
            pathStyle4.Setters.Add(new Setter(Shape.StrokeThicknessProperty, 2));
    
            Style lineStyle4 = new Style(typeof(Telerik.Windows.Controls.Charting.SelfDrawingSeries));
            lineStyle4.Setters.Add(new Setter(SelfDrawingSeries.BorderLineStyleProperty, pathStyle4));
    
            DataSeries line1 = new DataSeries() { Definition = new LineSeriesDefinition() { ShowItemLabels = false, ShowPointMarks = false, SeriesStyle = lineStyle1 } };
            DataSeries line2 = new DataSeries() { Definition = new LineSeriesDefinition() { ShowItemLabels = false, ShowPointMarks = false, SeriesStyle = lineStyle2 } };
            DataSeries line3 = new DataSeries() { Definition = new LineSeriesDefinition() { ShowItemLabels = false, ShowPointMarks = false, SeriesStyle = lineStyle3 } };
            DataSeries line4 = new DataSeries() { Definition = new LineSeriesDefinition() { ShowItemLabels = false, ShowPointMarks = false, SeriesStyle = lineStyle4 } };
    
    
            //-------------------------Data Binding---------------------------
            List< WebService. RadChart1Data > objListAPS = new List<WebService.RadChart1Data>();
            objListAPS = (List< WebService. RadChart1Data >)e.Result.ToList();
    
            foreach (RadChart1Data obj in objListAPS)
            {
                line1.Add(new DataPoint(obj.Week, obj.BlueLine));
                line2.Add(new DataPoint(obj.Week, obj.RedLine));
                line3.Add(new DataPoint(obj.Week, obj.GreenLine));
                if (obj.BlackLine != 0)
                    line4.Add(new DataPoint(obj.Week, obj. BlackLine));
            }
    
            RadChart1.DefaultView.ChartArea.DataSeries.Add(line1);
            RadChart1.DefaultView.ChartArea.DataSeries.Add(line2);
            RadChart1.DefaultView.ChartArea.DataSeries.Add(line3);
            RadChart1.DefaultView.ChartArea.DataSeries.Add(line4);
    
            RadChart1.DefaultView.ChartArea.AxisX.LayoutMode =  Telerik.Windows.Controls.Charting.AxisLayoutMode.Inside;
    

    if any found this answer is useful please mark it as correct answer it may helpful to others.

    Thanks

    dinesh haraveer

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a text area in my form which accepts all possible characters from
I am using JSon response to parse title,date content and thumbnail images and place
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I want use html5's new tag to play a wav file (currently only supported

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.