What are you working on?

For everything that's not in any way related to PureBasic. General chat etc...
eesau
Enthusiast
Enthusiast
Posts: 589
Joined: Fri Apr 27, 2007 12:38 pm
Location: Finland

Re: What are you working on?

Post by eesau »

blueznl wrote:Some boring graphics (bar chart line chart pie chart etc.) related stuff...

http://www.youtube.com/watch?v=pF5dgFh_ebQ
That's not boring at all! Looks really nice :) Does it draw on a canvasgadget?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: What are you working on?

Post by blueznl »

Nope. It actually draws on an image. I think I've put in most options that I want / need now.

Next steps are a horizontal index / values, a legend, and support for bars and missing data marking, as well as datetime stamps and different font sizes. Still some things to do then, I guess...

It currently uses an integer table with a variable number of columns, and it's possible to specify outputs with a formatted string like "<#.##xx" which means something like: 'throw away the last two digits, and insert a dot at position number 3'. Effectively translating 123456 to 12.34. This way I can (ab)use ints for the whole range... The whole background and reason is a bit complex and has little to do with the code itself. I just went overboard :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: What are you working on?

Post by blueznl »

Got a bit further, source code (you need to change the include) and a little ready-to-test exe are here:

http://www.xs4all.nl/~bluez/purebasic/graph.zip

Run the .exe more than once, first and last graph have some random components. Resize the window to see the autoscaling rulers at work.

Autoscaling rulers optimized for the screen were a bit harder than I thought. And yeah, the code is a mess, don't even look at it :-)

Haven't implemented or tested all options yet, especially haven't checked out the results with different fonts... so many things to do :(
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply