Web Forms :: How To Use Chart Control
Jan 17, 2013
i work with Chart control in my project but when I tried to change my bar chart with the properties of the control, for example, add a new series nothing changes on the Chart at the same aspx code:
<asp:Chart ID="Chart1" runat="server" DataSourceID="LinqDataSource1"> <Series> <asp:Series Name="Series1"> </asp:Series> </Series> <ChartAreas> <asp:ChartArea Name="ChartArea1"> </asp:ChartArea> </ChartAreas> </asp:Chart>
View 1 Replies
Similar Messages:
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
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
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
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
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
Jul 19, 2010
I have X and Y data columns coming from database.
I have to show scatter plot chart with Linear, Exponential, Log, power using asp.net chart control.
How to do that?
View 2 Replies
Jun 7, 2010
im trying to create simple pie chart using the MS Chart controls. When my pie chart gets rendered in the browser i get padding around the pie chart that i cant get rid of. i would like the pie chart to sit up against the edge of the image with no padding or margin. in my code below the padding is highlighted in blue. i.e Chart1.BackColor = System.Drawing.Color.Blue;
<script type="text/C#" runat="server">
protected void Page_Load(object sender, EventArgs e)
{
//Set the chart type
Chart1.Series["Series1"].ChartType = SeriesChartType.Pie;
//add points
Chart1.Series["Series1"].Points.AddY(12);
Chart1.Series["Series1"].Points.AddY(45);
Chart1.Series["Series1"].Points.AddY(67);
//set back color of chart object
Chart1.BackColor = System.Drawing.Color.Blue;
//set back color of chart area
Chart1.ChartAreas["ChartArea1"].BackColor = System.Drawing.Color.Green;
}
</script>
<asp:Chart ID="Chart1" runat="server">
<Series>
<asp:Series Name="Series1" ChartType="Pie">
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1">
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
View 1 Replies
Jan 5, 2011
I am a novice programmer using ms chart control for my dashboard, I have a problem displaying chart series.
Here is my sample query & result
Sample Query: "SELECT Brand, sales, Manufacturer From TABLE"
Sample Result:
[code]....
How can I display BrandA for XValueMember & Salesvalue(10000) for YValueMembers as Series1 having a column chart type.
And to display BrandY & BrandZ for XValueMember ; Salesvalue for YValueMembers as Series2 having a line chart type.
I want my chart to have 2 Y-axis; Series1 for primary Y-axis & series2 for secondary Y-axis.
My problem here is how can I display BrandA in Series1 and BrandY,BrandZ in Series2 where the values are in the same field?
Or is it possible to set more than one data source for the chart control?
I've been working on this for two days but I wasn't able to get the desired result.
View 1 Replies
May 13, 2010
I am having a requirement, where I need to have a pie-chart, i need text around pie-chart , the text should be a hyperlink. Ex: we have 3 three fields A,B,C. A's ratio is 30%, B's ratio is 40%, c's ratio is 30% So pie chart gets divided into 3 parts, outside the graph , we should get the label A(in A's area only), when we point on , tool tip should say "A's ratio is 30 %'. I am working in .Net 3.5, VS 2008, using MS chart control(added explicitly by executing MSChart.exe.
View 1 Replies
Feb 22, 2010
using the control in web application.
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
Apr 21, 2010
Does anyone know how to explode a certain section of the piechart, which is part of microsoft chart controls?
View 5 Replies
Jul 13, 2010
Is it possible to drag n drop chart bar after control rander on page.or tell me if u konw some javascript control for this requirement.
View 1 Replies
Nov 25, 2010
Is there a way to add a legend to the chart it creates? I have created a line chart and by default it has created different colors for the different y - axis data.
I would like a legend on the side that displays what data goes with which line color.
View 1 Replies
Jan 21, 2010
I'm using MS Chart Controls, i want to add a feature to my charts, im primarily using Bar charts. I will have a large numnber of Data points on my chart for example 20 bars etc, i want to limit the display to 10 so if there is more than 10 it will only show the last 10 bars and display a scrolling bar to scroll back and fort to see all the charts. I have the code to do this, and it works extremely well, only problem is. the code is in VB.NET I've converted it to C# and I am not getting any errors on page_load but my code doesnt seem to affect my chart in anyway, basically it doesnt work. Just wondering could some one have a look at my code and give me any pointers where i may have gone wrong or if anyone has ever got something similair to this working in c#. Im going to post both the VB.NET and the C#,
VB CODE
[Code]....
C#
[Code]....
View 1 Replies
Oct 27, 2010
I am using a Chart Control, and I have 2 series. In my case 1 for month and 1 for year. The problem is when the chart control is displayed during run time for some reason the legend has 4 entries 1 says Mont, 1 says Year, 1 says Series 1, and 1 says series 2. My question is why are there 4 entries for the legend?
View 5 Replies
Apr 28, 2010
I am using the Chart control unbound and binding data to it at run time. It is a bar chart. When it is displayed after applying the data the X axis is drawn vertically and the y axis is drawn horizontally. I want the opposite but cannot find how to change the orientation.
View 6 Replies
Nov 29, 2010
I have a Bar Chart being driven by the user search criteria. Is it possible to make it so they can click on the bars, or label of bar, and have it taken them to another page to see more details?
View 1 Replies
May 10, 2012
I am using asp.net charts in my application, i have given the axis values from code behind. I added the on page load but the problem when i go directly to that page the graph will not appear but if i reload the same page it will appeare. this happens when i publish the application and try on IIS, but there is no problem before publish (while run in VS).
View 1 Replies
Feb 22, 2013
how to work with multiple series! for example: with 2 series and display the name of each series in the graph! like this example: URL...
View 1 Replies
Jun 29, 2010
I am working with a chart control and on the Y axis i have numbers that fall between millions and billions.
The numbers on the axis themselves are not formatted and as such can be difficult to read. I wanted to know if there was a way for me to format the value that appears on the axis itself to be coma seperated?
here's what the Y axis looks like
600000000
300000000
100000000
numbers are just hard to read. How do i format them with coma's or even add a label saying (Millions) and then displaying only 100, 300, 600 etc
View 5 Replies
Dec 16, 2010
I can't figure out how to get the legend to populate all the "strReason" and get the correct percents to show for each column. This is where I'm at right now.
[Code]....
View 1 Replies
Nov 19, 2010
I have a DevExpress WebChart Control that binds to a DataTable. The chart control renders fine from the DataTable until I try to import data from a details view(i think the chart control renders before the detailsview?).
Here is three renderings.
Chart 1. just rendering from the datatable
Chart 2 The sqldatasource gets its para. from the values of two label controls to render the detailsview. The detailsview renders fine
Chart 3, the problem comes in when I try to extract the values from the DetailsView to populate the Chart, I loose the value. I am assuming the the datatable is built before the rendering of the detailsview? Lost at this point.
ASPx Code with SQLDataSource1, 2, 3
[Code]....
VB Code Behind
[Code]....
View 2 Replies