visual studio - Making a good XY (scatter) chart in VB6 -
i need write application in vb6 makes scatter plot out of series of data points.
the current workflow:
- user inputs info.
- a bunch of calculations go down.
- the output data displayed in series of 10 list boxes.
- each time "calculate" button clicked, 2 9 entries entered list boxes.
- one list box contains x coordinates.
- one list box contains y coordinates.
i need to:
- scan through list boxes, , select x's , y's.
- another list box field change time time, varying between 0 , 100, , field needs differentiate series on eventual graph x's , y's go into. have series 1 6 (x,y) data points, series 26 6 data points, series 99 6 data points, etc. or 8 data points. or 2 data points. user controls how many x's there are.
- ideally, i'll have graph multiple series displaying info.
i not allowed use 3rd party solution (e.g. excel). has contained in vb6 application.
i'm trying ms chart, there seems documentation that. however, seems focus on pie charts , other unrelated visualizations.
i'm totally open using ms graph don't know tool , can't find documentation.
a 2d array is, think, no go, since need of dynamically changing size, , can't done (or i've been told). ideally cull through runs, sort data third series parameter, , plug in x's , y's, i'm finding commands , structure ms chart dense i'm running around in small circles.
edit: if can visualize data looks like. (s series, made numbers.)
s x y
1 0 1000000
1 2 500000
1 4 250000
1 6 100000
2 0 1000000
2 2 6500
2 4 5444
2 6 1111
i don't know msgraph, i'm sure there sort of canvas element in vb6 can use draw dots yourself. scatter plots easy graph make on own, long don't need calculate line of best fit.
i suggest looking canvas element , doing hand if can't find tool you.
Comments
Post a Comment