use getChart method to retrieve charts

fix for https://jira.zenoss.com/browse/ZEN-12294

Needed for https://github.com/zenoss/query/pull/64