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
0 answers

Aligning more than 3 ChartAreas vertically

I'm not able to align more than 3 charting areas in MSChart vertically without calculating position manually. Seems like MSChart decided that if you add more areas it would start aligning them horizontally. I've tried playing around with ChartArea…
void
  • 333
  • 4
  • 12
4
votes
2 answers

How do I get an in-memory chart (or image) into an in-memory OpenXML document?

I'm having a nightmare of a time trying to add a Chart to a MemoryStream in-memory. I'm creating a Word document on the fly using OpenXML and I have a chart that is also being dynamically generated from data in the database. I get the template from…
Phil.Wheeler
  • 16,748
  • 10
  • 99
  • 155
4
votes
2 answers

get data point when user click a line graph using DataVisualization.Charting.Chart

I am using DataVisualization.Charting.Chart (winform), I need to get the data point index when user clicks on a line graph in MouseDown event. I know there is a HitTest function accepting x & y, but for a line graph, we only need to verify x, if we…
unruledboy
  • 2,455
  • 2
  • 23
  • 30
4
votes
2 answers

y axis start from 10 rather than 0 in mschart using windows application

HI i want to start bar from 10 rather than 0. is it possible and how? chart1.ChartArea["ChartArea1"].AxisY.IsStartedfromZero=false chart1.ChartArea["ChartArea1"].AxisY.minimum=10 //but this line replace 0 another command to bar start from 10 in ms…
user990897
  • 177
  • 2
  • 6
  • 21
4
votes
2 answers

Multiple columns chart using asp.net chart control

I need to show the data columns in multiple column chart, I have used single column charts, but I cant find the way to bind another Y-Axis column to the chart I have data in following format Name DataField-1 DataField-2 Emp-a 200 …
user841123
4
votes
1 answer

How to show values as legend?

I have a bar chart and I want to show the YAxis values as legends. The default behavior seems to be Series as legends... How can I show the legend with YAxis values?
BrunoLM
  • 97,872
  • 84
  • 296
  • 452
4
votes
2 answers

MSChart custom xaxis labeling

I have a MSChart that looks like the following. http://11.a.hostable.me/images/june2007.JPG What I would like to do is adjust the x axis labels: I want to label every column, not every 5 I want to specify what each label is. What I don't…
Jason Stauffer
  • 63
  • 1
  • 1
  • 4
4
votes
1 answer

Specific way to show a serie in MSChart using c#

I wonder if there is any way to show this serie as follows, the chartype is column. I'm aware that I need an (X,Y) pair to show the datapoint in the graph, but the thing is that I need to show a Y value in a range of x, to clarify this, let's put…
Somebody
  • 2,667
  • 14
  • 60
  • 100
4
votes
1 answer

How to put labels at the bottom of the chart

I'm developing a logarithmic graph as shown below: The labels of each point are located right next to the point, and this is what I do not want, because what I am looking for is that the labels are located at the bottom of the graph, just in the…
4
votes
1 answer

Show legend in chart

I am using Microsoft Chart, and I have top Legend displayed at the top in a pie chart. Which property is used to show or hide the legend of a pie chart?
Amit
  • 21,570
  • 27
  • 74
  • 94
4
votes
1 answer

Align x axis of one ChartArea with y axis of another?

I'm working with System.Windows.Forms.DataVisualization.Charting (C#, VS 2008). I have two ChartAreas, one containing a SeriesChartType.Line and the other containing a SeriesChartType.RangeBar. Separatly the two charts plot what I want. The…
John
  • 15,990
  • 10
  • 70
  • 110
4
votes
1 answer

MSChart Annotation Size

I have an MSChart with annotations, the charting area is sizable so that people using the old school 800x600 can see the chart. Problem is, when I view my chart under this low resolution, the annotations within it shrink with the chart and begins to…
4
votes
4 answers

Optimize Chart with 10000+ points

I have chart that can contain a lot of points (10000 +) When I scale the chart in order to see all points in screen, it takes some time to draw them Can You advice me some optimization, in order not to draw all points
Zlobaton
  • 664
  • 1
  • 9
  • 21
4
votes
4 answers

MS Chart control - pie chart transparency

I'm trying to get a pie chart to display as transparent. Ideally it should look like the 3rd chart from the left on this page (link). So far I've tried setting the transparency on the chartArea:
Dr. Greenthumb
  • 2,280
  • 5
  • 27
  • 33
4
votes
1 answer

How to make dashed or dotted columns for b&w printing in an MSChart

I am making a column chart and I need to differentiate columns in black and white format. I know how to change colors: mychart.Series["MyName"].Color = Color.MidnightBlue; But I do not know how to fill a column with a dashed or dotted pattern.
Yauheni
  • 83
  • 7