Fix for the graph type determination in get_data().
Authored by: bugman 2010-02-19
Parent: [r10782]
Child: [r10784]