.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

asp.net mvc 2 and mschart

Posted By:      Posted Date: September 30, 2010    Points: 0   Category :ASP.Net

Is there any working example of asp.net mvc with line chart of mschart? 



View Complete Post

More Related Resource Links

Printing MSCHART in my web application


Hello I have a web application with several MSChart and I need print all these chart but I dont know how. In some examples in the internet people using EditCopy() but it dont working for me because I cant found that method.

Need some help  Thanks

Print with MSCHART C# and VS 2008


Hello I have posted a similar question here and one good solution was created a pdf with my Charts and then print the pdf but I am needing print all my diferent chart without create other any documente like a pdf. Need some help Thanks

Old question(Hello I have a web application with several MSChart and I need print all these chart but I dont know how.  In some examples in the internet people using EditCopy() but it dont working for me because I cant found that method.)

MSChart - color only part of background

I'm trying to make a risk chart in ASP.NET using an MSChart control, and I only want to color the background for some of the quadrants.  The chart is 5 by 5, with 25 quadrants, and let's say I just want to color the upper-right quadrant red.  Can anyone tell me if that is possible?Thanks!Dave

More MSChart Samples...

Following MSDN link providing around 200+ MSChart samples free to download, both in Web and Windows projects.

VS 2010 - MsChart Area - DataBindCrossTable



I'm new to .NET MVC and I'm trying to use the MsChart Control.

I can display a chart easily by dragging the chart control in an ASPX view, set up a Datasource and choose the X and Y values for my series.

But, for my application, I need more than one series. After looking around, it looks like the DataBindCrossTable is the solution.

In Alex's blog (http://blogs.msdn.com/b/alexgor/archive/2009/02/21/data-binding-ms-chart-control.aspx), the code is:

chart1.DataBindCrossTab(myReader, "Name", "Year", "Sales", "Label=Commissions");

Elsewhere I've seen something like:


asp.net mvc 2 and MSCHART


I tried a lot of code on the web but none of them worked for MVC 2. Is there any one who can post a working example?


Series Color in MSCHART


Hello I have a Chart with diferente series when I added those series to my Chart the have diferente colors by default but my legend dont reconize these colors in the series and when I put the color to my serie manual then my legend reconized the colors.

The problem is that I have many series and a lot of time I dont know how many series are. I need somenthing for put diferent color to my series or something to fix it and the legend reconize the automatic color.

Series Name is different for all my new series.

//Add serie


//{If I tried something like this :newChart.Series[SeriesName].Color = Color.Green; All my series are green and my legend reconize those color for the differents series}


newChart.Legends[SeriesName].CustomItems.Add(newChart.Series[SeriesName].Color, ChartD.LegendLabels[i]);

mschart line chart x- labels

How do I force mschart to display all X- labels? Let's say we have 10
grid in X-, mschart only displays 5 of them. Even I specified the
Chart1.ChartAreas[0].AxisX.LabelStyle.Angle = -90; and specified chart
width to a large number, the mschart still didn't display all labels.

Any ideas?


MsChart area problem


Screen shot here: http://www.screencast.com/users/osalmon/folders/Jing/media/3a159bce-ba79-46e8-bf28-3515b9e1aa73

My area chart doesn't look like an area chart ... any idea why?


MSchart Xaxis Minimum and maximum



I'm doing chart running in application using C# VS2010 to make my Chart Xaxis move. when i place my code and run it, it show nothing. so i created another program using vb.net using the same code as C# yet my vb.net code allow me to make my Chart Xaxis moving. moving mean from 1pm to 1.10pm and so on.. which mean my minimum of the chart and maximum will keep moving.

--------C#---------Below code is in timer1

System.Data.DataSet temp_sec = null;
if (count != i)
dt = Convert.ToDateTime(temp_sec.Tables[0].Rows[i].ItemArray[0]);
deg = Convert.ToDouble(temp_sec.Tables[0].Rows[i].ItemArray[1]);
chart1.Series[0].Points.AddXY(dt.TimeOfDay.ToString(), deg);

if (Tick == 0)
double min, max;
min = dt.ToOADate();
chart1.ChartAreas[0].AxisX.Minimum = min;
max = dt.AddMinutes(Tock).ToOADate();
chart1.ChartAreas[0].AxisX.Maximum = max;

AppSettings and MSChart control


I have a web part that contains the MSChart  control.

I need to add appsettings elements and handlers. Is this supported in the web config for share point?


Is there an appsettings element?

MSchart (more series) slows down web application?


I am using MS Chart Control 3.5 and four series.  Each series has 500 points and I"m using the DataBindXY method to bind data from array.

If I draw two waveforms in MSChart, the postback controls on the webapplication are fast and response.  If I add a third, it slows down a bit.  If I add a fourth series, the applications response tremenedously drops. 

The chart is inside an updatepanel.  I've narrowed it down to the fact that it is caused by the series and also by points.  I can alleviate the situation when I set a lower axis minimum and maximum to reduce the range of the graph.  This will then plot maybe the first 75 points out of 500.  Then the problem goes away.

anyone know why MSChart severely lags the web application?  I've stepped through the drawchart function and it does not hang there.  I suppose it is caused by an internal object function of the MSChart object.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend