Add link to edit/share graphs
#9
by
nolanzandi
- opened
functions/chart_functions.py
CHANGED
@@ -17,7 +17,8 @@ def chart_generation_func(queries: List[str], session_hash):
|
|
17 |
url_base = qc.get_url_base()
|
18 |
# You can get the chart URL...
|
19 |
interactive_url = url_base + '/chart-maker/view/' + url_id
|
|
|
20 |
|
21 |
-
iframe = '<div style=overflow:auto;><iframe\n scrolling="yes"\n width="1000px"\n height="500px"\n src="' + interactive_url + '"\n frameborder="0"\n allowfullscreen\n></iframe>\n</div>'
|
22 |
|
23 |
return {"reply": iframe}
|
|
|
17 |
url_base = qc.get_url_base()
|
18 |
# You can get the chart URL...
|
19 |
interactive_url = url_base + '/chart-maker/view/' + url_id
|
20 |
+
edit_url = url_base + '/chart-maker/edit/' + url_id
|
21 |
|
22 |
+
iframe = '<div style=overflow:auto;><iframe\n scrolling="yes"\n width="1000px"\n height="500px"\n src="' + interactive_url + '"\n frameborder="0"\n allowfullscreen\n></iframe>\n <p>Edit, share, and download this graph <a target="_blank" href="' + edit_url + '">here</a></p></div>'
|
23 |
|
24 |
return {"reply": iframe}
|