Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide the series name from showing in Charting Control

Tags:

c#

charts

Hi Iam using the Microsoft Charting controls to show a simple bar graph with a single series. However, when the chart is rendered I can see the name of the series along with a defualt color on the right. Is there any way to hide this label from showing up

like image 668
David Avatar asked Sep 13 '11 15:09

David


People also ask

How do you hide a series in Excel chart?

Click anywhere in your chart. next to the chart. On the Values tab, check or uncheck the series or categories you want to show or hide. Click Apply.

How do I hide the chart data table in Powerpoint?

Show or hide a data table. Select a chart and then select the plus sign to the top right. To show a data table, point to Data Table and select the arrow next to it, and then select a display option. To hide the data table, uncheck the Data Table option.


2 Answers

You can hide series name very easy. In chart properties bar follow Series -> (...). Set IsVisibleInLegend property to false.

like image 133
EdrenBaton Avatar answered Oct 27 '22 01:10

EdrenBaton


Adding labels above the bars:

    barchart.Series[0].IsValueShownAsLabel = true;

To remove labels above the bars:

    barchart.Series[0].IsValueShownAsLabel = false;
like image 26
lisna cp Avatar answered Oct 27 '22 03:10

lisna cp