mirror of
https://github.com/apache/superset.git
synced 2026-04-25 02:55:07 +00:00
fix: big number drill to details column data (#37068)
This commit is contained in:
@@ -25,6 +25,7 @@ import {
|
||||
computeMaxFontSize,
|
||||
BRAND_COLOR,
|
||||
BinaryQueryObjectFilterClause,
|
||||
DTTM_ALIAS,
|
||||
} from '@superset-ui/core';
|
||||
import { styled, useTheme } from '@apache-superset/core/ui';
|
||||
import Echart from '../components/Echart';
|
||||
@@ -357,7 +358,10 @@ function BigNumberVis({
|
||||
const pointerEvent = eventParams.event.event;
|
||||
const drillToDetailFilters: BinaryQueryObjectFilterClause[] = [];
|
||||
drillToDetailFilters.push({
|
||||
col: formData?.granularitySqla,
|
||||
col:
|
||||
formData?.xAxis === DTTM_ALIAS
|
||||
? formData?.granularitySqla
|
||||
: formData?.xAxis,
|
||||
grain: formData?.timeGrainSqla,
|
||||
op: '==',
|
||||
val: data[0],
|
||||
|
||||
@@ -106,6 +106,7 @@ describe('BigNumberWithTrendline transformProps', () => {
|
||||
subtitleFontSize: 14,
|
||||
forceTimestampFormatting: false,
|
||||
timeFormat: 'YYYY-MM-DD',
|
||||
xAxis: '__timestamp',
|
||||
yAxisFormat: 'SMART_NUMBER',
|
||||
compareLag: 1,
|
||||
compareSuffix: 'WoW',
|
||||
|
||||
@@ -47,6 +47,7 @@ export type BigNumberWithTrendlineFormData = BigNumberTotalFormData & {
|
||||
b: number;
|
||||
};
|
||||
compareLag?: string | number;
|
||||
xAxis: string;
|
||||
showXAxis?: boolean;
|
||||
showXAxisMinMaxLabels?: boolean;
|
||||
showYAxis?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user