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

Add text to ZedGraph outside the graph area

Is it possible to add text to a ZedGraph that sits outside the graph area? For example, underneath the X-axis near the "Distance (ft)" label in the picture below. I've tried adding a child Label control to the ZedGraph, and I even tried drawing on…
kevin628
  • 3,458
  • 3
  • 30
  • 44
3
votes
3 answers

ZedGraph: Get PointPairList of visible curve points only

How do I get a PointPairList for the visible curve data only and not all points in the Curveitem list? This list should change dynamically when zooming or panning. Thanks.
mraviator
  • 4,034
  • 9
  • 38
  • 51
2
votes
1 answer

ZedGraph X-axis scaling programmatically

I want to change the scale of X-axis. X-axis is of type Date myPane.XAxis.Scale.Min = myPane.XAxis.Scale.Max = I want the Min to be start of a particular month and Max to be end of the same month ie myPane.XAxis.Scale.Min =…
pdthekd
  • 87
  • 1
  • 1
  • 11
2
votes
1 answer

ZedGraph XAxis on top of the graph rectangle

Is there a way to position the XAxis of the ZedGraph on top of the graph and use IsReverse on the scale of the YAxis so that my graph looks like below Y X 0 1 2 3 4 5 1 2 3 4 5 Should I achieve this using X2 axis? I do not know how to…
cheedep
  • 937
  • 6
  • 19
2
votes
2 answers

ZedGraph scale all messed up

Using ZedGraph to show a price over time. Clearly I'm doing something wrong when setting up my graph. Any ideas? Here is the code that I'm doing private void Form1_Load(object sender, EventArgs e) { myPane = zgc.GraphPane; // Set the…
user441521
  • 6,942
  • 23
  • 88
  • 160
2
votes
1 answer

Detecting mouse over line in Zedgraph

I try to detect when the mouse is over a curve in zedgraph, I am capable of doing it if the mouse is over a point of the curve, but the problem is when the curve has no points in that region, let me show you an example: Curve is defined by 2 points:…
2
votes
1 answer

Custom labels on ZedGraph PieChart

I want to create custom labels on my PieChart. Currently, the type of my labels is PieLabelType.Value but I need to format the value to display a currency symbol (€) and the thousands separator. Usually, I use the String.Format method with C0 as an…
Artaher
  • 41
  • 4
2
votes
2 answers

Rescale X across all plots in ZedGraph

I can successfully zoom x-only across all plots using the following code: zg1.IsEnableHZoom = true; zg1.IsEnableVZoom = false; zg1.IsSynchronizeXAxes = true; foreach (GraphPane gp in zg1.MasterPane.paneList) { > //What code can I put…
bearrito
  • 21
  • 2
2
votes
2 answers

ZedGraph labels

In ZedGraph, how do I show text labels for each point and in the XAxis all together? If I do myPane.XAxis.Type = AxisType.Text; myPane.XAxis.Scale.TextLabels = array_of_string; I get labels on the XAxis like this And if I do for (int i = 0; i <…
eKek0
  • 23,005
  • 25
  • 91
  • 119
2
votes
1 answer

Line Chart with date and time on X axis

I am working with line chart using ZedGraph and C# in Visual Studio 2010. The values ​​are coming from serial port. The date and time are entering the X axis, but each interval the number of seconds to change and it seems that this weak and lacking…
soushinsha
  • 83
  • 3
  • 11
2
votes
1 answer

Scrolling does not work with ZedGraph

I have a line chart in ZedGraph. The data is coming from serial port every second. The chart is running. But do not roll (scroll) on the X axis and is compressed in the left corner. I need the chart scroll from right to left and the date and time…
soushinsha
  • 83
  • 3
  • 11
2
votes
3 answers

How to add a text on top of a column with ZedGraph?

How can I add some text on top of a bar in a chart. This is the code I have to add the bar: var color = ColorTranslator.FromHtml(row.Colour); var barItem = graphPane.AddBar(row.Propensity.ToString(), null, Ys.ToArray(), color); Thank you
Lince81
  • 815
  • 5
  • 17
  • 30
2
votes
1 answer

ZedGraph Bar Width

Is there a way to modify the width of a ZedGraph bar? If so, what is the code necessary to do so? Is it possible to make it so the bars scale with the zoom also? I have bars that don't show up because of the way the scaling works currently (there…
sooprise
  • 22,657
  • 67
  • 188
  • 276
2
votes
1 answer

How to Modify ZedGraphControl GraphPane Line?

How can I modify an existing line/curve in a ZedGraphControl's GraphPane? I use the following to get the data for that line: CurveList lineData = zgcControl.GraphPane.CurveList[i]; But I am stumped on what to do with the CurveList after that. I…
user488792
  • 1,943
  • 7
  • 31
  • 38
2
votes
1 answer

Setting max and min values on the graphic in the ZedGraph library

How to set max and min values manually on the Axis scale in the ZedGraph library?
Peter17
  • 3,052
  • 9
  • 47
  • 77