drop the artificial data point at 0,0

kinda screwing up some graphs
This commit is contained in:
Brian S. Stephan 2016-03-31 19:19:35 -05:00
parent c364578e5d
commit b82e5309e1
1 changed files with 2 additions and 2 deletions

View File

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