'Returns the JSON for the plot with non-data elements stripped.
Flattening may increase the utility of the result.
:param (bool) flatten: {\'a\': {\'b\': \'\'}} --> {\'a.b\': \'\'}
:returns: (dict|list) Depending on (flat|unflat)'

def get_data(self, flatten=False):

    return self.data.get_data(flatten=flatten)
