Plots Visual Basic

  • Creating Graph with VB.NET, Part 1: Basic Chart

Plot Graph Visual Basic

This series shows how to create chart or graph with VB.NET using Microsoft Chart Controls for .NET Framework.

Plots Visual Basic

VisualBasic

Contour plots visual basic in Description. Multiple scaling types, including linear, logarithmic, and probability scales on the X and/or Y axes. DPlot also provides several special purpose scale types, including grain size distribution plots, tripartite grids (shock spectra), polar charts, triangle plots, N1.85 hydraulic scales,. Microsoft Plots the End of Visual Basic (thurrott.com) 66 Posted by msmash on Friday March 13, 2020 @05:10PM from the end-of-an-era dept. Microsoft said this week that it will support Visual Basic on.NET 5.0 but will no longer add new features or evolve the language.

I divide the series into 3 parts:

  1. Creating Graph with VB.NET, Part 1: Basic Chart
  2. Creating Graph with VB.NET, Part 2: Customize Chart
  3. Creating Graph with VB.NET, Part 3: Data Binding Chart to Database

On this post, you will learn how to create a basic chart on Windows Form Application with VB.NET. I use Microsoft Visual Studio 2005 as IDE.

Requirement

Plots end visual basic
  • Microsoft Visual Studio 2005 or later.
  • .NET Framework 3.5 SP1 or later. You can download Microsoft .NET Framework 3.5 Service Pack 1 from Microsoft website.

Step-by-step to create basic chart on VB.NET

  1. Install the requirement software as stated on the Requirement section.
  2. Open Microsoft Visual Studio 2005. Create a new VB.NET’s Windows Application. Type the name of the project as “SampleBasicChart“.
  3. On Toolbox window, drag a Chart control from the Data category to the Windows Form.
    Note: If you does not see the Chart control in the Toolbox, you need to perform these steps below:
    • Right-click on the Toolbox window and select Choose Items.
    • On Choose Toolbox Items, click Browse.
    • Browse to the location where you have installed Microsoft Chart Controls. The default location is
      C:Program FilesMicrosoft Chart ControlsAssemblies and select System.Windows.Forms.DataVisualization.dll. Then, click Open.
    • You see Chart control has been added to .NET Framework Components. Verify that its check box is checked and click OK.
  4. On Chart Properties, you see an empty chart with a default series, “Series1“. Next, I’m going to add another Series. On Chart Properties, click the Series collection. Then, click the ellipsis button.
  5. On Series Collection Editor, click Add. You will see “Series2” has been added to the collection.
  6. Now you have two series on a chart. But there is not any data on the chart so I will add some example data point on each series. Select Series1 and click the ellipsis button on Points collection.
  7. On Series Collection Editor, select “Series1” in the Members area and click the Points collection property. Then, click the ellipsis button.
  8. On DataPoint Collection Editor, click Add and assign a value “10” to the YValues property in the newly created DataPoint object.
  9. Repeat step 8 to add two more DataPoint object with values “20” and “30” repectively. Then, click OK to close the DataPoint Collection Editor window.
    Note: These values are example values, you may use any value as you want.
  10. Repeat step 7-9 again on “Series2” with YValues as you want. Then, click OK to close the Series Collection Editor windows.
  11. Run the project. You see the chart with two series as you created.

Microsoft Plots Visual Basic

Series NavigationCreating Graph with VB.NET, Part 2: Customize Chart >>