I have created some content using php, js and html which shows the bandwidth the site has used (using the cPanel API and the Google Graphs API)
I want this to be shown on the dashboard in Wordpress (viewable to Admins and Editors only)

I'm very new to Wordpress, so I'm not sure how to achieve this. After reading this it looks like I would need to create a widget, but I don't know how to. I also don't know where I would have to add the code. Is there not an easy way to add a some static code? Or a blank widget that I could add some code to?
–
baritoneukAug 10 '11 at 19:46

You don't need parentheses on includes. Also note, you didn't give an example of how to limit that dashboard widget to the admin and editor roles(which was part of the original question). Add that into your answer and i'll +1 you... ;)
–
t31osAug 11 '11 at 10:18

You don't need paretheses but I find using them on includes more asthetically pleasing. Yes, it would be useful to know how I can show the widget for admin and editor.
–
baritoneukAug 12 '11 at 9:03

Although I was hoping to know how I can show this widget for the specific roles of admin and editor, this answer has been most helpful and so I am marking it as the accepted answer.
–
baritoneukAug 18 '11 at 14:30