@density/chart-historical-counts
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -206,3 +206,3 @@ 'use strict'; | ||
.tickValues(d3.range(firstHourMark, domainEnd, MINUTES_PER_HOUR * SECONDS_PER_MINUTE * MILLISECONDS_PER_SECOND)).tickSizeOuter(0).tickFormat(function (d, i) { | ||
var timeFormat = (0, _moment2.default)(d).add(timeZoneOffset, 'hours').format('hA'); | ||
var timeFormat = _moment2.default.utc(d).add(timeZoneOffset, 'hours').format('hA'); | ||
return timeFormat.slice(0, timeFormat.startsWith('12') ? -1 : -2).toLowerCase(); | ||
@@ -209,0 +209,0 @@ }); |
@@ -116,3 +116,3 @@ 'use strict'; | ||
enteringGroup.select('.historical-counts-overlay-bottom-text').text((0, _moment2.default)(timeAtPosition).add(timeZoneOffset, 'hours').format('hh:mm A[' + (timeZoneLabel ? ' (' + timeZoneLabel + ') ' : ' ') + ']ddd MMM YY')); | ||
enteringGroup.select('.historical-counts-overlay-bottom-text').text(_moment2.default.utc(timeAtPosition).add(timeZoneOffset, 'hours').format('hh:mm A[' + (timeZoneLabel ? ' (' + timeZoneLabel + ') ' : ' ') + ']ddd MMM YY')); | ||
@@ -119,0 +119,0 @@ enteringGroup.select('.historical-counts-overlay-top-text').attr('transform', 'translate(' + overlayDialogTopTextCenterOffset + ',0)').text(countAtPosition); |
@@ -212,3 +212,3 @@ import './styles.scss'; | ||
.tickFormat((d, i) => { | ||
const timeFormat = moment(d).add(timeZoneOffset, 'hours').format(`hA`); | ||
const timeFormat = moment.utc(d).add(timeZoneOffset, 'hours').format(`hA`); | ||
return timeFormat.slice( | ||
@@ -215,0 +215,0 @@ 0, |
@@ -174,3 +174,3 @@ import { bisector } from 'd3'; | ||
enteringGroup.select('.historical-counts-overlay-bottom-text') | ||
.text(moment(timeAtPosition).add(timeZoneOffset, 'hours').format(`hh:mm A[${timeZoneLabel ? ` (${timeZoneLabel}) ` : ' '}]ddd MMM YY`)); | ||
.text(moment.utc(timeAtPosition).add(timeZoneOffset, 'hours').format(`hh:mm A[${timeZoneLabel ? ` (${timeZoneLabel}) ` : ' '}]ddd MMM YY`)); | ||
@@ -177,0 +177,0 @@ enteringGroup.select('.historical-counts-overlay-top-text') |
{ | ||
"name": "@density/chart-historical-counts", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Historical Counts chart", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
680218
2063