Skip to content

Commit 2a42cb8

Browse files
committed
Updating bubble.html to programmatically generate chart of apps and their contributions. WIP.
1 parent ab0328c commit 2a42cb8

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

templates/bubble.html

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{% extends 'base.html' %}
2+
{% block title %}App Contributions to Customer Success{% endblock %}
3+
24
{% block content %}
35

46
<!-- jQuery -->
@@ -8,7 +10,7 @@
810
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.js"></script>
911
<script src="/static/js/call_by_date.js"></script>
1012

11-
13+
<h1>App Contributions to Customer Success</h1>
1214
<div class="row">
1315
<!-- /.col-lg-4 -->
1416
<div class="col-lg-4">
@@ -20,7 +22,19 @@
2022
data: {
2123
labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
2224
datasets: [
23-
{
25+
{% for app in app_contributions %}
26+
{
27+
label: "{{ app['app_name'] }}",
28+
data: [
29+
{
30+
x: {{ app['ltv'] }},
31+
y: {{ app['arpu'] }},
32+
r: {{ app['retention'] }}
33+
},
34+
],
35+
},
36+
{% endfor %}
37+
{
2438
label: 'First Dataset',
2539
data: [
2640
{

0 commit comments

Comments
 (0)