Amend xaxis mode to time from category to try to reduce x axis clutter

This commit is contained in:
perryharlock
2013-11-25 16:19:01 +00:00
parent 7c2647653d
commit 9383de3410
5 changed files with 13 additions and 7 deletions

View File

@@ -17,8 +17,9 @@ $(document).ready(function(){
hoverable: true
},
xaxis: {
mode: 'categories',
tickLength: 0
mode: 'time',
tickLength: 0,
timeformat: "%d %b"
},
yaxis: {
tickDecimals: 0
@@ -115,7 +116,7 @@ $(document).ready(function(){
}
function getXAxisLabel (el) {
return el.find('[data-role="category"]').html();
return el.find('[data-role="category"]').attr('data-value');
}
function storeDatum (el, label) {

File diff suppressed because one or more lines are too long