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

Memory usage is much larger when running in tests (NUnit) than in normal mode (WinForms app)

When I use a ZedGraph control in NUnit/MSTest test method the memory usage is much larger (over 8GB for control instance) than in WinForms application. I use Windows 10 Pro, Rider 2021.1.3, C# 7.1, .NET Framework 4.6, AMD Ryzen 7 When use with…
0
votes
2 answers

ZedGraphControl constructor suddenly takes a lot of memory

I have a WPF application that I've been using about 1 year ago. Suddenly it started taking a lot of time to start when running it from VS2015 (around 5 minutes). I checked the task manager and it seems that the application's instance is taking 8,500…
DoubleH
  • 3
  • 2
0
votes
0 answers

Why is ZedGraph not drawing second curve?

I have a program that needs to draw two sin curves on the graph, but when I try it only shows the first one. The label of the second one is shown, but that's all. I need to do it on version 4.2.1.35091. public void drawSin(byte[] answer1, byte[]…
0
votes
1 answer

Zooming with mouse wheel breaks panning (scrolling) of real time data in ZedGraph

Windows Forms ZedGraph control in WPF application. The data points are auto-generated and attached to the chart every N seconds. When new data point is added to the chart I shift (pan) chart one point to the left, so there is always no more than…
Anonymous
  • 1,823
  • 2
  • 35
  • 74
0
votes
1 answer

ZedGraph showing range in all of the diagram

I am using ZedGraph to show a workprocess. For this process I also have to show the range of a temperature. It should look kind of like this ZedGraph example. For my application I need the range to be shown in the whole diagram even after I dragged…
domspa
  • 1
0
votes
1 answer

Add custom labels to the yaxis instead of actual values in Zedgraph

I try to add Add custom labels to the yaxis instead of actual values in zedgraph.I have a structure like that : myPane.YAxis.Scale.Min = 0; myPane.YAxis.Scale.Max = 1; myPane.YAxis.Scale.MajorStep = 0.1; myPane.YAxis.IsVisible =…
user741319
  • 625
  • 3
  • 9
  • 18
0
votes
1 answer

How Create a List of PointPairLists?

I have some PointPairLists and I want to Add them to a List; but I face with Exception index out of range for : AllPhiLines[0].Add(Quartz[0]); I tried below code: PointPairList Quartz = new PointPairList(7000); PointPairList Calcite…
zahra
  • 63
  • 8
0
votes
1 answer

How do I plot a dictionary (KeyValuePair) in a graph (zedgraph) in C#

I have a Dictionary with Key and Value Pairs. I need to create a Line Graph on zedGraph, plotting the Key in the X-Axis and the Value in the Y-Axis. I am using Visual Studio 2017. the Key is a DateTime type. The Value is a string type. I was…
0
votes
1 answer

How to draw a bar curve in zedgraph where the bars are next to each other?

I want to draw a curve out of bars, where the bars start at the lower left corner of (x,0) and go up to (x,y), the width depends on where the next Curve point starts Given the following points: X Y 0 3 1 4 3 2 i want to have bars drawn…
Wolfgang Roth
  • 451
  • 4
  • 18
0
votes
0 answers

ZedGraph about YAxis and XAxis

I have this database: hora type time and temperatura type varchar, so hora: temperatura: 11:47:14 +031.52 11:47:15 +033.43 11:47:16 +035.24 11:47:17 +038.50 I want to graph it,…
Gerson
  • 67
  • 9
0
votes
1 answer

Can I create this type of graph in ZedGraph?

Let's say I have a sine curve in ZedGraph that goes from -10 to +10 on the y-axis. I'd like to be able to put limits on the curve (let's say a minimum of -5, and a maximum of +7), such that anything below -5 and anything above +7 is shaded, and…
Mark Carpenter
  • 17,445
  • 22
  • 96
  • 149
0
votes
1 answer

ZedGraph PointEditEvent in only one curve

I would like to use PointEditEvent in my cart. But I have two curves in this cart, and only one can be edited. I tried canceled event if check is wrong curve. But I can´t do it because it´s fires after operation is completed. A delegate that…
0
votes
1 answer

Always Display Date In ZedGraph Axis?

var p = zgc.GraphPane; p.XAxis.Type = AxisType.Date; My date values are in a PointPairList in XDate format. When I zoom in my graph, the tick labels only show time values and not date values. I want to be able to always show a date and time so I…
sooprise
  • 22,657
  • 67
  • 188
  • 276
0
votes
1 answer

How to change the time frame in Xaxis of ZedGraph?

I need to have multiple time frame on a zedgraph. I have to display the stock data on a daily time frame and then if user wishes to view the view in monthly time frame or hourly time frame i need to support it. Note that the data must be in candle…
Vinod
  • 31,933
  • 35
  • 96
  • 119
0
votes
1 answer

zed graph x axis labels

I am trying to loop through my datatable column sdescr and use the text in the columns as the labels of my x axis, but it isnt working i am getting this error Value of type 'System.Collections.Generic.List(Of String)' cannot be converted to …
MyHeadHurts
  • 1,514
  • 5
  • 36
  • 87