graph.php: fix undefined index 'type' in $plugin_json[$type]

When type wasn't set in the plugin json, a "PHP Notice:  Undefined index"
would pop up. Just default to 'default' when type isn't set.

Closes #76 #77