add an initial point to the karma key graph

This commit is contained in:
Brian S. Stephan 2016-03-30 17:20:33 -05:00
parent 28002db80b
commit 03047c458f
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
Chart.defaults.global.maintainAspectRatio = true;
var ctx = $("#karma_history").get(0).getContext("2d");
var data = {
labels: [{% for x in entry.history %}"{{ x.0 }}", {% endfor %}],
labels: ["EPOCH", {% for x in entry.history %}"{{ x.0 }}", {% endfor %}],
datasets: [
{
label: "{{ entry.key }}",
@ -25,7 +25,7 @@
pointStrokeColor: "#fff",
pointHighlightFill: "#fff",
pointHighlightStroke: "rgba(220,220,220,1)",
data: [{% for x in entry.history %}{{ x.2 }}, {% endfor %}]
data: [0, {% for x in entry.history %}{{ x.2 }}, {% endfor %}]
}
]
};