remove he package and rename uniqueDates to ticks

This commit is contained in:
Robert Elliott 2018-09-17 11:07:11 +02:00
parent dbca60a660
commit e79a4b9025
3 changed files with 1 additions and 7 deletions

View File

@ -329,7 +329,7 @@ export const drawAxis = ( node, params ) => {
.tickValues( ticks )
.tickFormat( ( d, i ) => {
const monthDate = d instanceof Date ? d : new Date( d );
let prevMonth = i !== 0 ? params.uniqueDates[ i - 1 ] : params.uniqueDates[ i ];
let prevMonth = i !== 0 ? ticks[ i - 1 ] : ticks[ i ];
prevMonth = prevMonth instanceof Date ? prevMonth : new Date( prevMonth );
return monthDate.getDate() === 1 ||
i === 0 ||

View File

@ -8190,11 +8190,6 @@
"minimalistic-assert": "^1.0.1"
}
},
"he": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz",
"integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0="
},
"history": {
"version": "4.7.2",
"resolved": "https://registry.npmjs.org/history/-/history-4.7.2.tgz",

View File

@ -99,7 +99,6 @@
"d3-selection": "^1.3.0",
"d3-shape": "^1.2.0",
"d3-time-format": "^2.1.1",
"he": "^1.1.1",
"lodash": "^4.17.10",
"react-dates": "^16.7.0",
"react-slot-fill": "^2.0.1",