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
ADVERTISEMENT
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
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
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
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
Jan 9, 2010
I want to create an app for Windows that displays a graph. I want to plot points on that graph.
I can't find a Toolbox control for this.software developer
View 8 Replies
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
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
Feb 23, 2011
How can i use zed graph web to graph a dataset or datatable, the only examples i have found use test data.
View 2 Replies
Dec 29, 2011
I am working on an application that ties into a SQL database on the back end. Currently the main form contains a series of combo boxes (Graph type, data format, location, and customer), two date pickers, and a button to launch the selections in a new form. Everything works just fine except there are a couple of things I can't seem to accomplish.
Example Data:
[CODE]...........
Case Select (with commented out lines for variations attempted):
[CODE]..........
1) I would like to be able to use some sort of case statement to color the bars in my chart based on value. I have tried approaching this in a couple of different ways but neither of the options seem to work. First, I tried this (the If Not is used because depending on what values are passed to the stored procedure in SQL, different columns will be returned):
[CODE]..........
Only one series is created with this method, so I can see how/why a Select Case would set all bars the same color. I have also tried creating a series for each row in the returned dataset but it results in 22 bars of different colors, for each of the rows (484 bars):
[CODE]..........
So is there any way to modify the second set of code there to only select the value from the "Percent TMHB" cell that corresponds with Row(i), rather than ALL values from the "Percent TMHB" column for EACH Row(i)?
2) Since I am drawing/creating these graphs in a new window, is there any way to also create a new timer on the "newFrm" and have the tick refresh the data? I've struggled with this but I feel like it should be easy. Say someone chooses a "TMHB", "Percentage", "Chicago", "All" (Graph type, data format, location, customer) and launches the graph, which opens in a new window, then they want to do "TMHB", "Percentage", "LA", "All" and have both windows up, refreshing automatically throughout the day. Can I somehow store the SelectCommand.Parameters values in the new form/timer so that it will query the database again every 5 minutes?
Example code for the StoredProcedure and creating the new form:
If combo_GraphType.SelectedItem = "TMHB" Then
Dim newFrm As New Form
Dim newChart As New Chart
[CODE]..................
View 1 Replies
Oct 1, 2010
I am new to VB.net. I need to plot some Cartesian plots in vb.net 2010 enterprise edition. This is what I need to show in the plot:
- individual x-y points
- curve connecting the points
- coordinate axis and possibly a grid
I have no idea how to plot this. Actually I'm not even sure which control I would use. Should I draw this in a pictureBox?
View 2 Replies
Oct 24, 2011
How do you plot dynamic data (from a dataset) on MSChart?
View 3 Replies
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
Feb 3, 2012
I need to be able to plot (for example) the following values on a chart:
4.5
3.1
5.3
2.1
<1.0
2.5
The value <1.0 is there as we cannot give the exact value if it is less than 1 but we need to display it.
Is there a way of just displaying the datapoint label with '<1.0' as text, or something similar?
View 1 Replies
May 3, 2012
i need to plot a 3D series of x,y,z coordinate in VB. I have search for hours on this matter but I can't seemed to find the answer.
The image above shows an example the kind of plot i am interested in.
View 5 Replies
May 9, 2011
I have an global array of points that i want to plot in VB. say X and Y points, and typically they have values of +/-12000. Now I've not done graphics work for a long time and when I did, I used OpenGL with C. Now I need a GUI i'm using VB 2008. Firstly, what's the best method of rendering the array of points? should I use some port of OpenGL? GDI? or what?
Secondly, can I simply print to perhaps a Panel on hit of a button? Thirdly, do I have to place any line drwing code in an "OnPaint" event handler? Finally (for now) if my array represents points in a space much larger than the painting surface, how would I scale and scroll the final image within the the proposed Panel? I look forward to your advice.
View 3 Replies
Feb 23, 2009
I am a total beginner to software development, I have purchased a copy of Visual Studio 2008 and have been working through a self teach book on Visual Basic.NET. I have some ideas for applications that I want to develop and am in need of some pointers.
I want to plot graphical objects and standard lines and rectangles based on coordinate data that I have imported into an array from a tab delimited text file. I have some bitmap symbols that I have created and I want to plot these in my programme along with some labels and save the output as a bitmap file or other suitable image file.
I am having trouble finding any help in the online documentation and want know where I need to start. Do I plot the graphics directly onto a form or do I need to add them to a picture box? When I get this far how to I create the image file?
View 2 Replies
Feb 24, 2010
This is my first attempt at doing something in VB.net. I would like to be able to read a text file consisting of a column of data values and then pass the data as a variable to a sub that produces a line graph and updates it with each iteration through the loop. So far I have the code to read the file as well as some code that produces a line graph using hard coded values.
I am unsure how to call this sub from my loop such that I can pass that data value read from the file to the graphing sub.
How can I call the "PictureBox1_Paint" sub from my loop? How can I pass variables read from the data file to "PictureBox1_Paint" when I am calling it? Is there anything different that needs to be done if I want the graph to update with each iteration through the loop (for each data point)?
Public Class Form1
Private Sub Start_button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Start_button.Click
[Code].....
View 2 Replies
Nov 18, 2010
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Make the data array.
Dim people(3) As Person
people(0) = New Person("Ann", "Able")
people(1) = New Person("Ben", "Baker")
people(2) = New Person("Cindy", "Carruthers")
[CODE]...
Above is my code for vb.net to plotting the array list into datagridview. It is success to plotting, but why the datagridview unable to manual add row after plotting?
View 1 Replies
May 17, 2012
So I have a 2D array of data, specifically, one "Cv" value for every 10% increment. I have been able to get the Cv's plotted vs % open with the following method:
Private Sub btnPlot_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPlot.Click
Dim tempString As String
[Code]....
I haven't yet looked into this, but if there's any way to also export this graph as an image into an excel spreadsheet, We will be creating several spec sheets as excel workbooks and we will need to be outputting standardized sheets, which is why I'm trying to make this an application instead of directly implementing the code in Excel with VBA.
View 1 Replies
Jul 2, 2009
I have to draw a bar graph in my vb.net program. I used AxMSChart to create a graph. Everything has gone fine but when i published this and run on Vista PC, all form was good except my form includes MSChart. It says class not registered.So i have to draw a graph except MSChart tool.
View 10 Replies
Jan 31, 2011
I need to plot some analog values read from the serial port.I plot them in a picturebox starting from left. When I reach the end of the control at the right side I shift all values to the left of a point and I plot the new point at the right, (I have some flickering but it could be acceptable). This is my plotting control.My problem is that I have to clear the control (picturebox) in order to plot the shifted graph, but the method Clear of the Graphics class clears everything inside the picturebox, even my grid.How can i make always visible a grid "in" my picturebox?
1.a transparent image with a grid over the PB? (the clear method cannot remove it)
2.an image with a grid below the picturebox that must be with a transparent background to make visible the grid?
3.multiple layers on the same picturebox?
View 5 Replies
Oct 16, 2009
I am looking for Graph libraries for .net. Are there any out?ps: I mean GRAPH libraries, not graphics nor charting libraries!
View 12 Replies
Jan 6, 2010
need to code up a bar graph in vb.net..
View 1 Replies
Jul 9, 2010
A part of my project is related to the dynamic data that stored in excel or access (anyone). i need to create a program which can automatically display the graph for these data. Just let say there are three data in excel or access[code]...
how can i display the graph for these data in visual basic?
View 4 Replies
Oct 13, 2010
I downloaded mschart20.ocx manually and register it with regsvr32.exe bu it gives an error ven I tried to launch my program. link to set up mschart property to my visual studio 2008 prof.edt. I need to draw a x/y graph with visaul basic.
View 1 Replies
Mar 1, 2012
i am to generate a line graph in vb.net. The graph should be something dynamic. I have a program calculating total distance, therefore in my output window i have iteration number and its corresponding value.
I have to plot the graph as iteration number by iteration value.I have tried an offline graph where i saved the values of the iterations and then draw the graph with the values.
But this is not what i am actually suppose to do. The graph should be generated simultaneously as the processing is being done. I am finding this a bit tough to do.
View 3 Replies
Apr 30, 2012
I have a CSV file in my working directory and dont know how to load in into a graph in VB. I already loaded my chart into the form and its called "Chart1" with "Series1".
The CSV has the following structure:
Date Value1 Value2
27/04/2012 45.1 60.1
26/04/2012 45.2 60.2
.. ..
how to extract this data from the "*.csv" file and put in it a graph where the Date is the x axis and the Value2 is the y axis.
View 10 Replies
Aug 15, 2011
I need to add a title to a graph? The code I run to create the graph is
<strong>Dim strConn As String = connectionstring
Dim conn As New SqlConnection(strConn)
Dim sqlProducts As String = "SELECT * from VW_OEEBrakeDowns_ByYear where Year ='" & Me.lbyear.Text & "' and LineNumber =" & Me.lbline.Text & ""
Dim da As New SqlDataAdapter(sqlProducts, conn
[Code] .....
View 1 Replies
May 11, 2009
I want to plot X,Y points by using visual basic. Which command do I use? Do I need to import a specific component? I don't' want to use use Excel.
View 3 Replies