def _x_format(self):
        """Return the value formatter for this graph"""

        def datetime_to_str(x):
            dt = datetime.utcfromtimestamp(x)
            return self.x_value_formatter(dt)

        return datetime_to_str
Return the value formatter for this graph