This commit is contained in:
crflynn
2018-04-28 01:16:14 -04:00
parent ab99adce0d
commit 58ea741094
2 changed files with 29 additions and 30 deletions

View File

@@ -1,4 +1,5 @@
{"data": [ {
"data": [
{ {
"x": [ "x": [
"2017-05-01", "2017-05-01",
@@ -6,16 +7,15 @@
"2017-05-03" "2017-05-03"
], ],
"y": [ "y": [
"345234", "2",
"123123", "5",
"456344" "4"
], ],
"name": "Retention", "name": "Retention",
"type": "scatter", "type": "scatter",
"mode": "lines+markers", "mode": "lines+markers",
"connectgaps": true, "connectgaps": true,
"marker": { "marker": {
"color": "rgba(61,133,198,1)",
"symbol": "circle", "symbol": "circle",
"line": { "line": {
"color": "#444", "color": "#444",
@@ -23,11 +23,10 @@
} }
}, },
"line": { "line": {
"color": "rgba(61,133,198,1)",
"shape": "linear", "shape": "linear",
"smoothing": 1, "smoothing": 1,
"width": 2 "width": 2
} }
} }
] ]
} }

View File

@@ -130,7 +130,7 @@ def package(package):
plot = deepcopy(plot_base) plot = deepcopy(plot_base)
data = [] data = []
for category, values in model["data"].items(): for category, values in model["data"].items():
base = deepcopy(data_base) base = deepcopy(data_base["data"][0])
base["x"] = values["x"] base["x"] = values["x"]
base["y"] = values["y"] base["y"] = values["y"]
base["name"] = category.title() base["name"] = category.title()