mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
feat: apply Time Grain to X-Axis column (#21163)
This commit is contained in:
@@ -291,12 +291,12 @@ function createAdvancedAnalyticsSection(
|
||||
|
||||
const config: ControlPanelConfig = {
|
||||
controlPanelSections: [
|
||||
sections.legacyTimeseriesTime,
|
||||
sections.genericTime,
|
||||
isFeatureEnabled(FeatureFlag.GENERIC_CHART_AXES)
|
||||
? {
|
||||
label: t('Shared query fields'),
|
||||
expanded: true,
|
||||
controlSetRows: [['x_axis']],
|
||||
controlSetRows: [['x_axis'], ['time_grain_sqla']],
|
||||
}
|
||||
: null,
|
||||
createQuerySection(t('Query A'), ''),
|
||||
|
||||
@@ -52,7 +52,7 @@ const {
|
||||
} = DEFAULT_FORM_DATA;
|
||||
const config: ControlPanelConfig = {
|
||||
controlPanelSections: [
|
||||
sections.legacyTimeseriesTime,
|
||||
sections.genericTime,
|
||||
sections.echartsTimeSeriesQuery,
|
||||
sections.advancedAnalyticsControls,
|
||||
sections.annotationsAndLayersControls,
|
||||
|
||||
@@ -259,7 +259,7 @@ function createAxisControl(axis: 'x' | 'y'): ControlSetRow[] {
|
||||
|
||||
const config: ControlPanelConfig = {
|
||||
controlPanelSections: [
|
||||
sections.legacyTimeseriesTime,
|
||||
sections.genericTime,
|
||||
sections.echartsTimeSeriesQuery,
|
||||
sections.advancedAnalyticsControls,
|
||||
sections.annotationsAndLayersControls,
|
||||
|
||||
@@ -51,7 +51,7 @@ const {
|
||||
} = DEFAULT_FORM_DATA;
|
||||
const config: ControlPanelConfig = {
|
||||
controlPanelSections: [
|
||||
sections.legacyTimeseriesTime,
|
||||
sections.genericTime,
|
||||
sections.echartsTimeSeriesQuery,
|
||||
sections.advancedAnalyticsControls,
|
||||
sections.annotationsAndLayersControls,
|
||||
|
||||
@@ -47,7 +47,7 @@ const {
|
||||
} = DEFAULT_FORM_DATA;
|
||||
const config: ControlPanelConfig = {
|
||||
controlPanelSections: [
|
||||
sections.legacyTimeseriesTime,
|
||||
sections.genericTime,
|
||||
sections.echartsTimeSeriesQuery,
|
||||
sections.advancedAnalyticsControls,
|
||||
sections.annotationsAndLayersControls,
|
||||
|
||||
@@ -47,7 +47,7 @@ const {
|
||||
} = DEFAULT_FORM_DATA;
|
||||
const config: ControlPanelConfig = {
|
||||
controlPanelSections: [
|
||||
sections.legacyTimeseriesTime,
|
||||
sections.genericTime,
|
||||
sections.echartsTimeSeriesQuery,
|
||||
sections.advancedAnalyticsControls,
|
||||
sections.annotationsAndLayersControls,
|
||||
|
||||
@@ -50,7 +50,7 @@ const {
|
||||
} = DEFAULT_FORM_DATA;
|
||||
const config: ControlPanelConfig = {
|
||||
controlPanelSections: [
|
||||
sections.legacyTimeseriesTime,
|
||||
sections.genericTime,
|
||||
sections.echartsTimeSeriesQuery,
|
||||
sections.advancedAnalyticsControls,
|
||||
sections.annotationsAndLayersControls,
|
||||
|
||||
Reference in New Issue
Block a user