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

Change Chart control Axis color?

Please take a look at this: Can i modify the default black color of the Axis ? I have searched for this and changed several properties but it is still black.
user1860934
  • 417
  • 2
  • 9
  • 22
3
votes
2 answers

ZOOM Out function in MS Chart c#

I have the following Winforms code: void chart1_MouseWheel(object sender, MouseEventArgs e) { double xMin = chart1.ChartAreas[0].AxisX.ScaleView.ViewMinimum; double xMax =…
3
votes
2 answers

#VALX value in MS Chart in C# isn't coming in "M/d H:mm" format

I wrote the following Winforms code: chart1.ChartAreas[0].AxisX.LabelStyle.Format = "M/d H:mm "; This makes my X-axis seen as, for example 11/25 8:00. But when I provide the tooltip for the datapoints it just provides the date and not the…
3
votes
1 answer

C# charting: How to not draw an empty point in stacked area chart

How can I not draw an empty point in C# charting library? I do not want the last empty point with 0 value for 11/10 to be drawn in the chart, but inspite of setting it as Empty point it is drawn with a value of 0. Check out the chart here. Here's…
Puvi
  • 105
  • 2
  • 10
3
votes
2 answers

Detect if Mouse within ChartArea

I have a chart form where I have one chart, but three ChartAreas. Further, each ChartArea can be visible or not, with the intentions that at least one will be visible. The user can also resize the form thus causing the overall chart to be resized,…
rtm
  • 81
  • 1
  • 9
3
votes
2 answers

Show tooltip in LineSeries WinForms Chart?

I am working on a Dashboard System where i am using Line Chart in WinForms. I need to show the tooptip on each line. I have tried this var series = new Series { Name = chartPoint.SetName, …
Ravi Mittal
  • 1,261
  • 2
  • 9
  • 11
3
votes
1 answer

Dynamic Chart Shows no data MSCHART, only white chart appears

Here is the Problem. I need to create multiple charts(number is not known previously). So, I am generating dynamic Chart. The problem is, chart appears but shows no data. It is just a blank white space. private void Form1_Load(object sender,…
3
votes
3 answers

Draw on MSChart control

I've got a simple line graph and I'd like to highlight some parts of this graph by drawing a rectangle around the line (ideally a filled rectangle with transparency...). I haven't any idea if this is possible with the MS chart control ?
GuillaumeA
  • 3,493
  • 4
  • 35
  • 69
3
votes
0 answers

hiding part of series lines for empty data points in vb.net for asp.net

I have code that generates a chart from a data set. Some of the points in the data set are empty, however the charts plots these empty datapoints as 0. I want the chart to plot them as gaps in the chart. Below is my ASP code.
user1096317
  • 55
  • 1
  • 2
  • 7
3
votes
0 answers

CryptographicException on SaveAllState()

I have an ASP.net app that is loading a page and displaying a chart using data from a SQL query. I can run the page on the deployment server but anyone who isn't a machine admin appears to hit this exception: [CryptographicException: Error occurred…
3
votes
1 answer

How to scalling Secondary axis (AxisY2) in Line chart of MS Chart?

I would like to apply scale view option on my chart. I have written the following code which allows me to scale view on AxisY. But not on AxisY2. chart1.ChartAreas["Area"].CursorY.IsUserEnabled =…
Nitin Vijay
  • 1,414
  • 12
  • 28
3
votes
1 answer

Get set of datapoints when zoomed

I have an MSChart object with a Series (SeriesChartType.Point); Zooming is enabled to allow the users to zoom into a specific region of the data. After the user has zoomed into that region, I'm interested in knowing the set of DataPoints that are…
3
votes
1 answer

Can't Adjust Chart Margin

I created a Chart but it has a left margin between the Y.Axis and the Chart's border. How can I make it 0? And is it possible to define a 5px uniform margin (left, top, right, bottom) between the chart and the border? My Chart code is the…
Miguel Moura
  • 36,732
  • 85
  • 259
  • 481
3
votes
0 answers

Grouping Multi Series Column Chart WPF

I want to create a chart just like in the picture below. The only problem is that the data is always the same for all bars. How can I fix this?? C# Code : List>> list = new List
Nohad Imad
  • 71
  • 7
3
votes
2 answers

MSchart label inside chart area

Can somebody please tell me how can i show the Total Collection on MSChart
codery2k
  • 79
  • 3
  • 11