You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2022/03/07 09:31:37 UTC

[superset] branch master updated: fix(big-number): Big Number with Trendline Chart is not working if Time Grain is set to Month (#19043)

This is an automated email from the ASF dual-hosted git repository.

villebro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new c32eaf4  fix(big-number): Big Number with Trendline Chart is not working if Time Grain is set to Month (#19043)
c32eaf4 is described below

commit c32eaf47e50f5fc0cb7630cbf38819cd03b5294b
Author: Stephen Liu <75...@qq.com>
AuthorDate: Mon Mar 7 17:29:34 2022 +0800

    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.
---
 .../src/BigNumber/BigNumberWithTrendline/buildQuery.ts              | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/buildQuery.ts b/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/buildQuery.ts
index b4dcd2a..be35734 100644
--- a/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/buildQuery.ts
+++ b/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/buildQuery.ts
@@ -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',