Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Bar and Line Graph

Author
Message
xprezz
13
Years of Service
User Offline
Joined: 13th Jun 2011
Location:
Posted: 14th Jun 2011 00:53
Ideally looking for a snippet that draws a bar graph AND a snippet for a line graph, such as one produced in MS Excel.
Found a snippet for a PIE graph which failed to work.
Anyone could kickstart me here ?

The aim is to download data points from a FTP (all that is already working fine) .....and then to update/create 7 different line graphs (time series data) and 1 Bar graph w/ 8 bars.
24hr interval until reset.

Even if you have only part of the solution I would be most grateful for any piece of the puzzle

Swedish guy returning to coding after loooong break, stil finds it exhilarating. great tool this DBpro!
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 14th Jun 2011 01:06
You might want to start with Diggsey's Advanced 2D plugin for fast line drawing

From there, it should be easy to plot your points on the screen and draw the lines and boxes for your charts

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 15th Jun 2011 09:27
I've been wanting to do some graphs in DB for awhile. I guess you just motivated me to make some.

Here's a simple 1D line graph and a bar graph. I added a little animation to the bar graph when the values change. Just hit the spacebar to update the graph values.




xprezz
13
Years of Service
User Offline
Joined: 13th Jun 2011
Location:
Posted: 16th Jun 2011 18:53
Faaantastic ! I bow and show my sincerest and most humble gratefullness. I would never never ever expect anyone to make such an effort. In a flash I now have all my pieces for my project.
Thank you so much.
I also can study your nice code to get a better feel for DBpro. It helps when you are interested in the end result.

Swedish guy returning to coding after loooong break, still finds it exhilarating. great tool this DBpro!

Login to post a reply

Server time is: 2024-11-22 18:44:43
Your offset time is: 2024-11-22 18:44:43