Questions tagged [zedgraph]

ZedGraph, written in C#, is an LGPL class library, user control, and web control for .NET, for creating various types of graphs and charts. It also provides many additional options, such as expanded user interface, interactivity options and export/printing tools.

Are you looking for a way to draw in .NET? Here's yet another charting class library with a high degree of configurability that is also easy to use.

ZedGraph is a set of classes, written in C#, for creating 2D line and bar graphs of arbitrary datasets. The classes provide a high degree of flexibility -- almost every aspect of the graph can be user-modified. At the same time, usage of the classes is kept simple by providing default values for all of the graph attributes. The classes include code for choosing appropriate scale ranges and step sizes based on the range of data values being plotted.

ZedGraph also includes a UserControl interface, allowing drag and drop editing within the Visual Studio forms editor, plus access from other languages such as and . ZedGraph is licensed under the LGPL.

Unfortunately further development on ZedGraph was halted in 2007 by the author John Howard Champion however there was still a backup site for some time hosted for grabbing documentation and an on-going wiki existed for support.

More information:

436 questions
2
votes
2 answers

Using a pre-existing trace class with CurveList

Long ago I built a trace class to manage a list of measurement points: public class TraceXYZ : CollectionBase, ICloneable { … } Much later, after TraceXYZ was used pervasively throughout my software, I started using the excellent graphing package,…
mroyer
  • 65
  • 6
2
votes
1 answer

Y-axis scale with ZedGraph

I don't understand this axis scaling. I'm able to set the max/min by changing GraphPane.Y2Axis.Scale.Min/Max. However, this decouples the bars from the scale. The bars are at the exact same place as before, even though the scale change. So…
bretddog
  • 5,411
  • 11
  • 63
  • 111
2
votes
1 answer

ZedGraph on resize?

How can I access the event that is triggered when a graph pane is resized? After each resize, I want to fix the text size on the title and labels so they don't get huge when the window is maximized.
sooprise
  • 22,657
  • 67
  • 188
  • 276
2
votes
1 answer

ZedGraph - How to force first and last bars have x-axis labels?

Using Zedgraph (asp.net). I have a bar graph based on datetime x points. The first bar does not have a label. The first label is at the y-axis corresponding to a day before my first day point. I am not too concerned about this. However the second…
Tony_Henrich
  • 42,411
  • 75
  • 239
  • 374
2
votes
1 answer

Zedgraph zoom does not work properly on some Systems

I observed something interesting the other day and I wanted to know whether anyone has a clue why this is happening and also how one could fix this issue. It appears that the zooming using Zedgraph has issues on some systems leading to the zoom…
Oliver Bernhardt
  • 399
  • 1
  • 4
  • 18
2
votes
2 answers

Zedgraph textobj X location depends on text length?

I have a Zedgraph textobj which I want to place always in the same x, y position (ASP.NET image). I noticed that the text doesn't always show in the same starting x position. It shifts depending on the text's length. I tried to have the text to have…
Tony_Henrich
  • 42,411
  • 75
  • 239
  • 374
2
votes
0 answers

Why wrong datetime order in Zedgraph

I have the following code to plot value StockPointList spl = new StockPointList(); for (int i = 0; i < dtTable.Rows.Count; i++) { dtDate = Convert.ToDateTime(dtTable.Rows[i]["DateTime"]); XDate xDate = new…
Sarath Subramanian
  • 20,027
  • 11
  • 82
  • 86
2
votes
1 answer

How to change date format on zooming

Am using a ZedGraph in which data is plotted for a period of more than one year. When its initially displayed, its showing the data in a single shot but the X-axis is in DateTime format. How can I set the X axis values to Year at the time of…
Sarath Subramanian
  • 20,027
  • 11
  • 82
  • 86
2
votes
1 answer

Adding a line segment to OHLC Zedgraph in C#

I have an OHLC stock price chart in Zedgraph. I would like to add multiple line segments on this graph where I only know the start and end point values - so basically, I have a (start date, price) and an (end date, price) combination of 2 points…
sinhars82
  • 124
  • 1
  • 1
  • 8
2
votes
0 answers

Fill graph background

I want to fill the area down to the maximum value in a GraphPane. I think I could create a new filled curve at the background with points seperated by an interval. I could use the FindNearestPoint to find maximum value for a specified x but I'm…
Vlad
  • 3,001
  • 1
  • 22
  • 52
2
votes
1 answer

How do I plot system time on ZedGraph's XAxis using C#?

I have searched some examples of ZedGraph, but I couldn't perform what I wanted. I am drawing real-time data each 20 ms, and I want to show the system time on the x-axis (using the ZedGraph class XAxis). However when I try to draw milliseconds on…
Blast
  • 955
  • 1
  • 17
  • 40
2
votes
0 answers

set a label position based on axis scale in zedgraph

I have 2 label in my GraphPane that they positioned in the start of 2 graphs. Sometimes they have equal position and one of them is under another one. I want to change the "Y" value of one of them so both of them can be shown. my problem is that my…
mjyazdani
  • 2,110
  • 6
  • 33
  • 64
2
votes
2 answers

How to change the distance between the graphs on panes?

It's some kind of histogram. I've got MasterPane with two GraphPanes. MasterPane layout is SingleRow. How can I set no gap between panes? Here's what I mean masterPane.Margin.All = 0f; masterPane.InnerPaneGap = 0f; do not seem to work
mrhotroad
  • 306
  • 3
  • 10
2
votes
1 answer

ZedGraph - How to change X-axis from points to time?

i have a working DLL where i have one function to add arrays to a list and another function that shows all list-arrays in a ZED-Graph-diagram. All arrays have the same size. Currently the x-axis is shown in points from 0 to 1024. Question is: What…
Thomas Mann
  • 99
  • 3
  • 19
2
votes
1 answer

NAudio and ZedGraph Waveform Plotting

int window; LineItem myCurve1; LineItem myCurve2; public void DrawWave(ZedGraphControl zgc) { NAudio.Wave.WaveChannel32 wave = new NAudio.Wave.WaveChannel32(new NAudio.Wave.WaveFileReader(open.FileName)); …
Blast
  • 955
  • 1
  • 17
  • 40