Skip to content

Commit

Permalink
Pass numerical value to format functions
Browse files Browse the repository at this point in the history
  • Loading branch information
akhenry committed Aug 2, 2016
1 parent 121ab41 commit 4cd579d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ define(

//Define a custom format function
xAxis.tickFormat(function (date) {
return format.format(date, {min: b.start, max: b.end});
return format.format(date.getTime(), {min: b.start, max: b.end});
});
axisElement.call(xAxis);
}
Expand Down

0 comments on commit 4cd579d

Please sign in to comment.