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
3
votes
3 answers

System.Web.UI.DataVisualization.Charting.Grid exists twice in GAC

I've upgraded a web application from .NET 3.5 to .NET 4, and I get this exception when browsing to a page that uses the Chart control: The type 'System.Web.UI.DataVisualization.Charting.Grid' exists in both…
hmqcnoesy
  • 4,165
  • 3
  • 31
  • 47
3
votes
1 answer

150K rows for scatter plot graph loading forever?

I have 150K records of X and Y columns and I am trying to draw a chart for FinanicalFormula. It is taking time to create chart for ever. It is not throwing error also. Chart1.DataSource = dtChart ' Data bind to the selected data source …
James123
  • 11,184
  • 66
  • 189
  • 343
3
votes
1 answer

Multiple MS Charts on the same page use the same image map

I'm using the Microsoft Chart control to put a couple of charts on a web page. If you render 2 charts, the resulting HTML is something like this (the table is mine, the img and map are from the MS Chart):
gfrizzle
  • 12,419
  • 19
  • 78
  • 104
3
votes
0 answers

C# .net chart control catching error when unsuitable series is used

I have populated a combobox with a SeriesChartType list. This allows the user to select which chart type the want to see. This works well. However, when there is more than one series, or if there are a different number of datapoints some chart…
Kezzla
  • 189
  • 1
  • 8
3
votes
1 answer

Chart set (0,0) in the middle of the chart

I am trying to move Main X and Y axes to the point of (0,0), like: I tried to add 4 lines: (-10,0) to (10,0) and (0-10) to (0,10) Series ttt = new Series("") { ChartType = SeriesChartType.Line, Color = Color.Yellow, BorderWidth = 5, …
user5742600
  • 33
  • 1
  • 7
3
votes
1 answer

Set marker on MSChart at specific X-Value

Here is the code that generates my chart: System.Web.UI.DataVisualization.Charting.Chart Chart2 = new System.Web.UI.DataVisualization.Charting.Chart(); Chart2.Width = 350; Chart2.Height = 350; …
slandau
  • 23,528
  • 42
  • 122
  • 184
3
votes
1 answer

How can I plot more than 50,000 values in a scatter chart, saving computer resource?

I'm using Visual Studio 2017 and am trying to make a program that shows real-time values in a scatter chart, using C# and winform. With the source code below, I was able to make it show real-time values, whenever an event occurs and it gets a new…
maynull
  • 1,936
  • 4
  • 26
  • 46
3
votes
2 answers

Unexpected Behavior from .Net Charts

I am trying to create .Net Chart (Windows.Forms) and export it to a .jpeg file. Below is the code for it public void ExportRouteGraphToJpeg(string nameOfChart, int xMax, int yMax, int xMin, int yMin ) { var chartForExport = new Chart(); …
Abhishek Kumar
  • 342
  • 5
  • 22
3
votes
1 answer

Chart control width with many series

I have this chart with some series in legend and this chart is docking fill in panel. The legend has these properties: chart1.Legends.Add(seriesName); chart1.Legends[0].Docking = Docking.Bottom; chart1.Legends[0].TableStyle =…
GoodFellas
  • 31
  • 6
3
votes
1 answer

How to align two (or more) charts in size, scroll and grid

I have three signals (volgate, current, and energy) referred to the same period. I print data on two graphs: one with voltage (blue) and current (red) and the other with only energy (orange). They are two different graphs, but in practice, they…
GiPi
  • 67
  • 1
  • 9
3
votes
1 answer

C#: How To Crosshatch A Bar In An ASP.Net Bar Chart

I have an asp.net bar chart that I'm trying to add cross hatching to one of the bars. I cannot figure out how to do it. I want to crosshatch the 4th bar (from the left) in the chart. I tried the following code below but it doesn't…
Andy
  • 383
  • 1
  • 6
  • 23
3
votes
2 answers

C# Read string from CSV file and plot line graph

Currently, I am able to read data from multiple CSV file and plot line graph using windows form application. However, now I need to plot a line graph based on a CSV file's section name (3rd column of csv file). Modified/New CSV file: (Added the…
Mervin
  • 79
  • 2
  • 9
3
votes
2 answers

Let column charts overlap in Chart Control

I have following issue: I need to show multiple columns in a chart control (about seven series in one chart area). Now when I have a chart of type "Column" all seven columns get shown side by side. What I want to do is to overlap them. Is this…
Canox
  • 557
  • 1
  • 7
  • 20
3
votes
0 answers

How to display only point labels that fit within the bar of a RangeBar chart in MSChart

I have a RangeBar chart type. I wish to display a label on the bars, but only if the label text does not exceed the boundries of the bar itself. My problem can be seen in the image below - Labels of small bars are written on-top of other labels…
Mr. Blonde
  • 711
  • 2
  • 12
  • 27
3
votes
1 answer

How to set different Label in Legend in Pie Chart

I'm currently doing a window form that have Pie Chart inside.I need to show the percentage of the pie. But now I have eencountered a problem : When I add this #PERCENT{P2} to series the Pie Chart will show like this: But if I remove it, the Pie…
yong.k
  • 678
  • 1
  • 8
  • 22