Added a utility method to return chart output format.