![]() View the toolbox using the View/Toolbox menu command. ![]() Open the form design so that it appears in the current window. NET, and create a new Windows Application (Forms) project. To access ZedGraph, first launch Visual Studio. ZedGraph is accessible as a control from the control toolbox in Visual Studio. Also, the ZedGraphWiki includes detailed examples of web control usage for two rendering modes, RawImage and ImageTag. The demo project download above demonstrates this functionality. ZedGraph now includes a class derived from the Control class that facilitates access from ASPX web page code. This article uses C# exclusively for examples, however, all the code samples for the tutorial, plus other examples are available for Visual Basic, on the ZedGraphWiki Sample Graphs section. Refer to them for more details - ZedGraph has a tremendous number of options that are not documented in this tutorial. The ZedGraphWiki and the online class documentation provide lots of helpful tips and descriptions. The charts can be dressed up with axis labels and titles, a legend, text labels and arrows (as shown in the example above), images, etc. ZedGraph handles 2D line/scatter graphs, horizontal/vertical bar graphs, stacked bar charts, stacked percent bar charts, error bar charts, open-high-low-close charts, Japanese candlestick charts, and pie charts - it does not yet handle 2.5D or 3D surfaces or charts. These classes will generate a variety of line, bar, or pie charts on a form or web page, given a location rectangle and some data points. Of course, most of the commercial packages would do the trick, but I needed something that was free. I found MSChart too quirky, and many of the other options did not have the flexibility I needed to achieve a polished look. There are many graphing libraries out there, but none seemed to fit what I needed. The site includes a project Wiki, documentation, interim (CVS) updates, and all release versions.Ī set of sample graphs is also available on the Wiki, complete with source code (many of the samples include C# and VB code). ZedGraph is maintained as an open-source development project on SourceForge. The classes include code for choosing appropriate scale ranges and step sizes based on the range of data values being plotted. ![]() At the same time, usage of the classes is kept simple by providing default values for all of the graph attributes. The classes provide a high degree of flexibility - almost every aspect of the graph can be user-modified. ZedGraph is a class library, Windows Forms UserControl, and ASP web-accessible control for creating 2D line, bar, and pie graphs of arbitrary datasets.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |