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

drawing line graph with primary and secondary y axis c#

I have been researching ways of drawing charts in c#. I have a specific requirement of drawing a chart with a y axis and x axis and a seconday y axis.I have tried using excel Interop but have not found a solution.I have started working on MSChart…
mayukh
  • 129
  • 1
  • 2
  • 9
7
votes
7 answers

How to hide datapoint label when value is zero in a StackedBar

I have a StackedBar which shows 5 values per bar, with the data value displayed in the middle of each block. So far, so good. However, when the value is zero, the value is still being displayed, which is messy when there are a lot of zeroes. I would…
Little JB
  • 153
  • 2
  • 2
  • 8
7
votes
2 answers

How to set values in x axis MSChart using C#

I have these XY values: Series S1 = new Series() S1.Points.AddXY(9, 25); S1.Points.AddXY(10, 35); S1.Points.AddXY(11, 15); chart1.Series.Add(S1); but I need to show the X values in the graph like this: X="9-10" X="10-11" X="11-12" How can I…
Somebody
  • 2,667
  • 14
  • 60
  • 100
7
votes
4 answers

C# Setting FontDialog to only display TrueType fonts

This question has been asked in practically every forum, including here but there are no acceptable answers anywhere that I can find. I'm beginning to think that there is actually no solution and I just have to wrap my code in a try/catch block and…
Ozzah
  • 10,631
  • 16
  • 77
  • 116
7
votes
4 answers

Comparison between MS Charts and ZedGraph?

Question: Anybody has experience with ZedGraph / MS-Chart controls ? I am thinking about which to use ? Basically, I have a tendency to ZedGraph, because I need .NET framework 2.0 while MS-Chart is 3.5 (and I don't know how well a 3.5 assembly…
Stefan Steiger
  • 78,642
  • 66
  • 377
  • 442
7
votes
1 answer

How to set chart type to pie

When I do it without putting chart type is working fine but when I set it to pie its not working correct. It put all series name as Point 1 the pie is only 1 blue piece (one circle) and it show only first point (Value). foreach (var tag in tags) { …
a1204773
  • 6,923
  • 20
  • 64
  • 94
7
votes
1 answer

Interpolation implementation in MS Chart

I require to implement Interpolation and Extrapolation in Ms-Chart in Windows Application. For Interpolation I am using "MathNet" Library. but still I am unaware to implement this. I have try to implement the Interpolation as below. using…
Nitin Vijay
  • 1,414
  • 12
  • 28
6
votes
2 answers

MS Chart: How can you change the color of each label on the Axis of a Bar Chart?

I have a bar chart which shows different categories on the Y axis. I can change the color of all of them on the axis at the same time by using: chart.ChartAreas["MyChart"].AxisY.LabelStyle.ForeColor = "Red"; However it doesn't allow me to set the…
MaYaN
  • 6,683
  • 12
  • 57
  • 109
6
votes
4 answers

MSChart: Label format

How can I format chart label? I need to see only 2 digits after point. I try chart.ChartAreas.First().AxisY.LabelStyle.Format = "#.##"; and 0.00 Also I try to set Series[0].LabelFormat = "0.00" and #.## and without success. What is wrong?
Dumitru
  • 833
  • 3
  • 12
  • 26
6
votes
3 answers

Microsoft chart stacked column chart has gaps

I'm using the Chart library in .Net 4.0 to create a stacked column chart with several series. My goal is a histogram that shows the cumulative number of actions (report completions) per day across several series (teachers). There is often missing…
Carl Raymond
  • 4,429
  • 2
  • 25
  • 39
6
votes
1 answer

MS Chart Control :Two X Axis, one for hours, another for days (or mixing both)

Is is possible to have an X Axis display hours (HH:MM) and another (or the same) displaying Days (YYYY-MM-DD) at different intervals so it look like | | | | | 09:00                     …
Mehdi LAMRANI
  • 11,289
  • 14
  • 88
  • 130
6
votes
2 answers

MS chart candlestick How to set tail colors

I am currently developing a candlestick chart with mschart in visual C#. I have now created two charts and created the charts as follows Question 1. View the Candlestick Chart at the top. I would like to apply the tail color of each rod as red or…
Geongi.IM
  • 113
  • 3
  • 5
6
votes
1 answer

Where should temp files created by the MS Chart control go?

The default location: is fine for development, but not so good for deploying on IIS. I found a forum post that mentioned you could drop the path altogether,…
Brian Vander Plaats
  • 2,257
  • 24
  • 28
6
votes
1 answer

Label on the Chart using Microsoft Chart controls

I am creating a 3d chart using Microsoft Chart controls. Here is the image: (source: highoncoding.com) I want to show the point on the top of each bar graph. Like for Exam 1 on top of bar chart it should show 2 (as in 2 points) etc. Here is the…
azamsharp
  • 19,710
  • 36
  • 144
  • 222
6
votes
3 answers

Labeled Column Series Chart in Wpf

I am using System.Windows.Controls.DataVisualization.Toolkit.dll to generate charts for my C# based wpf app. Here is my xaml for the chart.
Redone
  • 1,253
  • 5
  • 18
  • 37