mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
Fix date-parsing bug.
This commit is contained in:
parent
9b4791534b
commit
40f336e8bc
@ -287,7 +287,7 @@ class window.Morris.Line
|
|||||||
# calculate a decimal-year value
|
# calculate a decimal-year value
|
||||||
year + (timestamp - y1) / (y2 - y1);
|
year + (timestamp - y1) / (y2 - y1);
|
||||||
else
|
else
|
||||||
parseInt(d, 10)
|
parseInt(date, 10)
|
||||||
|
|
||||||
# make long numbers prettier by inserting commas
|
# make long numbers prettier by inserting commas
|
||||||
# eg: commas(1234567) -> '1,234,567'
|
# eg: commas(1234567) -> '1,234,567'
|
||||||
|
Loading…
Reference in New Issue
Block a user