VS 2008 Graph Drawing
Sep 30, 2009
my assignment is to draw a graph within my VB form with a some variables I have. I was told by my boss that I should use Microsoft Chart Control 6.0, but I don't think it matters if it is in another software.I currently have a few variables, each with a lot of values, "Frequency", which is user entered from maximum to minimum, CH (channel) 1-4 which are given by a machine output I use at my company. My graph, is supposed to have the Frequency values in the X-Axis (horizontal) and the CH 1-4 values within a range of each other in the Y-Axis. Can anybody help? My code for extracting the data and getting the frequency is below. How I got most of it is thanks to Stanav, the thread is over here: url...It comes with 3 buttons (I have not put in the code for button 3), the 3rd button will be used for plotting the graph when clicked.
View 3 Replies
ADVERTISEMENT
Sep 21, 2009
VB 6 has a ScaleHeight and ScaleWidth property which VB 2008 does not support and this is causing me fits to work around. I'm trying to draw some lines (a graph) on a Picture Box (or a Panel) using my own coordinates (not pixels). This can't be all that hard can it?
View 3 Replies
Aug 25, 2009
My graph code works but i'm afraid it may not be efficient. I'm drawing a graph on a form using GDI. Basically, i'm making the entire form one big graph. Is this the best approach to creating a graph:
Private Sub frmGraphPaper_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
Dim g As Graphics = e.Graphics
[code].....
View 4 Replies
Jun 20, 2009
I'm having difficulty drawing a graph using a picturebox and the graphics type. For some reason my graph doesn't load, even if I put thec code at the end of the on load event. But it works fine of I assign it to a button.
View 2 Replies
Sep 2, 2009
The problem is I have 10 nodes(say) and there are some connections between them. Now I want to draw a visual graph depicting the above with circles as nodes and lines as connections between them. My problem is what is the algorithm for placement of nodes on screen, say we have drawn one circle, then the other circle should be drawn as non-overlapping as possible.
View 1 Replies
Jan 9, 2011
I am new to vb.net, from VB6. Trying to understand drawing a simple line graph into a picturebox, which was so simple in VB6 ! From code snippets, I can see the basic idea using an bitimage to draw the lines and then showing it in a picturebox. I don't understand how to (simulate) scaling of the bitmap's x/y scales like you could do with VB6's .Scale.
View 1 Replies
Apr 19, 2009
if there's a way to just display the latest Symbol when drawing a graph. My app displays "real time" data from a pointPairlist and I want one graph just to be a + mark with no trace.
Dim myCurve As LineItem = m_graphPane.AddCurve("", m_pointsList, Color.Red, SymbolType.Plus)
This will show a red line with a + with every pointpair, I just want to display the latest pointpair, as an +.
View 2 Replies
Nov 27, 2009
drawing 2D color coded graph in vb 2005
View 2 Replies
Nov 21, 2009
My problem is centering the 0,0 points of my graph to the center of my picturebox
Dim picBoxWidth As Integer = picGraf.Size.Width
Dim picBoxHeight As Integer = picGraf.Size.Height
Dim halfWidth As Integer = picGraf.Size.Width / 2
[code]....
So how to I tell it to start at the center of my picturebox names (picgraf) btw.
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
Jul 12, 2009
I want to know if it is possible to create a bargraph in vb.net based on the values retrived from the database? [code]What I want to do in VB.Net windows application is to create a bar chart based on the data retrieved from the database.
View 8 Replies
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
Mar 18, 2011
I have series of video files that i need to automatically draw some line over through to the en. The line varies, the values will be provided, is this possible in vb.net?
View 1 Replies
Aug 25, 2009
I am having problems passing data from one form to another form opened from the first form.Here is my scenario: I have my start-up form. From this form I open a form by using the following:
[code]...
I use this because I want to be able to open multiple forms from the start-up form.Then from the PartyDetail form I open another form to display order details, like this:
[code]...
I want this order details form to be able to get a partyid variable from the party detail form.This works, but depending on the order that I open the forms the variables are incorrect Example:If I open the first PartyDetail form and then open the OrderDetail form, it works correctly. I can open as many PartyDetail and OrderDetail forms that I want and the variables are correct.But, say I open a PartyDetail form and then open another PartyDetail form and then open the OrderDetail form from the first opened PartyDetail form, it displays data based on the second opened PartyDetail form instead of the first. Basically, I want to be able to open multiple PartyDetail forms and then open OrderDetail forms based on whichever PartyDetail form it is opened from.Right now I am using Public Shared variables on the PartyDetail form and accessing this variable from the OrderDetail form. I suspect this is my main problem but don't know the best way to pass the variables from the PartyDetail form to the OrderDetail form.What would be the best way to do this?
View 2 Replies
Jun 22, 2009
I am now using VB2008 + MS Access 2007 to complete a small applicaiton.I was make use of access 's information to export the information from Access to the vb's database. I had completed the function of search the stock. However, I don't know how to create the chart in Visual Basic 2008 express version. I have downloaded the MS Chart, but I don't know how to make use of it. My objective is creating the chart that can search from month to month. Of course, the data will be updated monthly. My second question is how to build up the query that can search the top value in the Visual Basic. I know how to create in the MS Access. But I want to create the top value that can be change in visual basic, such as sometimes 10,20 or 30. Or I need to create in the MS Access, but not the VB 2008??
View 7 Replies
Feb 12, 2010
I want to make a pie graph on my form. Can I do this? If so what do I need in the way of controls?
View 5 Replies
Apr 10, 2010
Will any of the free light-weight charting libraries; ZedGraph or NPlot, be able to draw a simple graph similar to attached image (no waste of space, and with colored plot areas)? This plot will act much like the task manager "CPU Usage" plots, with update of last value every 500ms, but only making a new datapoint every 1 minute or so.
Or is this so extremely simple that it's better to hard-code it? What classes should I look into for this?
View 3 Replies
Nov 19, 2009
I need to read a text file with 100 data points across different parameters and use VB to select two variables to compare on a line graph.
1) How do I read a text file into a form?
2) How do I create a graph with the proper labels?
3) How do I choose the x and y axes when given several data sets to analyze?
View 2 Replies
Mar 9, 2011
I get difficult with creating graph using zedgraph. I need code for this sample graph... I need it's code so much.
View 1 Replies
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
Mar 26, 2009
Is there a way to draw a graph in real time. The excel file has one column with the time in sec.(x) and the other column is data(y). The examples with charts I've seen is about converting to a picture, then paste it to a picturebox.
View 2 Replies
Jul 24, 2009
Is it possible to create a graph by using data from a database?
View 2 Replies
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
Aug 14, 2009
Im trying to monitor the battery of notebooks to diagnose whether there charging/discharging correctly or not for my work. I can get the basic info using SystemInformation.PowerStatus but i want to be able to see the slope or decline of the charging via a graph. Is this possible? i was playing with the system monitor control and thats the kind of output im trying to get. A simple line graph would be perfect....passmarks battery test is a example of what im going for
View 2 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 2, 2010
how to rotate an xy scatter graph in Excel2003 from vb.net? The rotate property is only valid for 3d graph, i think.
View 3 Replies
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
Jun 3, 2012
draw individual pixels, without resorting to drawing a line and setting it's length to 1. Is there an actual ability to draw a pixel that is just 1 pixel big?
View 2 Replies
Nov 25, 2009
When I isolate the following code to create a chart, the result is normal. But when I call it from a control, duplicate legend and Y-axis scales and labels appear.
I did a line-by-line comparison and detected no code differences.
1) What is the likely culprit?
2) Is there a cleaner way to activate a graph?
Private Sub Button15_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button15.Click
Dim frm As New WindowsApplication1.Form8()
[Code].....
View 5 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