Introduction
In this article, I would like to show you how to create a line and point chart for your ASP.NET application.
Background
I assume you have a basic knowledge of ASP.NET and C#.NET, and so on.
'NPlot - A charting library for .NET
'Copyright (C) 2003-2006 Matt Howlett and others.
'All rights reserved.
NPlot is an open source charting library for the .NET Framework. Its interface is both simple to use and flexible. The ability to quickly create charts makes NPlot an ideal tool for inspecting data in your software for debugging or analysis purposes. On the other hand, the library's flexibility makes it a great choice for creating carefully tuned charts for publications or as part of the interface to your Windows.Forms or Web application.
To prepare for a chart, use these steps given below.
How to configure
Step 1
Download from http://sourceforge.net/projects/nplot/files/nplot/0.9.10.0/.
Step 2:
Start a new web-site; give the name as nplotGraph. It will give you one Default.aspx and .cs file.
Step 3:
Download source code and copy the nplot.dll file from the bin directory to some location. Now add a reference to this nplot.dll file.
Step 4
If you would like to use NPlot with the Windows.Forms designer within Visual Studio, you should add theNPlot.Windows.PlotSurface2D
control to the Toolbox. To do this, right click the toolbox panel and select "Choose Items”. After the “Choose Toolbox items” dialog box appears, select the "Browse" button and navigate to the NPlot.dll location, and double click to add the NPlot controls to the list available for selection (see figure 1). Make sure the NPlot.Windows.PlotSurface2D
control is checked and press OK. You can now use thePlotSurface2D
in the designer as you would any other control.
Using the code
Draw line graph
private void CreateLineGraph()
{
NPlot.Bitmap.PlotSurface2D npSurface = new NPlot.Bitmap.PlotSurface2D(700, 500);
NPlot.LinePlot npPlot1 = new LinePlot();
NPlot.LinePlot npPlot2 = new LinePlot();
NPlot.LinePlot npPlot3 = new LinePlot();
<
Introduction
In this article, I would like to show you how to create a line and point chart for your ASP.NET application.
Background
I assume you have a basic knowledge of ASP.NET and C#.NET, and so on.
'NPlot - A charting library for .NET
'Copyright (C) 2003-2006 Matt Howlett and others.
'All rights reserved.
NPlot is an open source charting library for the .NET Framework. Its interface is both simple to use and flexible. The ability to quickly create charts makes NPlot an ideal tool for inspecting data in your software for debugging or analysis purposes. On the other hand, the library's flexibility makes it a great choice for creating carefully tuned charts for publications or as part of the interface to your Windows.Forms or Web application.
To prepare for a chart, use these steps given below.
How to configure
Step 1
Download from http://sourceforge.net/projects/nplot/files/nplot/0.9.10.0/.
Step 2:
Start a new web-site; give the name as nplotGraph. It will give you one Default.aspx and .cs file.
Step 3:
Download source code and copy the nplot.dll file from the bin directory to some location. Now add a reference to this nplot.dll file.
Step 4
If you would like to use NPlot with the Windows.Forms designer within Visual Studio, you should add theNPlot.Windows.PlotSurface2D
control to the Toolbox. To do this, right click the toolbox panel and select "Choose Items”. After the “Choose Toolbox items” dialog box appears, select the "Browse" button and navigate to the NPlot.dll location, and double click to add the NPlot controls to the list available for selection (see figure 1). Make sure the NPlot.Windows.PlotSurface2D
control is checked and press OK. You can now use thePlotSurface2D
in the designer as you would any other control.
Using the code
Draw line graph
private void CreateLineGraph()
{
NPlot.Bitmap.PlotSurface2D npSurface = new NPlot.Bitmap.PlotSurface2D(700, 500);
NPlot.LinePlot npPlot1 = new LinePlot();
NPlot.LinePlot npPlot2 = new LinePlot();
NPlot.LinePlot npPlot3 = new LinePlot();
<