def prepare_series(self, series):
        """Called for each series when the data is being serialized to 
        JSON. Override to set any options based on characteristics of the
        series.

        Currently used to ensure that any bars series get a consistent
        barWidth."""
        if 'bars' in series:
            w = self.calculate_bar_width()
            if w:
                series['bars']['barWidth'] = w
        return series
dataset/ETHPy150Open unbracketed/python-flot-utils/pyflot/graph.py/Flot.prepare_series/original