def legend(self, title=None, scale='color', text_color=None):

        self.legends.append(Legend(title=title, fill=scale, offset=0,
                                   properties=LegendProperties()))
        if text_color:
            color_props = PropertySet(fill=ValueRef(value=text_color))
            self.legends[0].properties.labels = color_props
            self.legends[0].properties.title = color_props
        return self
Only questions that are in the main table and of the same version should be shown
dataset/ETHPy150Open wrobstory/vincent/vincent/visualization.py/Visualization.legend--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/export/tests/test_export_instance.py/TestExportInstanceGeneration.test_generate_instance_from_schema