summaryrefslogtreecommitdiff
path: root/app/views/projects/product_analytics/_graph.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/product_analytics/_graph.html.haml')
-rw-r--r--app/views/projects/product_analytics/_graph.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/projects/product_analytics/_graph.html.haml b/app/views/projects/product_analytics/_graph.html.haml
new file mode 100644
index 00000000000..fd81a248005
--- /dev/null
+++ b/app/views/projects/product_analytics/_graph.html.haml
@@ -0,0 +1,6 @@
+- graph = local_assigns.fetch(:graph)
+
+%h3
+ = graph[:id]
+
+.js-project-analytics-chart{ "data-chart-data": graph.to_json, "data-chart-id": graph[:id] }