Forms Data Controls ::Pie Chart Display Wrong Percentages

Apr 19, 2010

I have use chart controller in my web application but it display wrong percentages this are the value:
TOTAL COST : 75000000000.00
LOYALTY DISCOUNT : 7500000000.00

When it display on pie chart it display TOTAL COST :90.91% and LOYALTY DISCOUNT=9.09%
but it should be 90% and 10 % how can I correct it
chtSavingBrekDown.Series["Series1"].Points.AddXY("Total Cost", totalCost);
chtSavingBrekDown.Series["Series1"].Points.AddXY("Discounted Dolers", discountValue);
chtSavingBrekDown.Series["Series1"].ChartType = SeriesChartType.Pie;// Set the Pie width
//chtSavingBrekDown.Series["Series1"]["PointWidth"] = "0.5";// Show data points labels
chtSavingBrekDown.Series["Series1"].IsVisibleInLegend = true;
chtSavingBrekDown.Series["Series1"].LegendText = "#AXISLABEL";
chtSavingBrekDown.Series["Series1"].Label = "#PERCENT";
chtSavingBrekDown.Series["Series1"]["BarLabelStyle"] = "Center";// Show chart as 3D
chtSavingBrekDown.ChartAreas["ChartArea1"].Area3DStyle.Enable3D = true;// Draw chart as 3D
chtSavingBrekDown.Series["Series1"]["DrawingStyle"] = "Cylinder";
chtSavingBrekDown.Series["Series1"].Points[1].Color = System.Drawing.Color.Yellow;
chtSavingBrekDown.Series["Series1"].Points[0].Color = System.Drawing.Color.Blue;
chtSavingBrekDown.Series["Series1"].Points[1]["Exploded"] = "true";
chtSavingBrekDown.Legends[0].Enabled = true;
chtSavingBrekDown.Titles[0].Text = "SAVING ESTIMATE BREAKDOWN";

View 1 Replies


Similar Messages:

Forms Data Controls :: Formatting Percentages In Gridview?

Mar 15, 2010

I've got a Gridview in which I have a column that shows percentages. I use the 0:P2 to format the percentage into readable format. However when the user 'edits' the particular row the percentage sign % still shows up in the textbox. When the user tries to save/update their change I throw an error on the % sign.

Is there a way to show the % only when the row isn't in an editable state?

[Code]....

View 2 Replies

Web Forms :: ListView List Controls Display Wrong Data The 3rd Time?

Aug 10, 2010

