C# - Hide Labels In Pie Charts (MS Chart For .Net)
Jan 27, 2010
I can't seem to find the property that controls visibility of labels in pie charts. I need to turn the labels off as the information is available in the legend.
I tried setting the series labels to nothing Chart1.Series[i].Label = string.Empty; but the labels seem to show up anyway.
View 4 Replies
Similar Messages:
Apr 28, 2010
Am I going mad/blind? Probably a combination of the two.
How does one go about removing the data labels from a pie chart with the new chart control in .net 4?
I can get these to display as tooltips absolutely fine, but ultiamtely I'd like the labels not to be present as it looks rather busy.
I've searched previous answers and seen code behind resolutions but surely there must be some sort of code infront option to turn these labels off?
View 2 Replies
Dec 22, 2010
I'm trying to put Google's BarChart and PieChart both the client side version, and i'm experiencing some problems with the labels over the pie and the labels on the left of the vertical axis (of the bar chart).
I checked the code a lot of times and it seems to be like that you can see in the examples.I've tried the same page on Firefox and Chrome and it shows the labels without problems.If i try the examples on IE8 the labels are shown but not in my page.Sincerely I've not any idea where to start to fix this thing.
View 1 Replies
Feb 3, 2014
I am working in .net 4.5 and implementing charting in my asp.net page. everything works fine. Here are my sample values:
X-Axis : DEC, NOV,OCT,SEP, AUG,JUL
Y-axis value : 0,93,99,0,0,0
View 1 Replies
Jun 6, 2010
I'm trying to combine two charts ( Column & Spline ) using MS Charts 3.5. When i run the page the second series of the Spline chart is not visble/working.
Here is the code
string connectionString2 = "server='myserver'; user id='testuser'; password= est'; database='DBs'";
System.Data.SqlClient.SqlConnection sqlConnection2 = new System.Data.SqlClient.SqlConnection(connectionString2);
string queryString2 = "SELECT TOP 10 NAME, VOLUME, CLOSE FROM Com WHERE NAME IN ('LEAD')";
[Code].....
View 2 Replies
Dec 9, 2010
I have a web application develped using VS2008 and the Dundas Charts add-on. I understand that Dundas Charts is no longer supported by Dundas and now belongs to Microsoft. I found what appear to be the chart controls and VS integration downloads:Microsoft Chart Control for Microsoft .NET Framework 3.5Microsoft Chart Controls Add-on for Microsoft Visual Studio 2008What I do not know is what happens if I install these downloads. Does my original Dundas software cease to work? Does the new MS Chart software work like the Dundas version did and is fully compatible with my existing charts? Do I need to rebuild my web sites using the MS Chart integrated software? Does the old Dundas dll file in the in folder have to be replaced or will it work as is? I have not found anything that describes how to install and use this software and the functional differences from Dundas to Microsoft ownership.
View 1 Replies
Dec 19, 2010
I have a dataset that is binded to piechart control the dataset has 2 columns the "country name " as X and "population" As Y
I have 2 problems the first one I just want to display both X and corresponding Y Values
I try this code Chart1.Series[0].SetCustomProperty("PieLabelStyle", "outside"); it just display country name ONLY
the second problem I want the values to be distributed along 360C of the pie chart in other words I have 30 countries and want to be displayed and fit the circular pie
View 3 Replies
Mar 30, 2010
I have been playing around with the new ms chart controls 3.5 to create reports on web traffic. It looks like a pretty powerful extension, however, I am having trouble drawing a funnel chart the way I want.
I am trying to mirror one of the samples posted on ms's website but no luck. I have a datatable with two columns, first the labels, second the data like so.
page hits
default.aspx 9
products.aspx 7
contactus.aspx 2
I am able to populate the funnel correctly in that the largest part of the graph is default. However, when I put the labels on it only shows the data values, not the page name. Without the label showing property the graph is useless. I know it must work somehow because the sample chart displays product names as labels and not the datapoints.
View 8 Replies
Mar 11, 2010
i am using .net framework 3.5 and visual studio 2008, i want to develope an application
for graphs and charts, so charting control 3.5 i am using.
i want to add multiple series of charts on a same chart which are at different location.How can i do it?
View 1 Replies
Jan 31, 2011
I want to programmatically turn on/off the labels on an Chart Control.
The chart is for a load of stats, by person, and I want to be able to anonymise it by removing the labels.
Can this be done from the Chart Control, or do I need to do it at the underlying data-table?
View 1 Replies
Feb 22, 2011
I have a RangeBar chart that will show different schedules and how they overlap. I can't seem to get AxisY (which is really AxisX, but they switch when you use a RangeBar for some reason) to display the hour. It displays a gridline for every hour, but the label is the date, which is not helpful at all.
I tried
asChart.ChartAreas["ChartArea1"].AxisY.CustomLabels.Add(0, DateTimeIntervalType.Hours, string.Format("{0:H}"));
but I get the error: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
View 1 Replies
Oct 6, 2010
I'm trying to create a very simple Column chart. There are 10 items in X axis, but chart shows only 3 of their labels. For clarification, I'm trying to show Product sales count in chart. There are 10 products. In X axis, chart shows 10 products but, only 3 of them has a label for product name. It should be a setting for this, bu I couldn't find it.
View 2 Replies
Mar 9, 2011
I have an ASP Chart (v4) which displays the data I need perfectly. I want it to show labels at the top of the data points and I am having some difficulty with it.
Here is my code that works for both series but does not display the labels:
[code]....
View 1 Replies
Jan 12, 2011
I am wondering if I am able to align y-labels at chart if I am using MSchart control. I searched at google, but I got feeling it is not possible to align them, just title of y-axis.
Here snip of the chart if my question is not clear enough: [URL]
View 2 Replies
Jun 30, 2012
we are able to export GridView, Chart, Panel to PDF but by doing this we can only export 1 control. We ahve requirement of having multiple chart controls on one page (like Report dashboard) with some data in gridview etc. How can we export full page to PDF?
View 1 Replies
Jun 30, 2010
I want to show and hide a label and its control. I can do this in c# in the code behind. But, I can only show/hide the control. Any ideas?
<asp:label AssociatedControlID="thisLabel" runat="server">This:
<asp:label ID="thisLabel" CssClass="ascontrol" runat="server" />
</asp:label>
I want to be able to show and hide that whole thing depending on what user gets to the page. I just need to know how to show/ hide that whole thing in the c# code behind...cannot seem to get the visibility of the wrapper label to go away.
View 3 Replies
Aug 13, 2010
I am trying to create a chart with three x-axis labels where the chart series x-value member is a date. That is, each data point is a day returned from a SQL Server table. The first label row is to be the day component, the second label row the month name component and the third label row the year. The returned dataset can be from any time period and of varying length. It needs to look like below so each day can be seen but the bigger picture is also shown.
x-axis label(0): 26 27 28 29 30 31 1 2 3 4 5 6
x-axis label(1): March April
x-axis label(2): 2010
I can set the first row using the design time properties as such
[Code]....
I am not sure how to create the next to custom labels at runtime. I have gone through the options using Add(Double, DateTimeIntervalType, Double, Double, String, Int32, LabelMarkStyle) and Add(Double, DateTimeIntervalType, String, Int32, LabelMarkStyle) but I just cannot get them to appear in the chart label.
I tried the other method
[Code]....
however could not find how to set the DateTimeIntervalType on the CustomLabel object.
There was nothing in the ChartSamples and I am not even sure if it can be done.
View 2 Replies
Jan 12, 2011
Has anyone had any success creating GANTT charts using MS chart controls?
View 1 Replies
Jan 18, 2010
I've created a stacked bar chart - so there are multiple series in a line. The series display the value, but when the value is 0 I don't want the value to be displayed because if there are multiple 0 value is starts to look like 0|0|0|0 i.e. not very nice on the eyes. I'm wondering if there is a way i can say if the value of the series is 0 dont display the value.
View 1 Replies
Dec 14, 2010
i am using asp.net chart control, problem i am facing is that it automatically generates values in Y-Axis.
As you can see in image , values 0, 3 and 4 are automatically generated. how to hide these automatic generated values.
View 1 Replies
Oct 25, 2010
I have a page with a datalist on it, with an image button and some labels in the datalist item(1,2)..
I have some more labels on the page which get their values from querystrings(17,18)..
I have more labels which are empty (34,35)
On image click in the datalist item, i want the labels from that item to add with the labels outside of the datalist, and the last lot of labels to show this number..
Currently it doesnt do this. Here is my code:
protected void Page_Load(object sender, EventArgs e)
{
Label17.Text = Request["b1"];
Label18.Text = Request["b2"];
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
DataListItem item = ((Control)sender).NamingContainer as DataListItem;
Label Label1 = item.FindControl("Label1") as Label;
Label Label2 = item.FindControl("Label2") as Label;
Label34.Text = (int.Parse(Label1.Text) + int.Parse(Label17.Text)).ToString();
Label35.Text = (int.Parse(Label2.Text) + int.Parse(Label18.Text)).ToString();
View 3 Replies
Jul 9, 2010
I have an issue in using dot net chart control. In chart last column is not completely shown which give bad appearance and on right side of chart it looks like TickMark are enabled. I set MajorTickMark of AxisY2 disabled but still tick marks on right side.
View 2 Replies
Feb 24, 2010
how to freeze the x axis of the chart control in ms chart? need to use because data displayed at large amount that is scrollable.
View 1 Replies
Jan 28, 2011
I have a drop downlist,and next to it there is an MS bar chart.i want to change the datate of the MS chart ,once the user selects another year from the dropdownlist.
When the page loads ,the chart displays the default year(2011) and it works.The problem is that is does not change the data when you select another year from the dropdownlist.
View 1 Replies
Aug 12, 2010
I am using MS Chart control (3.5), and have a requirement where I need to display 2 pie charts. The datapoints for the pie charts is set programatically. My doubts are as follows:
1. Can I display both the pie charts in a single chart control and area, or do I have to use two controls? (Currently I am using two controls)
2. How can I maintain the same size for both the pie charts? This is my main concern, since the pie sizes keep changing, depending on the number of datapoints. I tried using custom properties like "MinimumRelativePieSize", but it's not working.
View 1 Replies