diff --git a/webapp/packages/supersonic-fe/src/pages/SemanticModel/Metric/components/MetricTrendSection.tsx b/webapp/packages/supersonic-fe/src/pages/SemanticModel/Metric/components/MetricTrendSection.tsx index 025db547a..3fb507977 100644 --- a/webapp/packages/supersonic-fe/src/pages/SemanticModel/Metric/components/MetricTrendSection.tsx +++ b/webapp/packages/supersonic-fe/src/pages/SemanticModel/Metric/components/MetricTrendSection.tsx @@ -10,6 +10,7 @@ import { LineChartOutlined, TableOutlined, DownloadOutlined, + PoweroffOutlined, } from '@ant-design/icons'; import DimensionAndMetricRelationModal from '../../components/DimensionAndMetricRelationModal'; import TrendChart from '@/pages/SemanticModel/Metric/components/MetricTrend'; @@ -66,6 +67,8 @@ const MetricTrendSection: React.FC = ({ metircData }) => { const [chartType, setChartType] = useState<'chart' | 'table'>('chart'); const [tableColumnConfig, setTableColumnConfig] = useState([]); + const [transformState, setTransformState] = useState(false); + const [groupByDimensionFieldName, setGroupByDimensionFieldName] = useState(); const getMetricTrendData = async (params: any = { download: false }) => { @@ -107,6 +110,7 @@ const MetricTrendSection: React.FC = ({ metircData }) => { startDate: periodDate.startDate, endDate: periodDate.endDate, download, + isTransform: transformState, }); if (download) { setDownloadLoding(false); @@ -301,20 +305,33 @@ const MetricTrendSection: React.FC = ({ metircData }) => { )} - + + + + + +