1 Attachment(s)
Need help with a little bit of functionality.
For the last week I have been messying around with some simple graphing code, the link is in my sig.
The graph can plot many datasets. A dataset is just a collection of values. This means that you can plot numerous graphs on the same graph. Does that make sense.
This isn't just a simple graphing tool. it can be used to 100% replicated the graphic equalizer music thingy from media player and the moving graphs that you see in task manager.
Anyways. If you download the zip and run Test.vpg and click the Music button you will see the media player demo.
Notice how the little blue "caps", I call them caps as I don't know what they are really called, are still visible when their value is 0.
This looks silly. I can change this by setting the value < 0 so it appears off the graph, and therefore doesn't get drawn. Another method would to have these points as the 1st dataset, and the green bars would then paint over these "caps".
I don't like either method. Anyone got any suggestions?
How about setting an upper and lower limit, bit like in stats, and any values outside these limits don't get drawn?
Or having a visible property on a Point object?
The next thing is slightly releated. If I am displaying 2 datasets that both show bars then how should I draw these? The largest bar at the back and smallest at the front? On top of each other? How? This I really don't have a clue about at this moment in time, although it's not 100% important, unlike my 1st problem.
Any other suggestions would be greatful.
Woof
PS U need to have VB6 to run this directly. If you don't then you have to manually edit the class files for it to run in VB5.
Re: Need help with a little bit of functionality.
Quote:
Originally posted by Wokawidget
The next thing is slightly releated. If I am displaying 2 datasets that both show bars then how should I draw these? The largest bar at the back and smallest at the front? On top of each other? How? This I really don't have a clue about at this moment in time, although it's not 100% important, unlike my 1st problem.
Any other suggestions would be greatful.
Woof
You need to have the same baseline if your comparing both bars so stacking them is not a good idea in that case. Stacking is applicable if your graphing say the number of students in a class, bar 1 for boys bar 2 for girls, so you'll see the gender composition of each class bar aside from seeing which sections have few students.
For the case with the same baseline, a 2D graph is not advisable. You won't be able to distinguish between case of one bar being zero and another case wherein both bars are equal. You need a 3D graph for that.