That's not boring at all! Looks really niceblueznl wrote:Some boring graphics (bar chart line chart pie chart etc.) related stuff...
http://www.youtube.com/watch?v=pF5dgFh_ebQ
What are you working on?
Re: What are you working on?
Re: What are you working on?
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
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 - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Re: What are you working on?
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
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 - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )

