mirror of
https://github.com/apache/superset.git
synced 2026-04-22 09:35:23 +00:00
fix: Currency formatting in Table raw mode (#25248)
This commit is contained in:
committed by
GitHub
parent
894f250229
commit
ea21e800a7
@@ -21,6 +21,7 @@ import {
|
||||
ChartProps,
|
||||
DatasourceType,
|
||||
GenericDataType,
|
||||
QueryMode,
|
||||
supersetTheme,
|
||||
} from '@superset-ui/core';
|
||||
import { TableChartProps, TableChartFormData } from '../src/types';
|
||||
@@ -173,6 +174,33 @@ const advanced: TableChartProps = {
|
||||
],
|
||||
};
|
||||
|
||||
const raw = {
|
||||
...advanced,
|
||||
rawFormData: {
|
||||
...advanced.rawFormData,
|
||||
query_mode: QueryMode.raw,
|
||||
columns: ['num'],
|
||||
},
|
||||
queriesData: [
|
||||
{
|
||||
...basicQueryResult,
|
||||
colnames: ['num'],
|
||||
coltypes: [GenericDataType.NUMERIC],
|
||||
data: [
|
||||
{
|
||||
num: 1234,
|
||||
},
|
||||
{
|
||||
num: 10000,
|
||||
},
|
||||
{
|
||||
num: 0,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const advancedWithCurrency = {
|
||||
...advanced,
|
||||
datasource: {
|
||||
@@ -198,4 +226,5 @@ export default {
|
||||
advanced,
|
||||
advancedWithCurrency,
|
||||
empty,
|
||||
raw,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user