Commit 5c27ed6b by Chris Rodriguez

Fixing undefined

parent f2c1f4e5
......@@ -130,7 +130,7 @@ $(function () {
}
} else {
s = {};
s.data = m;
s.data = 0;
s.tick = series[k]['data'][0][0];
s.label = series[k]['label'];
series_order_object.push(s);
......@@ -142,6 +142,8 @@ $(function () {
return a.tick-b.tick;
});
// console.log(series_order_object);
// hide the vertical axis since they are audibly lacking context
for (var i = 0; i < grade_cutoff_ticks.length; i++) {
grade_cutoff_ticks[i][1] = '<span aria-hidden="true">' + grade_cutoff_ticks[i][1] + '</span>';
......@@ -180,10 +182,8 @@ $(function () {
max: ${tickIndex - sectionSpacer},
ticks: function() {
for (var i = 0; i < ticks.length; i++) {
if (series_order_object[i] && series_order_object[i].tick) {
ticks[i][1] = '<span class="aria-hidden=true">' + ticks[i][1] + '</span><span class="sr">' + detail_tooltips[series_order_object[i].label][series_order_object[i].data] + '</span>';
}
}
return ticks;
},
labelAngle: 90
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment