Main Page

From ZedGraphWiki

Jump to: navigation, search

Welcome

Welcome to the ZedGraph Wiki!

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 C++ and VB. ZedGraph is licensed under the LGPL.

Latest News

New Update as of 28-Nov-2007

Version 5.1.4 + 4.6.4 
Merged Code. Version 5.1.4 (.Net 2.0) and version 4.6.4 (.Net 1.1) now share most of the code, so functionality is almost identical. The primary difference is the collection classes for 5.1.4 use generics, while 4.6.4 is based on traditional collections. Following are recent changes to the code base:
  • Add ZedGraphControl.SaveAs() overload with default name (thanks to Mark Gray)
  • Modify FilteredPointList to handle non-equal-spaced data (thanks to ingineer)
  • Add ZedGraphControl.CopyEmf to supply Emf format to clipboard
  • Use helper class to add Emf output data from ZedGraphControl.SaveAs()
  • Fix HiLowBarItem for clustered result
  • Add CacheItemPriority.NotRemovable to protect temp images from premature removal (thanks to nocnoc)
  • Make Line.IsOptimizedDraw false by default, and no optimization for curves less than 1000 pts
  • Add SymbolType.UserDefined and Symbol.UserSymbol (thanks to Magnus Bernhardsson)
  • Fix CreateBarLabels settings for Y2 axis curves (thanks to jakeab)
  • FindNearestPoint handles X2 axes correctly
  • FindNearestObject is more accurate, and includes X2 axis now
  • HiLowBarItem is now the same as BarItem except for the Z value (Size & AutoSize are gone)
  • BarType.HiLowCluster is no longer needed
  • Move IsAntiAlias functionality to MasterPane and propogate properties
  • Make clipboard and saveas() methods for ZedGraphControl honor AntiAlias settings for MasterPane
  • Change DataSourcePointList public property BindingSource to a BindingSource type (instead of object)
  • Add RollingPointPairList.RemoveRange() (thanks to bc)
  • Add XDate.CompareTo() method with IComparable interface (thanks to Stefan)
  • Copy constructor for CurveItem was missing _color
  • PointPairList sort for small values (less than 1e-10)
  • DateAsOrdinalScale.SetDateFormat() to handle GraphPane.IsBoundedRanges
  • Add Slovak language locale file (thanks to thetamius)
  • Many other bug fixes

Getting Started

The best way to get started with ZedGraph is to just start coding! Virtually everything but the data arrays have default values, so you can generate a graph with just a few lines of code. To see it in action, check out the ZedGraph Tutorial on CodeProject.

You can download the latest release version from the project downloads page.

Or you can get the latest development version from the CVS development tree.

Reference Material

This is the place to find examples, help, tips and techniques for the use of the ZedGraph charting library.

How Do I?
Sample Graphs

links

ZedGraph Revision History Page
ZedGraph Tutorial
ZedGraph Online Documentation
ZedGraph Forums
Download ZedGraph
LGPL License

Personal tools