codyml commented on code in PR #21551: URL: https://github.com/apache/superset/pull/21551#discussion_r979119277
########## superset/examples/echarts_dashboard.py: ########## @@ -113,138 +496,813 @@ def load_echarts_dashboard() -> None: dash = Dashboard() js = textwrap.dedent( - """\ + """ { - "CHART-dxV7Il74hH": { - "children": [], - "id": "CHART-dxV7Il74hH", - "meta": { - "chartId": 597, - "height": 50, - "sliceName": "Box plot", - "width": 6 - }, - "type": "CHART" - }, - "CHART-YyHWQacdcj": { - "children": [], - "id": "CHART-YyHWQacdcj", - "meta": { - "chartId": 15, - "height": 50, - "sliceName": "Participants", - "width": 6 - }, - "type": "CHART" - }, - "CHART-oWKBOJ6Ydh": { - "children": [], - "id": "CHART-oWKBOJ6Ydh", - "meta":{ - "chartId": 16, - "height": 50, - "sliceName": "Genders", - "width": 6 - }, - "type": "CHART" - }, - "CHART-06Kg-rUggO": { - "children": [], - "id": "CHART-06Kg-rUggO", - "meta": { - "chartId": 617, - "height": 50, - "sliceName": "Number of Girls", - "width": 6 - }, - "type": "CHART" - }, - "CHART--wEhS-MDSg": { - "children": [], - "id": "CHART--wEhS-MDS", - "meta": { - "chartId": 2, - "height": 50, - "sliceName": "Energy Force Layout", - "width": 6 - }, - "type": "CHART" - }, - "CHART--LXvS-RDSu": { - "children": [], - "id": "CHART--LXvS-RDSu", - "meta": { - "chartId": 398, - "height": 50, - "sliceName": "Time-Series Bar Chart V2", - "width": 6 - }, - "type": "CHART" - }, - "GRID_ID": { - "children": [ - "ROW-SytNzNA4X", - "ROW-HkFFEzVRVm", - "ROW-BytNzNA4Y" - ], - "id": "GRID_ID", - "type": "GRID" - }, - "HEADER_ID": { - "id": "HEADER_ID", - "meta": { - "text": "ECharts Dashboard" - }, - "type": "HEADER" - }, - "ROOT_ID": { - "children": [ - "GRID_ID" - ], - "id": "ROOT_ID", - "type": "ROOT" + "CHART-1": { + "children": [], + "parents": [ + "ROOT_ID", + "TABS-TOP", + "TAB-TOP-1", + "ROW-1" + ], + "id": "CHART-1", + "meta": { + "chartId": 1, + "height": 50, + "sliceName": "Big Number", + "width": 6 }, - "ROW-HkFFEzVRVm": { - "children": [ - "CHART-dxV7Il74hH", - "CHART-oWKBOJ6Ydh" - ], - "id": "ROW-HkFFEzVRVm", - "meta": { - "background": "BACKGROUND_TRANSPARENT" - }, - "type": "ROW" - }, - "ROW-SytNzNA4X": { - "children": [ - "CHART-06Kg-rUggO", - "CHART-YyHWQacdcj" - ], - "id": "ROW-SytNzNA4X", - "meta": { - "background": "BACKGROUND_TRANSPARENT" - }, - "type": "ROW" - }, - "ROW-BytNzNA4Y": { - "children": [ - "CHART--wEhS-MDSg", - "CHART--LXvS-RDSu" - ], - "id": "ROW-BytNzNA4Y", - "meta": { - "background": "BACKGROUND_TRANSPARENT" - }, - "type": "ROW" + "type": "CHART" + }, + "CHART-2": { + "children": [], + "parents": [ + "ROOT_ID", + "TABS-TOP", + "TAB-TOP-1", + "ROW-1" + ], + "id": "CHART-2", + "meta": { + "chartId": 2, + "height": 50, + "sliceName": "Big Number with Trendline", + "width": 6 + }, + "type": "CHART" + }, + "CHART-3": { + "children": [], + "parents": [ + "ROOT_ID", + "TABS-TOP", + "TAB-TOP-1", + "ROW-1" + ], + "id": "CHART-3", + "meta":{ + "chartId": 3, + "height": 50, + "sliceName": "Table", Review Comment: I'm not seeing this one in the dashboard. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org