'Get a class which can encode the data the way the user requested.'

def _GetDataEncoder(self, chart):

    if (not self.enhanced_encoding):
        return util.SimpleDataEncoder()
    return util.EnhancedDataEncoder()