I have a ListView that populates and displays a user's data (via a profile system in VWD 2008) during Page_Load and also when I go from the EditItemTemplate to the ItemTemplate. Then when I go to the edit screen again, my DropDownList and RadioButtonList controls display the first items in the corresponding tables instead of the correct profile values. I don't understand why the controls populate correctly the first and second times but not on the third time (that's right, the third time is NOT a charm).

ItemTemplate:

[Code]....

EditItemTemplate:

[Code]....

[Code]....

View 2 Replies

Forms Data Controls :: How To Display Bar Chart

Sep 27, 2010

I am new to asp.net. I am suppose to continue a project. The previous person has created a line chart and I have to create a bar chart. However I do not know how to create a bar chart. Could u email me for the code as I realise that I can't upload the files.

View 5 Replies

Forms Data Controls :: MS Chart Display AxisY Value

Jul 18, 2010

I have 2 MS Charts(OriginalChart, encryptedChart) which are working well. I spent hrs trying to set these charts so that they display the same AxisY value. Example, OriginalChart displaying max AxisY value 50 (this value may change depends on the data), I need the encryptedChart to display max AxisY value 50 (regardless of its data) as well, This would allow user to compare the differences in these chart more easily. Currently, my encryptedChart is showing 5 to 10 for the AxisY value. I tried most of the possibility to set below but no luck. Research on this also not much useful info (or I don't understand them.)

"encryptedChart.ChartAreas(0).AxisY.ScaleView.... = OriginalChart.ChartAreas(0).AxisY.ScaleView....."
Below's my HTML code fyi.
[Code]....

View 1 Replies

Forms Data Controls :: How To Display Null / Zero Value In Pie Chart

May 28, 2010

I am using Mschart in that I want to display null value or zero value in pie chart. How to display that.

View 2 Replies

Forms Data Controls :: MS Chart Does Not Display All Fields Y

Jan 12, 2011

When I try to generate a StackedBar char, some Y fields are not displaying because of space. Example with following chart
Ex :columns in DataSource : 2,4,6,8,10
Columns displayed on chart : 2,6,10

View 2 Replies

State Management :: Data Being Saved To Wrong Table In Wrong Instance Of Sqlserver Of Wrong Database?

Aug 1, 2010

I have a weird thing happening. I have two identical databases installed on one virtual machine but under two different instances of SQLServer. For some reason, periodically when saving from one it will save to the other instead. Using debug, I have verified that the connection string is correct and when the item saves, it still saves to the wrong database.I use session variable, and am of the belief that it might have something to do with it...and t hat when I go from one to the other it is still getting the connection string form the other for some reason.To make sure that it isn't a problem, I make sure that I completely close out one database before opening the other in a new IE window.I assume that when I completely close out an internet explorer window that it abandons all session states. Is that true?

View 7 Replies

ListView Controls Display Wrong Data The 3rd Time?

Aug 11, 2010

I have a ListView that populates and displays a user's data (via a profile system in VWD 2008) during Page_Load and also when I go from the EditItemTemplate to the ItemTemplate.

When I go to the edit screen again, my DropDownList and RadioButtonList controls display the first items in the corresponding tables instead of the correct profile values.

I don't understand why the controls populate correctly the first and second times but not on the third time (that's right, the third time is NOT a charm).

[Code]....

View 2 Replies

Forms Data Controls :: Chart Label Display (Three Columns)

Feb 7, 2011

I am using asp:chart control in my 3.5 application. My dataset have three columns i.e. Subject, Score, testDate. I am drawing the chart like this,
[Code]....
And my chart is displaying like this. And what I want is, the third column testDate should be displayed on the top of the series as follows.

View 1 Replies

Forms Data Controls :: Chart Label Display (Percentage Of Available Time)

Jul 12, 2010

I have a chart to display the percentage of available time for a machine, but it won't display all the labels. It will only display a select few, spread out evenly apart but I need it to show ALL of them. Here is how it's set up, however, I don't know what I would change in order for it to display all labels:
[Code]....

View 1 Replies

Forms Data Controls :: Display Legends Of Chart In Tabular Form

Oct 13, 2010

I am working on charts with ms chart 3.5 control my question is I have to display legends of pie charts in tabular form. Which will contain the color used for different points and x values and y values. I managed to show the colors and x values but not able to show the y values. I am giving the code also. Example of x and y values are:
xvalues- InCorrect YValue- 5
xvalues- Correct YValue- 10
xvalues- UnAttempted YValue- 15

Here is the code used to bind legend values.----
LegendCellColumn firstColumn = new LegendCellColumn();
firstColumn.ColumnType = LegendCellColumnType.SeriesSymbol;
firstColumn.HeaderText = "Color";
firstColumn.HeaderBackColor = Color.WhiteSmoke;
Chart1.Legends["Default"].CellColumns.Add(firstColumn);
// Add second cell column
LegendCellColumn secondColumn = new LegendCellColumn();
secondColumn.ColumnType = LegendCellColumnType.Text;
secondColumn.HeaderText = "Name";
secondColumn.Text = "#LEGENDTEXT";
secondColumn.HeaderBackColor = Color.White;
secondColumn.Alignment = System.Drawing.ContentAlignment.MiddleLeft;
Chart1.Legends["Default"].CellColumns.Add(secondColumn);
// Add header separator of type line
Chart1.Legends["Default"].HeaderSeparator = LegendSeparatorStyle.Line;
Chart1.Legends["Default"].HeaderSeparatorColor = Color.FromArgb(64, 64, 64, 64);
// Add item column separator of type line
Chart1.Legends["Default"].ItemColumnSeparator = LegendSeparatorStyle.Line;
Chart1.Legends["Default"].ItemColumnSeparatorColor = Color.FromArgb(64, 64, 64, 64);
// Set Min cell column attributes
LegendCellColumn minColumn = new LegendCellColumn();
minColumn.Alignment = System.Drawing.ContentAlignment.MiddleLeft;
minColumn.Text ="#TOTAL{N1}";

I want to show the individual value of each data point is there any idea how to show the Yvalue of each datapoints
minColumn.HeaderText = "Questions";
minColumn.Name = "Questions";
minColumn.HeaderBackColor = Color.WhiteSmoke;
Chart1.Legends["Default"].CellColumns.Add(minColumn);

View 1 Replies

Forms Data Controls :: Using Dot Net Chart Control Last Column Of Chart Is Not Completely Appearing?

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

Forms Data Controls :: How To Freeze The X Axis Of The Chart Control In Ms Chart

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

Forms Data Controls :: MS Bar Chart.How To Reload Ms Bar Chart On Selecting A Value From A Dropdownlist

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

Forms Data Controls :: .net 4 Chart Control - Hide Labels In Pie Chart?

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

Forms Data Controls :: Pie Chart Size In Charting / Using MS Chart Control (3.5)?

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

Forms Data Controls :: Creating Stacked Bar Chart From VS2010 Chart Control (Documentation)

Nov 17, 2010

i'm trying to create a stacked bar chart on a vb web form using vs2010.My data source returns:

Error in Functionality Awaiting on Supplier

1IMT IssuesmActive6

IMT Issues,Awaiting on Supplier

2,IMT Issues,Awaiting on User 4

IMT Issues Closed 120

Login / Password Active

But I can't get this into a stacked chart. I know I must have to do quite a bit of work declaring what the series are and soforth, or having a different dataset but can't find any documentation on it.A link to some documentation or an example of a stacked chart from an sql datasource would be much appreciated.

View 1 Replies

Forms Data Controls :: Chart Control Tooltip On Pie Chart Not Updating On Partial Postback?

May 21, 2010

I started using the awesome chart controls with my asp.net apps recently and so far they've been nothing short of breath taking. Right now I have a weird problem, on the first load of my page, the chart control appears correctly and the tooltip is correct, however, when I update it with new data, the chart displays correctly, but the tooltips are for the previous set of data.

I hope this makes sense. The first time I load the chart, the pie chart segments and tooltips are correct, after a partial postback (to get the new data), the pie chart segments are correct but the tooltips are for the previous data set.

Basically once the tooltips are set the first time, they can't be updated after that without a full page postback.

Here's how I set the tooltip:

[Code]....

Anyone else noticed this behaviour and have a work around?

Currently my only workaround is to check for a partial postback and not render the tooltip, which I'd rather not do as the tooltip display actual statistical data as opposed to the pie itself (which uses percentages).

View 2 Replies

Data Controls :: Display Monthly Sales Report Using Pie Chart?

May 7, 2015

I have a table where I have

Amount paid, payment date

I want to write a query which will fetch the total amount of sales for a month based on the payment date.

And i want to represent the result in a pie chart  like january(3000),february(90000),march(20000) etc.

View 1 Replies

Data Controls :: Display And Bind AJAX Bar Chart Inside GridView?

Mar 22, 2014

how to display barchart in gridview of one column depending on that cell value

View 1 Replies

Forms Data Controls :: Chart - Display X Axis And Y Axis Values As Sum?

Mar 30, 2011

Iam having simple chart.

Which is displaying X and Y values.

Iam using SqlDataSource control to Bind data from database.

Now, How to display Sum of X values on top of chart ?

View 1 Replies

ADO.NET :: Data Saving To Wrong Database On Wrong Instance Of Sqlserver

Aug 1, 2010

I have a very weird thing happening. I have two databases that have exactly the same tables but different database names on the same virtual machine, but in different instances of SQL Server. For some reason, when using one of them, it will save to the other. In debug, looking at my connection string..I have verified that it is correct, yet when I allow the save, I look in the table and it isn't there, it is in the other database that is in a table with a completely different name and in a different instance of SQL Server.

View 1 Replies

Web Forms :: Picking Random Items From A List Based On Percentages

Jun 10, 2010

I am trying to make a way so that I can have a group with items in it, each one of the items (which is an object in a list) having a double type value, the total of all the items in the group is 100 when you add up all their properties. The purpose of this is that there can be random selection of the items.

for example:

item 1 percent property: 25.0
item 2 percent property: 25.0
item 3 percent property: 25.0
item 4 percent property: 25.0

When a request comes in, I need to be able to pick 1 of these items at the rate of 25% so that after a while (more and more requests) that each of these gets very close to 25%. I have tried looking at random numbers but pulling a number back seems useless in this case because for example if a random number retrieved was the number 5.4, how would I send it to an item? I cannot keep a history of the item requests so that I can factor that in. I need to be able to pick a random number and over time have each of these 4 items be selected an equal amount of times, the percentages and amount of items is going to change constantly but the sum of all the percent properties within a group is 100%. What is the best way to accomplish this in C# with a web form?

View 2 Replies

Display A Message If MS Chart Control Has No Data?

Dec 15, 2010

Is there a way to display a "default" message on a MS Chart Control if there is no data to chart?

I have a chart, with some controls that allow the user to pick various date ranges. If there is no data to be charted in that date range, it currently just displays nothing (or at least it shows the legend, and background, but that's it.)

I want there to be a message saying "no data for this period" or something instead.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved