Line Graph - Plotting Set Of Data Using Function

Feb 20, 2012

I am trying to plot a set of data using a function I have defined as an array:
Private Sub calculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles calculate.Click
range(1) = min.Text
For i = 2 To 100
[Code] .....
Range(i) I want to be my x values and fee(i) to be the y values. When I try to select range() and fee() as the x and y values for a series, I get an error because they are not of type double.

View 3 Replies


ADVERTISEMENT

Function For Plotting A Graph - Facing A Memory Leak?

Aug 10, 2009

I found this function for plotting a graph online somewhere. I am pretty sure it has a memory leak but cant figure most of the functions as I am new to VB and windows API. Looking for some quick tip on what I should be looking at.

[code]...

View 7 Replies

Plotting 2d Graph In C#.net?

Jan 19, 2011

I was writing a program on a web form which is reading a file and then plot the file as a 2d graph.

the file looks like

c1
number1
number2

[Code].....

where c1 c2and c3 is the header which the readfile stream should ignore and the total "number" numbers are decided by the user which can be a variable.

the graph will take the c1,c2,c3values as x-axis and the number values as y-axis.

how can I draw the graph from reading this file? can some one kind enough to show me some code?

View 1 Replies

Application - Plotting X/Y Graph ?

May 4, 2009

I wanted to plot a graph for one of my application in VB.net. I want a Time (X-axis) Vs Temperature (Y-axis) graph, where:

1. X- Axis has vertical lines every 10 minutes. So there are 6 vertical lines between 1 hr. The labels on the Axis should be written at every hour even though the vertical lines are at every 10 minutes. (Eg: 10:00, 11:00, 12:00, 13:00, 14:00...)

2. Y-Axis should have horizontal lines every 10 degrees C. So there are 10 Horizontal lines between 100 degrees. The labels on the axis should be written at every 100 degrees (Eg: 0 deg C, 100, 200, 300...)

View 2 Replies

VS 2008 Plotting Real Time Graph?

Jan 13, 2010

Currently, my circuit is connected to a power supply and is connected to the computer via a RS232 cable. Voltage level is extracted and the real-time voltage level is plotted (see attached image) and it will keep movingBut you will realise that there isnt any time shown on the X-axis. I would like to display time in such a way:Each long marker will represent 1 second and there are 4 long marker, which will represent up to 4 seconds.When the (5th second) voltage is sense and the real-time voltage is drawn, i would like the new time (5th second) to replace into the 1st marker postion, the (6th second) to replace the 2nd marker position, so on and so forth. The replacement will continue

View 19 Replies

Get Data From A SQL Database And Output It As A Line On A Graph

Jan 24, 2012

This isnt the first time i have posted about a graph, last time i was posting about which way i should do it, now that i have created the graph (by drawing individual lines) i was wondering what the easiest way to actually get data from a SQL database and output it as a line on a graph. here is a picture of what the graph looks like (bottom of the page) [URL]

[Code]...

View 13 Replies

How To Use Data And Create A 2d Line Graph From That Data

Oct 4, 2011

I am using Visual basic express 2010. I have a set of data in a text file and I want to read that text file into the visual basic and create a chart. I am able to import the data into visual basic but I don't know how to use that data and create a 2d line graph from that data. [code]What I want to do in visual basic is create a chart like the chart created by microsoft excel.

View 7 Replies

Plotting Dynamic Data On MSChart

Oct 24, 2011

How do you plot dynamic data (from a dataset) on MSChart?

View 3 Replies

Serial Data And Plotting In VB 2010

Dec 2, 2011

I'm fairly acquainted with VB but the underlying .Net and many of the controls and whatnot I'm not all that familiar with. Hence, I have a real hard time trying to come up with ways to solve certain problems. I figure the best way to start is try to get some general guidance and go from there.

I have an external electronic device that gathers data (no need for details here) and has an internal micro-controller that interfaces from the device to a USB port. I need to build a PC based program in VB 2010 that can get the data from the device and plot it on a graph...possibly a fairly customized graph. Let's assume there is already a driver for this device that sets up a COM port (pseudo-serial I guess it's called).

Now what part of the VB toolbox of methods, controls, objects etc (what's the terminology for that again?) should I be looking at to start such an application? I don't want specific code or anything like that but what areas in this "toolbox" should I be looking at to begin?

View 5 Replies

Creating A Line Graph?

Jan 10, 2011

are there any tutorials on DIC or other programming websites for Creating a line graph on VB.NET

View 9 Replies

Make A Line Graph?

Jan 18, 2010

how to make line graph in vb.net? I have a textbox that if i put data the graph will move. I attach sample form of what I need to do...

View 3 Replies

Create A Graph Line With 3 Different Series?

Jun 21, 2010

I want to picture a line graph based on my array. I can create a graph line with 3 different series, but I don't get my exact chart as in excel. As can be seen from graph in the attachment. It has additional lines. I want just the 3 curved lines, but i don't know why it create other lines. Here is the code I used:

ReDim dataGraph(2, UPPER + 1)
Chart1.Series.Add("Series1")
Chart1.Series.Add("Series2")

[Code]......

View 1 Replies

Create Line Graph And VB 2005?

Feb 12, 2010

I am currently using visual basic 2005 and i am wondering if it is possilbe to create a line graph using data similar to for example Week 1 = 40, Week 2 = 40, etc....and the Weeks as cross the X axis and the numbers from 1 to 100 on the Y axis....is this possible to implement in visual basic?

View 2 Replies

Creating Line Graph In 2008?

Apr 4, 2010

I'm looking for some assistance on creating a line graph in VB 2008. Not sure where to start. Can some one here point me to the right direction?

View 2 Replies

Draw Dynamic Line Graph?

Dec 2, 2010

Based on some calculation i will get the (x,y) coordinates of the points to be plotted. I need to draw a line graph based on these points. Which is the best and easiest way to do so?

View 2 Replies

Line Graph In Windows Form App?

Sep 17, 2010

using vs2008 I am trying to create a line graph using vb in a windows form. I have dragged a chart onto the form, and via the properties window, through the series option have changed the type to the graph that I want, which is line. But all the time the data is displayed as a simple bar chart. How do I remedy this please to get the type of chart that I want.

View 1 Replies

Using The Chart Component For A Line Graph?

Aug 7, 2010

I have a series of x and y co-ordinates that I would like to plot on a line graph. Can anyone recommend any simple tutorials that would get be started?I have my chart component on the form, I'm guessing that I need to declare a collection of datapoints and loop through the adding each to the graph

View 5 Replies

VS 2005 : Move A Line On Graph?

Sep 12, 2009

trying to move a line on a graph (to a new calculated value)This is as far as I can get:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim label5 As Double
y = 310

[code].....

This does not work?

View 7 Replies

VS 2008 MS Charts For A Line Graph?

Nov 6, 2009

I've looked around, I can't find much documentation on Line Graphs using the MS Chart Addon for VB2008.

Whenever I add the "chart" control (which seems to be the only new one in the property browser) a Bar Graph appears. I'd like to create a line graph rather than a bar graph, I don't see an option to change the kind of graph it displays. I'm sure I'm missing something simple, since I've seen people able to create their line graphs almost immediately after installing the control.

View 2 Replies

C# - Plot The Graph(line) From A File In Java?

Mar 6, 2010

I have a directory containing list of files.

Those files have some list of values as x and y ordered as line by line.

And my question is just I would like to read those files one by one and to plot line graphs based on those values.

View 1 Replies

Create A Line Graph Using Information From Database

Aug 31, 2009

How to create a line graph in VB 2005? I will get the data from database and plot a line graph with the information i get from the database and display it out. I know i can use Microsoft chart control but i don't really know how to use that.

View 2 Replies

VS 2008 Make A Simple Line Graph

Jan 20, 2011

I would like to know a simple method to create a simple line graph, with a grid and X and Y values... I tried just drawing in a picturebox but that was just annoying and not clear... Is there any simple way to create a little graph with prefixed values on X and Y (graph should just be lines drawns from different Y values, with always the same change of X)

View 4 Replies

VS 2010 : Line Graph With Chart Control?

Nov 14, 2011

I am trying to make a line chart and from what I've read using the chart control is the best way to go about it, but I have no idea how to do that.

View 4 Replies

VS2008 2D Put Values Into A Scrolling Line Graph

Feb 14, 2011

I'd like to do something I thought was simple. All I'd like is to take the data from a connected database, then put those values into a scrolling line graph. Preferabley with 4 lines (taking information from separate tables) on the same graph. I've connected the database and set up a script to populate it with data, but that's as far as I go with graphs.

I've downloaded 'MSChart.exe', 'MSChart_VisalStudioAddOn.exe', ChartFXLiteNet' and others, yet none work. I've also followed a tutorial here on graphs, but it's for visual studio 2005, and I don't have the options required. I'm using Visual Studio 2008 with VB.NET.

View 4 Replies

Creating A Graph Through The Function?

Mar 1, 2010

I've found some difficulty in creating a graph through the function given.For example:

Function : y = x^2 + 2

y value ranging from -10 to 10

x value ranging from -20 to 20

the graph also gridlines anf title on each axes.

View 5 Replies

Create Plotted Line Graph In Windows Application?

Aug 25, 2011

How can be create plotted line chart in vb.net windows application.In that type of graph how can be taken input values?

View 1 Replies

Creates A Picturebox During Runtime And Displays Line Graph?

Feb 9, 2010

I have this code which creates a picturebox during runtime and displays line graph but I always get an error in this line: gr1.DrawImage(pic1.Image, -m_Dx, 0) 'it says Value cannot be null. Parameter name: image

code
Public Class Form1
Private Const m_Dx As Single = 1
Dim data As Integer = 1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim pic1 As New PictureBox

[Code]...

View 1 Replies

How Can Be Create Plotted Line Graph In Windows Application

Aug 25, 2011

How can be create plotted line chart in vb.net windows application.In that type of graph how can be taken input values?

View 1 Replies

VS 2008 - How To Draw Continuous Line Chart / Graph

Apr 6, 2009

I have two values those are contiguously One is Time along x-axis and second is the CPU Usage in percentage along Y - Axis. I want to draw a continuous line Chart/graph what ever called.

View 11 Replies

Graph A Curve Of A Function In A VB Form?

Jul 9, 2009

How hard would it be to graph a curve of a function in a VB form.

Attached is a graph from excel which is exactly what I need to do.

I have the function of some fluid properties and I'd like to choose a min and max temp then have the function graphed, with temp as the x and the fluid property as the y which would auto scale to fit the curve.

Actually now the program i have to return the properties at one temp is just a GUI front end to call a fortran program to return the properties so actually if I just use that it'd be graphing points and not directly from the function. I can always make it completely VB based if graphing from a function is easier than points. It'd be a slight pain to rewrite all the code for the functions though.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved