Questions tagged [mschart]

This tag refers to the System.Windows.Forms.DataVisualization.Charting and System.Web.ui.datavisualization.charting Namespaces, used to create controls for charting using the .NET framework.

This tag refers to the System.Windows.Forms.DataVisualization.Charting and System.Web.UI.DataVisualization.Charting Namespaces, used to create controls for charting using the .NET framework.

These namespaces have been available by default since version .NET Framework 4.0, and and have been available as an add-on available at no cost from Microsoft since .NET Framework 3.5 SP1. The download from Microsoft is called MSChart.exe. A very useful set of Sample code and demos is also available from microsoft.

1192 questions
9
votes
5 answers

ASP.NET with MS Chart disable the vertical line

I have a graph created with MS Chart like the following picture. As you can see the vertical lines are messed up with value of the top of each bar. alt text http://img46.imageshack.us/img46/3720/chartimgaxd.png Here's the mark-up for the graph: …
Tola
  • 2,401
  • 10
  • 36
  • 60
9
votes
3 answers

Creating multiple charts and the relation between Chart, Series, ChartArea

I have been generating charts using MSChart for some time now, but I have never created multiple charts within one chart object. Thinking about this task has revealed a gap in my knowledge. How I think about creating a chart Create Chart object Add…
Jeff
  • 2,283
  • 9
  • 32
  • 50
9
votes
2 answers

How to modify C# Chart control chartArea percentages

If I have a chart control with 2 chartAreas in it, the chart control by default puts the chartAreas on top of each other makes each area take 50% of the available size of the chart control. Is there a way to change the chartAreas' percent so that I…
Xantham
  • 1,829
  • 7
  • 24
  • 42
9
votes
3 answers

ASP.NET Chart: setting the fonts on X and Y axis

Consider an ASP.NET MVC controller method that builds an ASP.NET Chart image. public FileStreamResult MakeImg(IEnumerable stats) { Chart barchart = BarChart(400, 300); Series series1 = new Series("Series1"); …
p.campbell
  • 98,673
  • 67
  • 256
  • 322
9
votes
2 answers

Algorithm for scatter plot 'best-fit' line

I'm writing a small application in C# using MSChart control to do Scatter Plots of sets of X and Y data points. Some of these can be rather large (hundreds of data points). Wanted to ask if there's a 'standard' algorith for plotting a best-fit line…
veezi
  • 149
  • 1
  • 1
  • 9
9
votes
2 answers

Zooming & selection not working for C# chart with x-axis of the type Time

I'm using the following code to allow my parts of chart to be selected and zoomed: chart1.ChartAreas[0].CursorX.IsUserEnabled = true; chart1.ChartAreas[0].CursorX.IsUserSelectionEnabled = true; chart1.ChartAreas[0].AxisX.ScaleView.Zoomable =…
AntonioJunior
  • 919
  • 2
  • 15
  • 32
9
votes
4 answers

How to change Y axis Label font size?

I want to change the Y-axis label font size. I tried... AxisY LineColor="64, 64, 64, 64" LabelAutoFitMinFontSize="5" LabelStyle Font="NanumGothic, 5pt" and Chart1.ChartAreas["ChartArea1"].AxisX.LabelStyle.Font.Size = 5; but it doesn't work. Its…
Moonil Kim
  • 91
  • 1
  • 1
  • 3
9
votes
2 answers

showing all values in chart control Xaxis

I have a chart of a bunch of products, 35 in all. They scale up the X Axis. The chart plots fine but only 5 of the product names show and I need them all to show. I have enabled MinorTickMark to true so all the tick marks show but how do i get their…
dinotom
  • 4,990
  • 16
  • 71
  • 139
8
votes
1 answer

finding the value of the points in a chart

I have made a chart on my form. I want the user to see the value, x_value and y_value of each part in a balloon by clicking on that part. The ballon shoud disappear when the user moves the mouse. How can I do that?
Asma Good
  • 421
  • 3
  • 9
  • 19
8
votes
6 answers

ASP.NET Charting Control not working on production server

I have an application that relies heavily on charting and currently the charts will work in the ASP.Net Development Server, but when I try to publish out to my server (Win 2008 Server R2, IIS 7), the charts do not show up. Using Firebug, I can see…
Adam
  • 808
  • 6
  • 13
  • 23
8
votes
1 answer

DataPointCollection Clear performance

I have this 2 examples: 1 Example: Series seria = new Series("name"); for(int i = 0 ; i < 100000 ; i++) { seria.Points.Add(new DataPoint(i, i)); } seria.Points.Clear(); // - this line executes 7.10 seconds…
Zlobaton
  • 664
  • 1
  • 9
  • 21
8
votes
1 answer

Microsoft Chart Controls and X-Axis time scale format

I have a Microsoft Chart Controls within my winforms app. I currently play the X and y values within a loop. I also had the X-axis format set as ChartAreas[0].AxisX.LabelStyle.Format={"00:00:00"} This worked fine as a time format, however I noticed…
PleaseHelpMe
  • 81
  • 1
  • 1
  • 2
8
votes
1 answer

Chart Auto Scroll (Oscilloscope Effect)

My issue is that whenever I add a point to the chart, it compresses all the points. Instead, I want it to auto scroll. Here are two .gifs to explain what my issue is What I have now What I want to achieve The code I have right now is DateTime…
SunAwtCanvas
  • 1,261
  • 1
  • 13
  • 38
8
votes
3 answers

Aligning chart vertical axes between 2 chart objects

In my application I have 2 graphs, one above the other on the UI (as in closer to the top of the monitor). Both graphs' horizontal axes refer to the same range of time. Their vertical axes can be very different though, so I want to keep them as to…
Xantham
  • 1,829
  • 7
  • 24
  • 42
8
votes
2 answers

Adding an empty point to a charts with logarithmic scaling

I'm using C# charts to display/compare some data. I changed the graph scale to logarithmic (as my data points have huge differences) but since logarithmic scaling doesn't support zero values, I want to just add an empty point (or skip a data point)…
sj47sj
  • 185
  • 6
1 2
3
79 80