def add_chart(self, component):
        if getattr(component, "name") != "Chart":
            raise Exception("Component is not an instance of Chart")
        self.charts.append(component)
Add a chart to the layout.
dataset/ETHPy150Open stitchfix/pyxley/pyxley/ui.py/UILayout.add_chart