Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Estadistic GRAPHIC HELL!!!!!!!


Estadistic GRAPHIC HELL!!!!!!!

Author
Message
DigiRev
DigiRev
Forum God
Forum God (23K reputation)Forum God (23K reputation)Forum God (23K reputation)Forum God (23K reputation)Forum God (23K reputation)Forum God (23K reputation)Forum God (23K reputation)Forum God (23K reputation)Forum God (23K reputation)

Group: Forum Members
Posts: 511, Visits: 265
I never even knew that MSChart control existed... Learn something new every day, I guess.
TrickyRic
TrickyRic
Forum God
Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)

Group: Forum Members
Posts: 711, Visits: 6
are you just wanting to draw a graph using plotted x/y points? if so then why not use an array and then just join the dots? eg...

dim a(10) as integer, b as integer

a(0) = 100
a(1) = 300
a(2) = 50
a(3) = 78
'etc...

for b = 0 to 9
line(b, a(b))-(b + 1, a(b + 1)), rgb(255, 0, 0)
next b

...note you'll want to set a custom scalemode or you won't see a thing. even if you use pixels this will only draw a 10pixel wide graph...




API Guide - VB/MySQL - W3Schools - WinsockVB

TallOne
TallOne
Forum God
Forum God (51K reputation)Forum God (51K reputation)Forum God (51K reputation)Forum God (51K reputation)Forum God (51K reputation)Forum God (51K reputation)Forum God (51K reputation)Forum God (51K reputation)Forum God (51K reputation)

Group: Forum Members
Posts: 370, Visits: 212

Hi bandinopla,

I think the MSChart control is one of the most complex controls you will find in visual basic.  I've have used the wizard to get a head start for such things and you will find an attatched project that I created in just a few minutes using the Data Form wizard.  Most of my time (practically all of it) was spent screwing around with the properties pages  (which is probably the richest in the set of VB controls) of the MSChart Control.  These property pages will undoubtedly require some attention from you!   Good Luck and I hope this helps. 

Later

Edit:

You'll have to edit the path in the private constant to match your path.  The constant is in the frmMSChartExample

Private Const CONNECT_STRING = "PROVIDER=MSDataShape;Data Source= C:\My Documents\Code\mschart\ChartExample.MDB;Data Provider=Microsoft.Jet.OLEDB.4.0"



TallOne
bandinopla
bandinopla
Forum God
Forum God (1.8K reputation)Forum God (1.8K reputation)Forum God (1.8K reputation)Forum God (1.8K reputation)Forum God (1.8K reputation)Forum God (1.8K reputation)Forum God (1.8K reputation)Forum God (1.8K reputation)Forum God (1.8K reputation)

Group: Forum Members
Posts: 24, Visits: 1
HI EVERY BODY!!! Fist of all: VISUAL BASIC RULES!!!! OK... mi question is very very very simple, but I don't remember how to do it... Some body explain me how do I do to make a x, y kind of graphic for how in a graphic way two results... I mean, for example: mi fist group of values are the horus that I spend in front of a computer, and the second, the days of the week. Now, some days I spend more time in front of the computer, How I make a graphic in a (x, y) axis using the lineTo... AND I whant to mark in the axis the units I use... like in a rule... HEEELLLPPP!!!
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search