fix(big-number): Big Number with Trendline Chart is not working if Time Grain is set to Month (#19043)

* fix(big-number): Big Number with Trendline Chart is not working if Time Grain is set to Month

* use start frequency.
This commit is contained in:
Stephen Liu 2022-03-07 17:29:34 +08:00 committed by GitHub
parent b2ee13f6f8
commit c32eaf47e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -33,9 +33,9 @@ const TIME_GRAIN_MAP: Record<string, string> = {
PT30M: '30min',
PT1H: 'H',
P1D: 'D',
P1M: 'M',
P3M: 'Q',
P1Y: 'A',
P1M: 'MS',
P3M: 'QS',
P1Y: 'AS',
// TODO: these need to be mapped carefully, as the first day of week
// can vary from engine to engine
// P1W: 'W',