remove he package and rename uniqueDates to ticks
This commit is contained in:
parent
dbca60a660
commit
e79a4b9025
|
@ -329,7 +329,7 @@ export const drawAxis = ( node, params ) => {
|
||||||
.tickValues( ticks )
|
.tickValues( ticks )
|
||||||
.tickFormat( ( d, i ) => {
|
.tickFormat( ( d, i ) => {
|
||||||
const monthDate = d instanceof Date ? d : new Date( d );
|
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 );
|
prevMonth = prevMonth instanceof Date ? prevMonth : new Date( prevMonth );
|
||||||
return monthDate.getDate() === 1 ||
|
return monthDate.getDate() === 1 ||
|
||||||
i === 0 ||
|
i === 0 ||
|
||||||
|
|
|
@ -8190,11 +8190,6 @@
|
||||||
"minimalistic-assert": "^1.0.1"
|
"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": {
|
"history": {
|
||||||
"version": "4.7.2",
|
"version": "4.7.2",
|
||||||
"resolved": "https://registry.npmjs.org/history/-/history-4.7.2.tgz",
|
"resolved": "https://registry.npmjs.org/history/-/history-4.7.2.tgz",
|
||||||
|
|
|
@ -99,7 +99,6 @@
|
||||||
"d3-selection": "^1.3.0",
|
"d3-selection": "^1.3.0",
|
||||||
"d3-shape": "^1.2.0",
|
"d3-shape": "^1.2.0",
|
||||||
"d3-time-format": "^2.1.1",
|
"d3-time-format": "^2.1.1",
|
||||||
"he": "^1.1.1",
|
|
||||||
"lodash": "^4.17.10",
|
"lodash": "^4.17.10",
|
||||||
"react-dates": "^16.7.0",
|
"react-dates": "^16.7.0",
|
||||||
"react-slot-fill": "^2.0.1",
|
"react-slot-fill": "^2.0.1",
|
||||||
|
|
Loading…
Reference in New Issue