Page 2 of 2
Re: What are you working on?
Posted: Tue Aug 06, 2013 5:33 pm
by eesau
That's not boring at all! Looks really nice

Does it draw on a canvasgadget?
Re: What are you working on?
Posted: Tue Aug 06, 2013 6:18 pm
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

Re: What are you working on?
Posted: Mon Aug 12, 2013 12:16 pm
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
