add an initial point to the karma key graph
This commit is contained in:
parent
28002db80b
commit
03047c458f
@ -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 %}]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user