C# - Multiple Chart Series In Chart Control?

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


Similar Messages:

AJAX :: Multiple Series Line Chart Control Using Control Toolkit

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

Charting - Ms Chart Multiple Series X Value Mismatch?

Sep 3, 2010

I'm currently developing a website that shows multiple charts that I build using data from SQL tables. I've used and followed Scott Mitchell's tutorial [URL] and K. Scott Allen's ChartBuilder class [URL] and all works well.

However when have two series that I want to show on the same Chart, if one set of data does not have all of the X values the other series does, the chart blindly puts all the data on, ignoring trying to match the X values of the other series, therefore mismatching the X values when the chart is shown.

I know that I can fiddle the data so that both sets of data have the same X values, however I'm trying to make the class handle anomalies in the data so that I don't have to worry too much about the data.

View 1 Replies

Vb.net - Chart Labels To Display At The Data Points On Multiple Series?

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

Forms Data Controls :: Adding Multiple Series Of Charts On A Same Chart Which Are At Different Location?

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

C# - Highlight One Column In Chart Control Series?

Jan 11, 2010

I'm going through the ASP.NET chart controls WebSamples project but I haven't found what I'm looking for yet. So basically if I had a standard bar chart with data such as below:

John - 68%
Fred - 75%
Mary - 32%
Anne - 88%

Displaying it in one series with names as the x axis and percentages as the y, is there anyway to change or highlight the bar colour of just one, so say all the bars in the series are blue but I want to programmatically change mary's bar colour to red. Is this possible?

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 :: .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

Web Forms :: How To Make Scatter Plot Chart With X Y Using Chart Control

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

C# - MS Chart Control Pie Chart: Remove Unwanted Padding

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

How To Create Multi Series Chart Dynamically

Mar 18, 2010

I want to create multi series asp.net chart in dynamically.I am new one for this concept.

View 1 Replies

SQL Reporting :: ReportViewer Chart With Two Y Series Group?

Jan 7, 2011

I am creating a column and line chart in the same chart using reportviewer 2008.

The chart got two y series 'Number of product order' as column chart and label on left side of chart (unit number count) and total value of orders as line chart with label on right side of chart (unit $ value). Month is on x axis. I am wondering whether it can be done in reportviewer.

View 5 Replies

SQL Reporting :: Two Series In Same Column Chart In SSRS 2008?

Jan 13, 2010

Is it possible to show the chart like the image in my attachement in Column Chart and in 100% Stacked Column Chart of SSRS 2008.

I like to show two series in same chart. Is it possible in SSRS 2008?

I provided the sample data to test it.

Select 'Fruits' as Category, 'Apple' as Item, 20 as Sales UNION
Select 'Fruits' as Category, 'Orange' as Item, 20 as Sales UNION
Select 'Snacks' as Category, 'Biscuits' as Item, 10 as Sales UNION
Select 'Snacks' as Category, 'Chips' as Item, 10 as Sales UNION
Select 'Snacks' as Category, 'Cakes' as Item, 40 as Sales

View 3 Replies

Chart: Final Series Getting Cut Off When Setting .AxisX.Maximum?

Dec 19, 2010

I'm trying to bind a data table like:

month value
5 345
10 1300
12 450

to an ASP.NET Chart control. My problem is that the data table only contain months that have values while in the chart i want to show the full month range from 1st to the 12th.

So i used :

Chart1.ChartAreas["ChartArea1"].AxisX.Minimum = 1;
Chart1.ChartAreas["ChartArea1"].AxisX.Maximum = 12;

But when i do this, a part of the final series gets cut off in the middle like this.

I can avoid this issue by making the maximum 13 but that would not be appropriate since i just need to show the months of the year.

View 2 Replies

VS 2008 Chart Series - Fill From Data Table

Jul 13, 2012

I am using Chart control to loop through and fill from GridView and it works fine.

Code:
myProductSeries.Points.AddXY(GridView1.HeaderRow.Cells(i).Text.ToString, GridView1.Rows(0).Cells(i).Text.ToString)

My question: How would I do that using a DataTable instead, is that possible. Does DataTable have a "Header" like GridView so do I fill the X value?

View 5 Replies

Web Forms :: Implement Multi-Series Line Chart

Dec 6, 2013

I want to create line chart that shows Daily and last Month result in it (line chart)

View 1 Replies

Web Forms :: How To Make Multi-Series Stacked Chart In C#

Apr 27, 2016

 I want to display line permanently in Y axis in stacked chart , limitation is 3000 and now i am displaring yearly value ,i want make two column for one year value display 1.Total 2.total sales of the all the mobile.

Code :

protected void Page_Load(object sender, EventArgs e) {
DataTable dt = new DataTable();
dt.Columns.AddRange(new DataColumn[] {
new DataColumn("Apple"),
new DataColumn("Nokia"),
new DataColumn("Samsung"),
new DataColumn("Sony"),

[code]...

View 1 Replies

Web Forms :: Multi-Series HTML5 Canvas Chart?

Jun 16, 2015

i have readed your post(html5 canvas chart using asp.net)

and now i want to create line chart of chart.js

View 1 Replies

Web Forms :: Create Multi Series Bar (column) Chart

May 7, 2015

How to make multi columns with iTextSharp or fusioncharp reports.

View 1 Replies

Forms Data Controls :: Displaying Chart With Broken Series

Jul 14, 2010

I am using the Chart control that is part of the newest version of ASP.NET. In this Chart, I have 3 Spline series. Each series consists of a nullable in array (int?[]). If the element in the array is a number, I wants it point plotted. However, in the case that the value is null, I do not want it plotted. Is there a way to do this? If so, how?

View 1 Replies

Forms Data Controls :: Missing Points In Chart Series?

Aug 30, 2010

so I have 3 series that are created from Cross Table Data Bind. Unfortunately some of the points are missing. Is there an algorithm I can use to cycle through the datapoints for each series and insert empty points to the correct spots so that my data is displayed correctly?

View 2 Replies







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