We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 23a3da0 + 0c4c3bd commit 3cfc64dCopy full SHA for 3cfc64d
src/components/UsageChart/UsageChart.tsx
@@ -74,6 +74,11 @@ const UsageChart: React.FunctionComponent<Props> = ({
74
return isAfter(chartDate, publicationYear || 0)
75
})
76
77
+ const subsetWithTimezone = subset.map((d) => ({
78
+ ...d,
79
+ yearMonth: d.yearMonth + '-15T00:00:00Z'
80
+ }))
81
+
82
// get domain, set width according to screen size
83
/* istanbul ignore next */
84
const domain = Math.abs(differenceInMonths(lowerBound, new Date()))
@@ -163,7 +168,7 @@ const UsageChart: React.FunctionComponent<Props> = ({
163
168
<VegaLite
164
169
renderer="svg"
165
170
spec={spec}
166
- data={{ table: subset }}
171
+ data={{ table: subsetWithTimezone }}
167
172
actions={actions}
173
/>
174
</Row>
0 commit comments