Widget for zen cart data

Want to create a widget for zen cart’s admin to graph the order figures from the orders table in the zen cart database against the visitor traffic. How do I get the data from zen cart to create the widget and insert into the zen cart admin to do this? There doesn’t seem to be any way to use custom data in widgets. Please help as only have basic programming knowledge and not sure where to start tackling this.