fix missing import of timeWeek which would cause errors in prometheus graphs with deployments
This commit is contained in:
parent
58a705aaac
commit
e3f215f676
1 changed files with 12 additions and 2 deletions
|
@ -1,8 +1,18 @@
|
|||
import { timeFormat as time } from 'd3-time-format';
|
||||
import { timeSecond, timeMinute, timeHour, timeDay, timeMonth, timeYear } from 'd3-time';
|
||||
import { timeSecond, timeMinute, timeHour, timeDay, timeWeek, timeMonth, timeYear } from 'd3-time';
|
||||
import { bisector } from 'd3-array';
|
||||
|
||||
const d3 = { time, bisector, timeSecond, timeMinute, timeHour, timeDay, timeMonth, timeYear };
|
||||
const d3 = {
|
||||
time,
|
||||
bisector,
|
||||
timeSecond,
|
||||
timeMinute,
|
||||
timeHour,
|
||||
timeDay,
|
||||
timeWeek,
|
||||
timeMonth,
|
||||
timeYear,
|
||||
};
|
||||
|
||||
export const dateFormat = d3.time('%b %-d, %Y');
|
||||
export const timeFormat = d3.time('%-I:%M%p');
|
||||
|
|
Loading…
Reference in a new issue