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
5
votes
1 answer

How can I adjust the position of the x axis labels of a MS Chart in .NET?

I have a chart that I'm generating on the fly through a generic handler. I've got the data loaded and by default it looks like this: http://www.2gtech.com/downloads/ChartWithoutCrossing.png If I adjust the crossing I get the desired effect I'm…
2GDave
  • 996
  • 8
  • 18
5
votes
1 answer

How can i display multi series column chart in asp.net

In my web application, I need to display column chart data bind from data table i have 3 columns in that X-axis in my chart area i need to display col1 one side and column 2nd and i need to display different colors for series display legend also…
user6072031
5
votes
2 answers

MS Chart X Axis label repeated - showing multiple points for a single item [Range Bar]

I have created a RangeBar MS Chart control that binds with a datatable. This datatable is created based on the below list data. The problem is that x axis is showing multiple points for same item with different range. List MS Chart X axis…
Thomas Mathew
  • 1,151
  • 6
  • 15
  • 30
5
votes
4 answers

How add percentage value in piechart?

This is the code which i used to generate pie chart . I need to add percentage value to piechart series.Tries few ways but did not find solution.I have attached my working code output image and expected image . using System; using…
Eranga Perera
  • 908
  • 1
  • 11
  • 21
5
votes
2 answers

How to Dynamically Change the Rowsource of an Access Chart

I would like to know if there is any way I can set the rowsource property of a chart in my report at run time. I intend to have a chart in my report's group header section. The rowsource of this chart should be updated according to the group…
got2nosth
  • 578
  • 2
  • 8
  • 27
5
votes
2 answers

Force a gap between points on the x axis (MS .Net Chart Controls, Column Chart)

I have a column chart with multiple series each containing multiple points. Currently the columns all touch each other. I want to force a gap between each column. How can I achieve this? I found that applying a PointWidth…
grenade
  • 31,451
  • 23
  • 97
  • 126
5
votes
3 answers

MS Chart Control: Change the order of series in a legend

How do I change the order of series in a legend? My Line series is appearing before my StackedColumn series, but after my Column series. Chart c = new Chart(); ChartArea ca = c.ChartAreas.Add("main"); Legend lg = c.Legends.Add("mainLegend"); Series…
Jeff Meatball Yang
  • 37,839
  • 27
  • 91
  • 125
5
votes
2 answers

Display integers only in AxisY label?

I have a bar graph depicting number of people. When there's only a few people the Y-axis shows values: 0.5, 1, 1.5 etc ... It looks kinda silly. I can override the interval to 1 (AxisY.LabelStyle.Interval = 1), but if there's 100 people it doesn't…
noelicus
  • 14,468
  • 3
  • 92
  • 111
5
votes
1 answer

Text in MS Charts gets "blocky" when BackColor is transparent

When settings BackColor = Color.Transparent, this is the picture I end up with from Microsofts asp.net chart control http://login.competencetool.se/blockychart.bmp If I don't set any background(default is white), or set a color this is the…
Markus
  • 1,614
  • 1
  • 22
  • 32
5
votes
1 answer

How to draw text onto an empty MS Chart ChartArea?

I'm using Microsoft's Chart control to plot some series, but if I have no data, I want to display "No Data Series" on the area where the plot would be. Like this: similarpic…
Jeff Meatball Yang
  • 37,839
  • 27
  • 91
  • 125
5
votes
2 answers

How to add points to stacked serie in .NET Chart control?

I put a chart control in winforms application and then try to add some data to be displayed as stacked column chart. I can't get the second serie to display properly no matter how hard I'm trying. I isolated the issue by removing everything else and…
Episodex
  • 4,479
  • 3
  • 41
  • 58
5
votes
1 answer

Get Y value across .NET chart series from X value

using C# with .NET chart. I am trying to graph several waveforms, and I wish to move my mouse across the chart area, and have my tooltip display the Y value of each series in the chart at this X value location. | at xValue 12 | …
hansioux
  • 229
  • 2
  • 9
5
votes
1 answer

MSChart line graph with dashed style and large amount of data points

I'm trying to render a line graph using MSChart from C# with a dashed style to the line. I have no problems setting the style but I have a large amount of data. This causes the dashed rendering to go wrong as it seems to re-start the "dash"…
Goz
  • 61,365
  • 24
  • 124
  • 204
5
votes
1 answer

Moving labels off the pie chart

I am trying to move the labels OFF of the pie chart using the canned chart control from VS2010 (mvc, ef and asp.net) Here is my code to display the piechart. string xx = activePhysicianID; ArrayList xValue = new ArrayList(); ArrayList yValue =…
Tony Farrell
  • 69
  • 1
  • 4
5
votes
2 answers

MSChart: Pie Chart Label Overlapping issue

I have used MSChart Control in my one VB.NET project. I have decided to display data as shown in below table in to Pie chart. But labels are being overlapped on each other for getting rid of it I have tried “Smart Label” properties as shown…
Pritesh
  • 3,208
  • 9
  • 51
  • 70