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
11
votes
5 answers

Chart Control Y axis auto-scale on scrolling

I've been searching the net for some time now yet still haven't found any good solution to my problem. I want to make MS Chart to automatically rescale Y axis on scrolling to make sure that all data points are visible. The twist here is that I need…
L.E.O
  • 1,069
  • 1
  • 13
  • 28
11
votes
3 answers

Selectively hiding series in a C# chart

Lets say I have a chart with 2 series on it. Then for each series, I have a checkbox to say whether I want to see them or not. Assume that I originally plot both, and afterwards, wanted to hide either of them. What is the best way to do this? I…
Xantham
  • 1,829
  • 7
  • 24
  • 42
10
votes
1 answer

Changing datetime format on mschart axis

I'm using mschart to display some values over a timeperiod. It looks something like this: As you can see the first value is from 15:11 and the last from 16:10 But on the x-axis it's on displaying the days. How can I change this? EDIT: Changing…
Kingpin
  • 1,067
  • 2
  • 14
  • 34
10
votes
2 answers

how to change the direction of X-axis label in ms charts

Hi I am using Ms chart control in winforms application for displaying values according to dates I need to change the x-axis label values(Dates) direction horizantal to vertical I have searched so many properties but i did not find any solution…
user682417
  • 1,478
  • 4
  • 25
  • 46
10
votes
3 answers

Can I display a message if MS Chart Control has no data?

Is there a way to display a "default" message on a MS Chart Control if there is no data to chart? I have a chart, with some controls that allow the user to pick various date ranges. If there is no data to be charted in that date range, it currently…
Ben
  • 4,281
  • 8
  • 62
  • 103
10
votes
1 answer

ASP.Net MS Chart Control Pie Chart: remove unwanted padding

HI im trying to create simple pie chart using the MS Chart controls. When my pie chart gets rendered in the browser i get padding around the pie chart that i cant get rid of. i would like the pie chart to sit up against the edge of the image with…
MakkyNZ
  • 2,215
  • 5
  • 33
  • 53
10
votes
2 answers

MSChart: ChartImageHandler pros/cons of the different storage settings

I'm using the MSChart Control in a Web Project. I saw that there are 3 different storage mode settings: file/memory/session. I couldn't find any information about the pros/cons or the impact of the settings. Anyone can help?
gsharp
  • 27,557
  • 22
  • 88
  • 134
10
votes
2 answers

Add horizontal line to chart in C#

I am using a System.Windows.Forms.DataVisualization.Chart to plot some x,y scatter data, like this: chart1.Series["Series2"].Points.AddXY(stringX, doubleY); I would like to add to that chart an horizontal line with an average of the form y =…
betelgeuse
  • 430
  • 2
  • 10
  • 24
10
votes
2 answers

MS Chart Control Zoom MinSize issue

I'm implementing a scatter plot using the MS Chart Control .NET 3.5, WinForms, C#. My x-axis data is DateTime and noticed I couldn't zoom in smaller than a resolution of 1 day, despite setting the ScaleView as…
itsmatt
  • 31,265
  • 10
  • 100
  • 164
10
votes
1 answer

Candlestick multiple Y values

I am on a mission to make a candlestick graph using MSChart in a windows form. I already succeeded to make a 3D bar chart with no problems. But after a long search on the internet, Microsoft's source code (WinSamples) and a lot of headscratching I…
Jens
  • 113
  • 1
  • 1
  • 6
9
votes
0 answers

WPF Toolkit Chart: Positions of Data Point Visualization shifted when changing data values

I use a WPF Toolkit chart to display several line series with data points. I have created styles for the LineDataPoints that use a canvas on which symbols (like a circle) are drawn. Here's one of the style definitions:
Mathias Weyel
  • 809
  • 6
  • 18
9
votes
2 answers

Definitive list of all available CustomProperties for Series and DataPoint in MSChart

I am working with the .NET 3.5 MSChart controls and from time to time I find that I need to add custom properties to either the Series or DataPoints. For example: Series series = new Series(); series["PieDrawingStyle"] = "SoftEdge"; DataPoint point…
acqu13sce
  • 3,789
  • 4
  • 25
  • 32
9
votes
5 answers

MSChart Unhandled Overflow exception after zooming

This Question has been languishing un-answered on the MSChart forum for over a year. I'm continually getting an overflow exception on a chart. I'm setting up my chart as follows: InstrChart.Legends.Clear(); dataArea =…
9
votes
1 answer

How to change chart series color

I have a single series which populates my chart with records from a database. Seven records are been displayed but in the sanme color. I' trying to change each bar color without success Below are the lines i tried but i gave me one big green bar…
mikybrain
  • 169
  • 1
  • 4
  • 14
9
votes
1 answer

How to improve WinForms MSChart performance?

I have created some simple charts (of type FastLine) with MSChart and update them with live data, like below: To do so, I bind an observable collection of a custom type to the chart like so: // set chart data source …
Marcel
  • 15,039
  • 20
  • 92
  • 150
1
2
3
79 80