feat: Adds the Featured Charts dashboard (#28789)

This commit is contained in:
Michael S. Molina 2024-06-04 16:59:10 -03:00 committed by GitHub
parent 896fe854dc
commit 95706d9be2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
53 changed files with 6544 additions and 87 deletions

View File

@ -116,7 +116,7 @@ describe('Color scheme control', () => {
describe('VizType control', () => {
beforeEach(() => {
interceptChart({ legacy: false }).as('tableChartData');
interceptChart({ legacy: true }).as('lineChartData');
interceptChart({ legacy: false }).as('bigNumberChartData');
});
it('Can change vizType', () => {
@ -126,15 +126,14 @@ describe('VizType control', () => {
cy.contains('View all charts').click();
cy.get('.ant-modal-content').within(() => {
cy.get('button').contains('Evolution').click(); // change categories
cy.get('[role="button"]').contains('Line Chart').click();
cy.get('button').contains('KPI').click(); // change categories
cy.get('[role="button"]').contains('Big Number').click();
cy.get('button').contains('Select').click();
});
cy.get('button[data-test="run-query-button"]').click();
cy.verifySliceSuccess({
waitAlias: '@lineChartData',
chartSelector: 'svg',
waitAlias: '@bigNumberChartData',
});
});
});

View File

@ -40,7 +40,7 @@ const metadata = new ChartMetadata({
t('Multi-Layers'),
t('Multi-Variables'),
t('Scatter'),
t('Popular'),
t('Featured'),
],
thumbnail,
useLegacyApi: true,

View File

@ -41,7 +41,7 @@ const metadata = {
t('Business'),
t('Legacy'),
t('Percentages'),
t('Popular'),
t('Featured'),
t('Report'),
],
thumbnail,

View File

@ -39,7 +39,7 @@ const metadata = {
t('Advanced-Analytics'),
t('Line'),
t('Percentages'),
t('Popular'),
t('Featured'),
t('Report'),
t('Trend'),
],

View File

@ -57,7 +57,7 @@ export default class EchartsBoxPlotChartPlugin extends EchartsChartPlugin<
),
exampleGallery: [{ url: example }],
name: t('Box Plot'),
tags: [t('ECharts'), t('Range'), t('Statistical')],
tags: [t('ECharts'), t('Range'), t('Statistical'), t('Featured')],
thumbnail,
},
transformProps,

View File

@ -50,6 +50,7 @@ export default class EchartsBubbleChartPlugin extends ChartPlugin<
t('Time'),
t('Trend'),
t('ECharts'),
t('Featured'),
],
thumbnail,
}),

View File

@ -64,6 +64,7 @@ export default class EchartsFunnelChartPlugin extends EchartsChartPlugin<
t('Report'),
t('Sequential'),
t('Trend'),
t('Featured'),
],
thumbnail,
},

View File

@ -54,6 +54,7 @@ export default class EchartsGaugeChartPlugin extends EchartsChartPlugin<
t('Comparison'),
t('ECharts'),
t('Report'),
t('Featured'),
],
thumbnail,
},

View File

@ -46,6 +46,7 @@ export default class EchartsGraphChartPlugin extends EchartsChartPlugin {
t('Relational'),
t('Structural'),
t('Transformable'),
t('Featured'),
],
thumbnail,
behaviors: [

View File

@ -38,6 +38,7 @@ const metadata = new ChartMetadata({
t('Density'),
t('Single Metric'),
t('ECharts'),
t('Featured'),
],
thumbnail,
});

View File

@ -74,6 +74,7 @@ export default class EchartsTimeseriesChartPlugin extends EchartsChartPlugin<
t('Multi-Variables'),
t('Time'),
t('Transformable'),
t('Featured'),
],
queryObjectCount: 2,
},

View File

@ -71,7 +71,7 @@ export default class EchartsPieChartPlugin extends EchartsChartPlugin<
t('Circular'),
t('Comparison'),
t('Percentages'),
t('Popular'),
t('Featured'),
t('Proportional'),
t('ECharts'),
t('Nightingale'),

View File

@ -66,6 +66,7 @@ export default class EchartsRadarChartPlugin extends EchartsChartPlugin<
t('Report'),
t('Web'),
t('ECharts'),
t('Featured'),
],
thumbnail,
},

View File

@ -44,7 +44,12 @@ export default class EchartsSunburstChartPlugin extends EchartsChartPlugin {
),
exampleGallery: [{ url: example1 }, { url: example2 }],
name: t('Sunburst Chart'),
tags: [t('ECharts'), t('Multi-Levels'), t('Proportional')],
tags: [
t('ECharts'),
t('Multi-Levels'),
t('Proportional'),
t('Featured'),
],
thumbnail,
},
transformProps,

View File

@ -70,7 +70,7 @@ export default class EchartsAreaChartPlugin extends EchartsChartPlugin<
t('Line'),
t('Transformable'),
t('Stacked'),
t('Popular'),
t('Featured'),
],
thumbnail,
},

View File

@ -80,7 +80,7 @@ export default class EchartsTimeseriesBarChartPlugin extends EchartsChartPlugin<
t('Transformable'),
t('Stacked'),
t('Bar'),
t('Popular'),
t('Featured'),
],
thumbnail,
},

View File

@ -72,7 +72,7 @@ export default class EchartsTimeseriesLineChartPlugin extends EchartsChartPlugin
t('Predictive'),
t('Advanced-Analytics'),
t('Line'),
t('Popular'),
t('Featured'),
],
thumbnail,
},

View File

@ -73,7 +73,7 @@ export default class EchartsTimeseriesScatterChartPlugin extends EchartsChartPlu
t('Time'),
t('Transformable'),
t('Scatter'),
t('Popular'),
t('Featured'),
],
thumbnail,
},

View File

@ -44,6 +44,7 @@ export default class EchartsTreeChartPlugin extends EchartsChartPlugin {
t('Multi-Levels'),
t('Relational'),
t('Structural'),
t('Featured'),
],
thumbnail,
},

View File

@ -66,6 +66,7 @@ export default class EchartsTreemapChartPlugin extends EchartsChartPlugin<
t('Multi-Levels'),
t('Percentages'),
t('Proportional'),
t('Featured'),
],
thumbnail,
},

View File

@ -61,7 +61,7 @@ export default class EchartsWaterfallChartPlugin extends ChartPlugin<
{ url: example3 },
],
name: t('Waterfall Chart'),
tags: [t('Categorical'), t('Comparison'), t('ECharts'), t('Popular')],
tags: [t('Categorical'), t('Comparison'), t('ECharts'), t('Featured')],
thumbnail,
}),
transformProps,

View File

@ -58,7 +58,7 @@ export default class PivotTableChartPlugin extends ChartPlugin<
),
exampleGallery: [{ url: example }],
name: t('Pivot Table'),
tags: [t('Additive'), t('Report'), t('Tabular'), t('Popular')],
tags: [t('Additive'), t('Report'), t('Tabular'), t('Featured')],
thumbnail,
});

View File

@ -47,7 +47,7 @@ const metadata = new ChartMetadata({
t('Additive'),
t('Business'),
t('Pattern'),
t('Popular'),
t('Featured'),
t('Report'),
t('Sequential'),
t('Tabular'),

View File

@ -50,7 +50,7 @@ describe('VizTypeControl', () => {
new ChartMetadata({
name: 'vis1',
thumbnail: '',
tags: ['Popular'],
tags: ['Featured'],
}),
)
.registerValue(

View File

@ -66,58 +66,6 @@ enum Sections {
Tags = 'TAGS',
}
const DEFAULT_ORDER = [
'line',
'big_number',
'big_number_total',
'table',
'pivot_table_v2',
'echarts_timeseries_line',
'echarts_area',
'echarts_timeseries_bar',
'echarts_timeseries_scatter',
'pie',
'mixed_timeseries',
'dist_bar',
'area',
'bar',
'deck_polygon',
'time_table',
'histogram',
'deck_scatter',
'deck_hex',
'time_pivot',
'deck_arc',
'heatmap',
'heatmap_v2',
'deck_grid',
'deck_screengrid',
'treemap_v2',
'box_plot',
'sankey',
'word_cloud',
'mapbox',
'kepler',
'cal_heatmap',
'rose',
'bubble',
'bubble_v2',
'deck_geojson',
'horizon',
'deck_multi',
'compare',
'partition',
'event_flow',
'deck_path',
'graph_chart',
'world_map',
'paired_ttest',
'para',
'country_map',
];
const typesWithDefaultOrder = new Set(DEFAULT_ORDER);
const THUMBNAIL_GRID_UNITS = 24;
export const MAX_ADVISABLE_VIZ_GALLERY_WIDTH = 1090;
@ -128,7 +76,7 @@ const ALL_CHARTS = t('All charts');
const FEATURED = t('Featured');
const RECOMMENDED_TAGS = [t('Popular'), t('ECharts'), t('Advanced-Analytics')];
const RECOMMENDED_TAGS = [FEATURED, t('ECharts'), t('Advanced-Analytics')];
export const VIZ_TYPE_CONTROL_TEST_ID = 'viz-type-control';
@ -372,13 +320,6 @@ const TitleLabelWrapper = styled.div`
margin-left: ${({ theme }) => theme.gridUnit * 2}px;
`;
function vizSortFactor(entry: VizEntry) {
if (typesWithDefaultOrder.has(entry.key)) {
return DEFAULT_ORDER.indexOf(entry.key);
}
return DEFAULT_ORDER.length;
}
interface ThumbnailProps {
entry: VizEntry;
selectedViz: string | null;
@ -494,7 +435,7 @@ const doesVizMatchSelector = (viz: ChartMetadata, selector: string) =>
(viz.tags || []).indexOf(selector) > -1;
export default function VizTypeGallery(props: VizTypeGalleryProps) {
const { selectedViz, onChange, onDoubleClick, className } = props;
const { selectedViz, onChange, onDoubleClick, className, denyList } = props;
const { mountedPluginMetadata } = usePluginContext();
const searchInputRef = useRef<HTMLInputElement>();
const [searchInputValue, setSearchInputValue] = useState('');
@ -508,14 +449,14 @@ export default function VizTypeGallery(props: VizTypeGalleryProps) {
const chartMetadata: VizEntry[] = useMemo(() => {
const result = Object.entries(mountedPluginMetadata)
.map(([key, value]) => ({ key, value }))
.filter(({ key }) => !props.denyList.includes(key))
.filter(({ key }) => !denyList.includes(key))
.filter(
({ value }) =>
nativeFilterGate(value.behaviors || []) && !value.deprecated,
);
result.sort((a, b) => vizSortFactor(a) - vizSortFactor(b));
)
.sort((a, b) => a.value.name.localeCompare(b.value.name));
return result;
}, [mountedPluginMetadata]);
}, [mountedPluginMetadata, denyList]);
const chartsByCategory = useMemo(() => {
const result: Record<string, VizEntry[]> = {};
@ -567,7 +508,8 @@ export default function VizTypeGallery(props: VizTypeGalleryProps) {
);
const sortedMetadata = useMemo(
() => chartMetadata.sort((a, b) => a.key.localeCompare(b.key)),
() =>
chartMetadata.sort((a, b) => a.value.name.localeCompare(b.value.name)),
[chartMetadata],
);
@ -692,9 +634,9 @@ export default function VizTypeGallery(props: VizTypeGalleryProps) {
if (
activeSelector === FEATURED &&
activeSection === Sections.Featured &&
chartsByTags[t('Popular')]
chartsByTags[FEATURED]
) {
return chartsByTags[t('Popular')];
return chartsByTags[FEATURED];
}
if (
activeSection === Sections.Category &&

View File

@ -89,6 +89,7 @@ const StyledContainer = styled.div`
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: ${theme.gridUnit * 5}px;
& > div {
min-width: 200px;
@ -144,6 +145,7 @@ const StyledContainer = styled.div`
.ant-steps-item-description {
margin-top: ${theme.gridUnit}px;
padding-bottom: ${theme.gridUnit}px;
}
}

View File

@ -0,0 +1,97 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Area
description: null
certified_by: null
certification_details: null
viz_type: echarts_area
params:
datasource: 22__table
viz_type: echarts_area
x_axis: order_date
time_grain_sqla: P1W
x_axis_sort_asc: true
x_axis_sort_series: name
x_axis_sort_series_ascending: true
metrics:
- expressionType: SIMPLE
column:
advanced_data_type: null
certification_details: null
certified_by: null
column_name: sales
description: null
expression: null
filterable: true
groupby: true
id: 734
is_certified: false
is_dttm: false
python_date_format: null
type: DOUBLE PRECISION
type_generic: 0
verbose_name: null
warning_markdown: null
aggregate: SUM
sqlExpression: null
datasourceWarning: false
hasCustomLabel: false
label: SUM(sales)
optionName: metric_thuvfstatme_5o1pircsnev
groupby:
- deal_size
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
order_desc: true
row_limit: 10000
truncate_metric: true
show_empty_columns: true
comparison_type: values
annotation_layers: []
forecastPeriods: 10
forecastInterval: 0.8
x_axis_title_margin: 15
y_axis_title_margin: 15
y_axis_title_position: Left
sort_series_type: sum
color_scheme: supersetColors
seriesType: line
opacity: 0.2
only_total: true
markerSize: 6
show_legend: true
legendType: scroll
legendOrientation: top
x_axis_time_format: smart_date
rich_tooltip: true
tooltipTimeFormat: smart_date
y_axis_format: SMART_NUMBER
truncateXAxis: true
y_axis_bounds:
- null
- null
extra_form_data: {}
dashboards:
- 13
cache_timeout: null
uuid: 946cccb5-2101-44f5-98f8-501789a333cd
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,72 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Bar
description: null
certified_by: null
certification_details: null
viz_type: echarts_timeseries_bar
params:
datasource: 22__table
viz_type: echarts_timeseries_bar
x_axis: order_date
time_grain_sqla: P1M
x_axis_sort_asc: true
x_axis_sort_series: name
x_axis_sort_series_ascending: true
metrics:
- count
groupby:
- deal_size
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
order_desc: true
row_limit: 10000
truncate_metric: true
show_empty_columns: true
comparison_type: values
annotation_layers: []
forecastPeriods: 10
forecastInterval: 0.8
orientation: vertical
x_axis_title_margin: 15
y_axis_title_margin: 15
y_axis_title_position: Left
sort_series_type: sum
color_scheme: supersetColors
only_total: true
show_legend: true
legendType: scroll
legendOrientation: top
x_axis_time_format: smart_date
y_axis_format: SMART_NUMBER
truncateXAxis: true
y_axis_bounds:
- null
- null
rich_tooltip: true
tooltipTimeFormat: smart_date
extra_form_data: {}
dashboards:
- 13
cache_timeout: null
uuid: 7a37f7d8-6deb-4fd3-a150-01b0ff532dbd
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,42 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Big Number
description: null
certified_by: null
certification_details: null
viz_type: big_number_total
params:
datasource: 22__table
viz_type: big_number_total
metric: count
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
header_font_size: 0.4
subheader_font_size: 0.15
y_axis_format: SMART_NUMBER
time_format: smart_date
extra_form_data: {}
dashboards:
- 13
cache_timeout: null
uuid: 5adc2abe-bfa3-4091-9838-4a470031208c
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,52 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Big Number with Trendline
description: null
certified_by: null
certification_details: null
viz_type: big_number
params:
datasource: 22__table
viz_type: big_number
x_axis: order_date
time_grain_sqla: P1M
metric: count
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
show_trend_line: true
start_y_axis_at_zero: true
color_picker:
r: 0
g: 122
b: 135
a: 1
header_font_size: 0.4
subheader_font_size: 0.15
y_axis_format: SMART_NUMBER
time_format: smart_date
rolling_type: None
extra_form_data: {}
dashboards:
- 13
cache_timeout: null
uuid: 281656a3-3d8d-4423-8b58-b050d59fadd9
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,54 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Box Plot
description: null
certified_by: null
certification_details: null
viz_type: box_plot
params:
datasource: 22__table
viz_type: box_plot
columns:
- order_date
time_grain_sqla: P1D
temporal_columns_lookup:
order_date: true
groupby:
- product_line
metrics:
- count
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
whiskerOptions: Tukey
x_axis_title_margin: 15
y_axis_title_margin: 15
y_axis_title_position: Left
color_scheme: supersetColors
x_ticks_layout: auto
number_format: SMART_NUMBER
date_format: smart_date
extra_form_data: {}
dashboards:
- 13
cache_timeout: null
uuid: cc8eea37-f890-4816-8df0-b1354d7cd553
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,107 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Bubble
description: null
certified_by: null
certification_details: null
viz_type: bubble_v2
params:
datasource: 22__table
viz_type: bubble_v2
series: product_line
entity: deal_size
x:
expressionType: SIMPLE
column:
advanced_data_type: null
certification_details: null
certified_by: null
column_name: quantity_ordered
description: null
expression: null
filterable: true
groupby: true
id: 739
is_certified: false
is_dttm: false
python_date_format: null
type: BIGINT
type_generic: 0
verbose_name: null
warning_markdown: null
aggregate: SUM
sqlExpression: null
datasourceWarning: false
hasCustomLabel: false
label: SUM(quantity_ordered)
optionName: metric_ieq28dvzapm_wsnd3sj3trn
y:
expressionType: SIMPLE
column:
advanced_data_type: null
certification_details: null
certified_by: null
column_name: country
description: null
expression: null
filterable: true
groupby: true
id: 754
is_certified: false
is_dttm: false
python_date_format: null
type: TEXT
type_generic: 1
verbose_name: null
warning_markdown: null
aggregate: COUNT_DISTINCT
sqlExpression: null
datasourceWarning: false
hasCustomLabel: false
label: COUNT_DISTINCT(country)
optionName: metric_2pvgxo9w3dc_fazapv2jd65
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
size: count
order_desc: true
row_limit: 10000
color_scheme: supersetColors
show_legend: true
legendType: scroll
legendOrientation: top
max_bubble_size: "25"
tooltipSizeFormat: SMART_NUMBER
opacity: 0.6
x_axis_title_margin: 30
xAxisFormat: SMART_NUMBER
y_axis_title_margin: 30
y_axis_format: SMART_NUMBER
truncateXAxis: true
y_axis_bounds:
- null
- null
extra_form_data: {}
dashboards:
- 13
cache_timeout: null
uuid: c2014499-6800-43f0-908f-a2633db3ade7
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,51 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Funnel
description: null
certified_by: null
certification_details: null
viz_type: funnel
params:
datasource: 22__table
viz_type: funnel
groupby:
- status
metric: count
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
row_limit: 10
sort_by_metric: true
percent_calculation_type: first_step
color_scheme: supersetColors
show_legend: true
legendOrientation: top
legendMargin: 50
tooltip_label_type: 5
number_format: SMART_NUMBER
show_labels: true
show_tooltip_labels: true
extra_form_data: {}
dashboards:
- 13
cache_timeout: null
uuid: 7b90545c-1aac-447d-9175-a49f508f699d
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,54 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Gauge
description: null
certified_by: null
certification_details: null
viz_type: gauge_chart
params:
datasource: 22__table
viz_type: gauge_chart
groupby:
- deal_size
metric: count
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
row_limit: 10
start_angle: 225
end_angle: -45
color_scheme: supersetColors
font_size: 13
number_format: SMART_NUMBER
value_formatter: "{value}"
show_pointer: true
animation: true
show_axis_tick: false
show_split_line: false
split_number: 10
show_progress: true
overlap: true
round_cap: false
extra_form_data: {}
dashboards: []
cache_timeout: null
uuid: 57ccf0f1-d28a-4127-9581-7153c5a15b62
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,54 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Graph
description: null
certified_by: null
certification_details: null
viz_type: graph_chart
params:
datasource: 22__table
viz_type: graph_chart
source: deal_size
target: product_line
metric: count
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
row_limit: 10000
color_scheme: supersetColors
show_legend: true
legendType: scroll
legendOrientation: top
layout: circular
edgeSymbol: none,arrow
roam: true
selectedMode: single
baseNodeSize: 20
baseEdgeWidth: 3
edgeLength: 400
gravity: 0.3
repulsion: 1000
friction: 0.2
extra_form_data: {}
dashboards: []
cache_timeout: null
uuid: be39bc2e-00c0-498b-96bf-858fe2361a89
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,59 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Heatmap
description: null
certified_by: null
certification_details: null
viz_type: heatmap_v2
params:
datasource: 22__table
viz_type: heatmap_v2
x_axis: product_line
time_grain_sqla: P1D
groupby: deal_size
metric: count
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
row_limit: 10000
sort_x_axis: alpha_asc
sort_y_axis: alpha_asc
normalize_across: heatmap
legend_type: continuous
linear_color_scheme: superset_seq_1
xscale_interval: -1
yscale_interval: -1
left_margin: auto
bottom_margin: auto
value_bounds:
- null
- null
y_axis_format: SMART_NUMBER
x_axis_time_format: smart_date
show_legend: true
show_percentage: true
show_values: true
extra_form_data: {}
dashboards:
- 13
cache_timeout: null
uuid: c99dbe37-50da-4067-837c-3a8e5b68aafd
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,46 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Histogram
description: null
certified_by: null
certification_details: null
viz_type: histogram_v2
params:
datasource: 22__table
viz_type: histogram_v2
slice_id: 130
column: quantity_ordered
groupby:
- deal_size
adhoc_filters:
- clause: WHERE
comparator: No filter
expressionType: SIMPLE
operator: TEMPORAL_RANGE
subject: order_date
row_limit: 10000
bins: 10
normalize: false
color_scheme: supersetAndPresetColors
show_value: false
show_legend: true
extra_form_data: {}
dashboards: []
cache_timeout: null
uuid: 2a89c19d-d0d2-4f5e-9007-e0fb65440e80
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,74 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Line
description: null
certified_by: null
certification_details: null
viz_type: echarts_timeseries_line
params:
datasource: 22__table
viz_type: echarts_timeseries_line
x_axis: order_date
time_grain_sqla: P1M
x_axis_sort_asc: true
x_axis_sort_series: name
x_axis_sort_series_ascending: true
metrics:
- count
groupby:
- product_line
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
order_desc: true
row_limit: 10000
truncate_metric: true
show_empty_columns: true
comparison_type: values
annotation_layers: []
forecastPeriods: 10
forecastInterval: 0.8
x_axis_title_margin: 15
y_axis_title_margin: 15
y_axis_title_position: Left
sort_series_type: sum
color_scheme: supersetColors
seriesType: line
only_total: true
opacity: 0.2
markerSize: 6
show_legend: true
legendType: scroll
legendOrientation: top
x_axis_time_format: smart_date
rich_tooltip: true
tooltipTimeFormat: smart_date
y_axis_format: SMART_NUMBER
truncateXAxis: true
y_axis_bounds:
- null
- null
extra_form_data: {}
dashboards:
- 13
cache_timeout: null
uuid: 79567e46-97f6-4cd2-8e98-4cd211389743
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,109 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Mixed
description: null
certified_by: null
certification_details: null
viz_type: mixed_timeseries
params:
datasource: 22__table
viz_type: mixed_timeseries
x_axis: order_date
time_grain_sqla: P1M
metrics:
- expressionType: SIMPLE
column:
advanced_data_type: null
certification_details: null
certified_by: null
column_name: sales
description: null
expression: null
filterable: true
groupby: true
id: 734
is_certified: false
is_dttm: false
python_date_format: null
type: DOUBLE PRECISION
type_generic: 0
verbose_name: null
warning_markdown: null
aggregate: SUM
sqlExpression: null
datasourceWarning: false
hasCustomLabel: false
label: SUM(sales)
optionName: metric_b9hph4jr9i_nayy40sodwl
groupby: []
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
order_desc: true
row_limit: 10000
truncate_metric: true
comparison_type: values
metrics_b:
- count
groupby_b: []
adhoc_filters_b:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
order_desc_b: true
row_limit_b: 10000
truncate_metric_b: true
comparison_type_b: values
annotation_layers: []
x_axis_title_margin: 15
y_axis_title_margin: 15
y_axis_title_position: Left
color_scheme: supersetColors
seriesType: line
opacity: 0.2
markerSize: 6
yAxisIndex: 1
seriesTypeB: bar
opacityB: 0.2
markerSizeB: 6
yAxisIndexB: 0
show_legend: true
legendType: scroll
legendOrientation: top
x_axis_time_format: smart_date
rich_tooltip: true
tooltipTimeFormat: smart_date
truncateXAxis: true
y_axis_bounds:
- null
- null
y_axis_format: SMART_NUMBER
y_axis_bounds_secondary:
- null
- null
y_axis_format_secondary: SMART_NUMBER
extra_form_data: {}
dashboards: []
cache_timeout: null
uuid: bb394e7b-0cfc-47ba-b067-541964545752
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,78 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Pie
description: null
certified_by: null
certification_details: null
viz_type: pie
params:
datasource: 22__table
viz_type: pie
groupby:
- product_line
metric:
expressionType: SIMPLE
column:
advanced_data_type: null
certification_details: null
certified_by: null
column_name: sales
description: null
expression: null
filterable: true
groupby: true
id: 734
is_certified: false
is_dttm: false
python_date_format: null
type: DOUBLE PRECISION
type_generic: 0
verbose_name: null
warning_markdown: null
aggregate: SUM
sqlExpression: null
datasourceWarning: false
hasCustomLabel: false
label: SUM(sales)
optionName: metric_m2fycvcvjie_4gnezrycwmb
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
row_limit: 100
sort_by_metric: true
color_scheme: supersetColors
show_labels_threshold: 5
show_legend: true
legendType: scroll
legendOrientation: top
label_type: key
number_format: SMART_NUMBER
date_format: smart_date
show_labels: true
labels_outside: true
outerRadius: 70
innerRadius: 30
extra_form_data: {}
dashboards:
- 13
cache_timeout: null
uuid: 02ed54c5-dc22-468c-9edf-729b5401b182
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,78 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Pivot Table
description: null
certified_by: null
certification_details: null
viz_type: pivot_table_v2
params:
datasource: 22__table
viz_type: pivot_table_v2
groupbyColumns:
- product_line
groupbyRows:
- country
- city
time_grain_sqla: P1D
temporal_columns_lookup:
order_date: true
metrics:
- expressionType: SIMPLE
column:
advanced_data_type: null
certification_details: null
certified_by: null
column_name: sales
description: null
expression: null
filterable: true
groupby: true
id: 734
is_certified: false
is_dttm: false
python_date_format: null
type: DOUBLE PRECISION
type_generic: 0
verbose_name: null
warning_markdown: null
aggregate: SUM
sqlExpression: null
datasourceWarning: false
hasCustomLabel: false
label: SUM(sales)
optionName: metric_psnoaxdky5h_ojfgcygk97c
metricsLayout: COLUMNS
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
row_limit: 10000
order_desc: true
aggregateFunction: Sum
valueFormat: SMART_NUMBER
date_format: smart_date
rowOrder: key_a_to_z
colOrder: key_a_to_z
extra_form_data: {}
dashboards:
- 13
cache_timeout: null
uuid: fcf2a0cf-0079-4f59-854f-d28297b07bf0
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,100 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Radar
description: null
certified_by: null
certification_details: null
viz_type: radar
params:
datasource: 22__table
viz_type: radar
groupby:
- product_line
metrics:
- count
- expressionType: SIMPLE
column:
advanced_data_type: null
certification_details: null
certified_by: null
column_name: price_each
description: null
expression: null
filterable: true
groupby: true
id: 733
is_certified: false
is_dttm: false
python_date_format: null
type: DOUBLE PRECISION
type_generic: 0
verbose_name: null
warning_markdown: null
aggregate: AVG
sqlExpression: null
datasourceWarning: false
hasCustomLabel: false
label: AVG(price_each)
optionName: metric_ethqy44wrel_gsqbm609hxt
- expressionType: SIMPLE
column:
advanced_data_type: null
certification_details: null
certified_by: null
column_name: sales
description: null
expression: null
filterable: true
groupby: true
id: 734
is_certified: false
is_dttm: false
python_date_format: null
type: DOUBLE PRECISION
type_generic: 0
verbose_name: null
warning_markdown: null
aggregate: AVG
sqlExpression: null
datasourceWarning: false
hasCustomLabel: false
label: AVG(sales)
optionName: metric_r5emvf2ybfe_blvnta3absu
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
row_limit: 10
color_scheme: supersetColors
show_legend: true
legendType: scroll
legendOrientation: top
legendMargin: ""
show_labels: false
label_type: value
label_position: top
number_format: SMART_NUMBER
date_format: smart_date
is_circle: true
extra_form_data: {}
dashboards: []
cache_timeout: null
uuid: 1be00870-89b8-4ba0-a451-1fe56ef89581
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,72 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Scatter Plot
description: null
certified_by: null
certification_details: null
viz_type: echarts_timeseries_scatter
params:
datasource: 22__table
viz_type: echarts_timeseries_scatter
x_axis: order_date
time_grain_sqla: P1D
x_axis_sort_asc: true
x_axis_sort_series: name
x_axis_sort_series_ascending: true
metrics:
- count
groupby:
- deal_size
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
order_desc: true
row_limit: 10000
truncate_metric: true
show_empty_columns: true
comparison_type: values
annotation_layers: []
forecastPeriods: 10
forecastInterval: 0.8
x_axis_title_margin: 15
y_axis_title_margin: 15
y_axis_title_position: Left
sort_series_type: sum
color_scheme: supersetColors
only_total: true
markerSize: 6
show_legend: true
legendType: scroll
legendOrientation: top
x_axis_time_format: smart_date
rich_tooltip: true
tooltipTimeFormat: smart_date
y_axis_format: SMART_NUMBER
truncateXAxis: true
y_axis_bounds:
- null
- null
extra_form_data: {}
dashboards:
- 13
cache_timeout: null
uuid: 5b629855-f912-4e28-8444-56b9db83e5b3
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,48 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Sunburst
description: null
certified_by: null
certification_details: null
viz_type: sunburst_v2
params:
datasource: 22__table
viz_type: sunburst_v2
columns:
- year
- product_line
metric: count
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
row_limit: 10000
color_scheme: supersetColors
linear_color_scheme: superset_seq_1
show_labels: true
show_labels_threshold: 5
label_type: key
number_format: ~g
date_format: smart_date
extra_form_data: {}
dashboards: []
cache_timeout: null
uuid: 47b26af7-19e0-4ca1-9cf6-b74b2f1f7e3c
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,57 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Table
description: null
certified_by: null
certification_details: null
viz_type: table
params:
datasource: 22__table
viz_type: table
query_mode: raw
groupby: []
time_grain_sqla: P1D
temporal_columns_lookup:
order_date: true
all_columns:
- order_date
- product_line
- status
- price_each
- sales
percent_metrics: []
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
order_by_cols: []
row_limit: 1000
server_page_length: 10
order_desc: true
table_timestamp_format: smart_date
show_cell_bars: true
color_pn: true
allow_render_html: true
extra_form_data: {}
dashboards:
- 13
cache_timeout: null
uuid: d0e7b367-f16f-4d7a-adde-7c7f455fa9bc
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,43 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Tree
description: null
certified_by: null
certification_details: null
viz_type: tree_chart
params:
datasource: 8__table
viz_type: tree_chart
id: id
parent: parent
name: name
root_node_id: "1"
metric: count
adhoc_filters: []
row_limit: 1000
layout: radial
node_label_position: top
child_label_position: top
symbol: emptyCircle
symbolSize: 7
roam: false
extra_form_data: {}
dashboards: []
cache_timeout: null
uuid: 57e7f05e-0c9a-4313-8a33-e6d0999824af
version: 1.0.0
dataset_uuid: f710a997-c65e-4aa6-aaed-b7d6998565ae

View File

@ -0,0 +1,48 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: TreeMap
description: null
certified_by: null
certification_details: null
viz_type: treemap_v2
params:
datasource: 23__table
viz_type: treemap_v2
groupby:
- year
- product_line
metric: count
row_limit: 10000
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
color_scheme: supersetColors
show_labels: true
show_upper_labels: true
label_type: key_value
number_format: SMART_NUMBER
date_format: smart_date
extra_form_data: {}
dashboards: []
query_context: null
cache_timeout: null
uuid: 36367ecc-e09a-4c9f-80df-5dbaf97f741f
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,85 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Waterfall
description: null
certified_by: null
certification_details: null
viz_type: waterfall
params:
datasource: 22__table
viz_type: waterfall
x_axis: order_date
time_grain_sqla: P3M
groupby: []
metric:
expressionType: SIMPLE
column:
advanced_data_type: null
certification_details: null
certified_by: null
column_name: sales
description: null
expression: null
filterable: true
groupby: true
id: 734
is_certified: false
is_dttm: false
python_date_format: null
type: DOUBLE PRECISION
type_generic: 0
verbose_name: null
warning_markdown: null
aggregate: SUM
sqlExpression: null
datasourceWarning: false
hasCustomLabel: false
label: SUM(sales)
optionName: metric_uufmfvmm7_zhsh1h4vbh
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
row_limit: 10000
show_value: true
increase_color:
r: 90
g: 193
b: 137
a: 1
decrease_color:
r: 224
g: 67
b: 85
a: 1
total_color:
r: 102
g: 102
b: 102
a: 1
x_axis_time_format: smart_date
x_ticks_layout: auto
y_axis_format: SMART_NUMBER
extra_form_data: {}
dashboards:
- 13
cache_timeout: null
uuid: 97c77c60-0613-4066-aec7-a9c6a75ad8d8
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,44 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: Word Cloud
description: null
certified_by: null
certification_details: null
viz_type: word_cloud
params:
datasource: 22__table
viz_type: word_cloud
series: customer_name
metric: count
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
row_limit: 100
size_from: 10
size_to: 70
rotation: square
color_scheme: supersetColors
extra_form_data: {}
dashboards:
- 13
cache_timeout: null
uuid: d3967f7d-58ea-43fe-9961-7e061affdb1c
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -0,0 +1,53 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
slice_name: World Map
description: null
certified_by: null
certification_details: null
viz_type: world_map
params:
datasource: 1__table
viz_type: world_map
entity: country_name
country_fieldtype: name
metric: sum__SP_POP_TOTL
adhoc_filters:
- clause: WHERE
subject: year
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
row_limit: 10000
show_bubbles: true
secondary_metric: sum__SP_RUR_TOTL
max_bubble_size: "25"
color_picker:
r: 0
g: 122
b: 135
a: 1
color_by: metric
linear_color_scheme: superset_seq_1
color_scheme: supersetColors
y_axis_format: SMART_NUMBER
extra_form_data: {}
dashboards:
- 13
cache_timeout: null
uuid: f0606234-1644-426f-8fc6-3eaf8e77fd58
version: 1.0.0
dataset_uuid: 3cee7b7f-0009-4d9d-8de4-1da4cad4569e

View File

@ -0,0 +1,490 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
dashboard_title: Featured Charts
description: null
css: ""
slug: null
certified_by: ""
certification_details: ""
published: false
uuid: 9992d759-90d7-4d2a-b34d-373a8aaa9889
position:
CHART-2Z41H9ulKK:
children: []
id: CHART-2Z41H9ulKK
meta:
chartId: 107
height: 50
sliceName: Big Number with Trendline
uuid: 281656a3-3d8d-4423-8b58-b050d59fadd9
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-UvMsszSUji
type: CHART
CHART-33vjmwrGX1:
children: []
id: CHART-33vjmwrGX1
meta:
chartId: 127
height: 50
sliceName: Sunburst
uuid: 47b26af7-19e0-4ca1-9cf6-b74b2f1f7e3c
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-Jq9auQfs6-
type: CHART
CHART-3tEC_8e-uS:
children: []
id: CHART-3tEC_8e-uS
meta:
chartId: 109
height: 50
sliceName: Table
uuid: d0e7b367-f16f-4d7a-adde-7c7f455fa9bc
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-3XARWMYOfz
type: CHART
CHART-4Zm6Q1VGY5:
children: []
id: CHART-4Zm6Q1VGY5
meta:
chartId: 125
height: 50
sliceName: Mixed
uuid: bb394e7b-0cfc-47ba-b067-541964545752
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-UxgGmS9gb3
type: CHART
CHART-4iGGk_pxEN:
children: []
id: CHART-4iGGk_pxEN
meta:
chartId: 108
height: 50
sliceName: Big Number
uuid: 5adc2abe-bfa3-4091-9838-4a470031208c
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-LIWnqpnIk5
type: CHART
CHART-A4qrvR24Ne:
children: []
id: CHART-A4qrvR24Ne
meta:
chartId: 128
height: 50
sliceName: Tree
uuid: 57e7f05e-0c9a-4313-8a33-e6d0999824af
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-3XARWMYOfz
type: CHART
CHART-AFzv0kyWG_:
children: []
id: CHART-AFzv0kyWG_
meta:
chartId: 115
height: 50
sliceName: Pie
uuid: 02ed54c5-dc22-468c-9edf-729b5401b182
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-UxgGmS9gb3
type: CHART
CHART-CR0-igYucm:
children: []
id: CHART-CR0-igYucm
meta:
chartId: 118
height: 50
sliceName: Heatmap
uuid: c99dbe37-50da-4067-837c-3a8e5b68aafd
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-cUv-aKn4Yt
type: CHART
CHART-DqaJJ8Fse6:
children: []
id: CHART-DqaJJ8Fse6
meta:
chartId: 9
height: 50
sliceName: Treemap
uuid: 36367ecc-e09a-4c9f-80df-5dbaf97f741f
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-3XARWMYOfz
type: CHART
CHART-EpsTnvUMuW:
children: []
id: CHART-EpsTnvUMuW
meta:
chartId: 111
height: 50
sliceName: Line
uuid: 79567e46-97f6-4cd2-8e98-4cd211389743
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-cUv-aKn4Yt
type: CHART
CHART-Es5rxmzfgG:
children: []
id: CHART-Es5rxmzfgG
meta:
chartId: 113
height: 50
sliceName: Bar
uuid: 7a37f7d8-6deb-4fd3-a150-01b0ff532dbd
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-LIWnqpnIk5
type: CHART
CHART-FVeZR4VUUl:
children: []
id: CHART-FVeZR4VUUl
meta:
chartId: 120
height: 50
sliceName: Box Plot
uuid: cc8eea37-f890-4816-8df0-b1354d7cd553
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-UvMsszSUji
type: CHART
CHART-GoiTIYEOOF:
children: []
id: CHART-GoiTIYEOOF
meta:
chartId: 121
height: 50
sliceName: Bubble
uuid: c2014499-6800-43f0-908f-a2633db3ade7
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-UvMsszSUji
type: CHART
CHART-KE7lk61Tbt:
children: []
id: CHART-KE7lk61Tbt
meta:
chartId: 119
height: 50
sliceName: Word Cloud
uuid: d3967f7d-58ea-43fe-9961-7e061affdb1c
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-ux6j1ePT8I
type: CHART
CHART-SjTqfJNmup:
children: []
id: CHART-SjTqfJNmup
meta:
chartId: 124
height: 50
sliceName: Graph
uuid: be39bc2e-00c0-498b-96bf-858fe2361a89
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-W7YILGiS0-
type: CHART
CHART-XwFZukVv8E:
children: []
id: CHART-XwFZukVv8E
meta:
chartId: 117
height: 50
sliceName: Waterfall
uuid: 97c77c60-0613-4066-aec7-a9c6a75ad8d8
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-ux6j1ePT8I
type: CHART
CHART-Z3IKOwHAnY:
children: []
id: CHART-Z3IKOwHAnY
meta:
chartId: 112
height: 50
sliceName: Area
uuid: 946cccb5-2101-44f5-98f8-501789a333cd
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-LIWnqpnIk5
type: CHART
CHART-aAhaxRYu_t:
children: []
id: CHART-aAhaxRYu_t
meta:
chartId: 116
height: 50
sliceName: World Map
uuid: f0606234-1644-426f-8fc6-3eaf8e77fd58
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-ux6j1ePT8I
type: CHART
CHART-gfrGP3BD76:
children: []
id: CHART-gfrGP3BD76
meta:
chartId: 122
height: 50
sliceName: Funnel
uuid: 7b90545c-1aac-447d-9175-a49f508f699d
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-W7YILGiS0-
type: CHART
CHART-j2o9aZo4HY:
children: []
id: CHART-j2o9aZo4HY
meta:
chartId: 114
height: 50
sliceName: Scatter Plot
uuid: 5b629855-f912-4e28-8444-56b9db83e5b3
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-Jq9auQfs6-
type: CHART
CHART-jC2_mEgWeL:
children: []
id: CHART-jC2_mEgWeL
meta:
chartId: 123
height: 50
sliceName: Gauge
uuid: 57ccf0f1-d28a-4127-9581-7153c5a15b62
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-W7YILGiS0-
type: CHART
CHART-jzyy9Sa3pS:
children: []
id: CHART-jzyy9Sa3pS
meta:
chartId: 110
height: 50
sliceName: Pivot Table
uuid: fcf2a0cf-0079-4f59-854f-d28297b07bf0
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-UxgGmS9gb3
type: CHART
CHART-qZh51tuuRH:
children: []
id: CHART-qZh51tuuRH
meta:
chartId: 126
height: 50
sliceName: Radar
uuid: 1be00870-89b8-4ba0-a451-1fe56ef89581
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-Jq9auQfs6-
type: CHART
CHART-t5t_tQe43g:
children: []
id: CHART-t5t_tQe43g
meta:
chartId: 130
height: 50
sliceName: Histogram
uuid: 2a89c19d-d0d2-4f5e-9007-e0fb65440e80
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-cUv-aKn4Yt
type: CHART
DASHBOARD_VERSION_KEY: v2
GRID_ID:
children:
- ROW-LIWnqpnIk5
- ROW-UvMsszSUji
- ROW-W7YILGiS0-
- ROW-cUv-aKn4Yt
- ROW-UxgGmS9gb3
- ROW-Jq9auQfs6-
- ROW-3XARWMYOfz
- ROW-ux6j1ePT8I
id: GRID_ID
parents:
- ROOT_ID
type: GRID
HEADER_ID:
id: HEADER_ID
meta:
text: Featured charts
type: HEADER
ROOT_ID:
children:
- GRID_ID
id: ROOT_ID
type: ROOT
ROW-3XARWMYOfz:
children:
- CHART-3tEC_8e-uS
- CHART-A4qrvR24Ne
- CHART-DqaJJ8Fse6
id: ROW-3XARWMYOfz
meta:
background: BACKGROUND_TRANSPARENT
parents:
- ROOT_ID
- GRID_ID
type: ROW
ROW-Jq9auQfs6-:
children:
- CHART-qZh51tuuRH
- CHART-j2o9aZo4HY
- CHART-33vjmwrGX1
id: ROW-Jq9auQfs6-
meta:
background: BACKGROUND_TRANSPARENT
parents:
- ROOT_ID
- GRID_ID
type: ROW
ROW-LIWnqpnIk5:
children:
- CHART-Z3IKOwHAnY
- CHART-Es5rxmzfgG
- CHART-4iGGk_pxEN
id: ROW-LIWnqpnIk5
meta:
background: BACKGROUND_TRANSPARENT
parents:
- ROOT_ID
- GRID_ID
type: ROW
ROW-UvMsszSUji:
children:
- CHART-2Z41H9ulKK
- CHART-FVeZR4VUUl
- CHART-GoiTIYEOOF
id: ROW-UvMsszSUji
meta:
background: BACKGROUND_TRANSPARENT
parents:
- ROOT_ID
- GRID_ID
type: ROW
ROW-UxgGmS9gb3:
children:
- CHART-4Zm6Q1VGY5
- CHART-AFzv0kyWG_
- CHART-jzyy9Sa3pS
id: ROW-UxgGmS9gb3
meta:
background: BACKGROUND_TRANSPARENT
parents:
- ROOT_ID
- GRID_ID
type: ROW
ROW-W7YILGiS0-:
children:
- CHART-gfrGP3BD76
- CHART-jC2_mEgWeL
- CHART-SjTqfJNmup
id: ROW-W7YILGiS0-
meta:
background: BACKGROUND_TRANSPARENT
parents:
- ROOT_ID
- GRID_ID
type: ROW
ROW-cUv-aKn4Yt:
children:
- CHART-CR0-igYucm
- CHART-t5t_tQe43g
- CHART-EpsTnvUMuW
id: ROW-cUv-aKn4Yt
meta:
background: BACKGROUND_TRANSPARENT
parents:
- ROOT_ID
- GRID_ID
type: ROW
ROW-ux6j1ePT8I:
children:
- CHART-XwFZukVv8E
- CHART-KE7lk61Tbt
- CHART-aAhaxRYu_t
id: ROW-ux6j1ePT8I
meta:
background: BACKGROUND_TRANSPARENT
parents:
- ROOT_ID
- GRID_ID
type: ROW
metadata:
color_scheme: supersetAndPresetColors
refresh_frequency: 0
expanded_slices: {}
label_colors: {}
timed_refresh_immune_slices: []
cross_filters_enabled: true
version: 1.0.0

View File

@ -0,0 +1,116 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
table_name: hierarchical_dataset
main_dttm_col: null
description: null
default_endpoint: null
offset: 0
cache_timeout: null
schema: public
sql: 'SELECT 1 as "id", null as "parent", ''USA'' as "name", 1 as "count"
UNION SELECT 2, 1, ''CA'', 10
UNION SELECT 3, 1, ''NY'', 15
UNION SELECT 4, 1, ''TX'', 20
UNION SELECT 5, 1, ''FL'', 12
UNION SELECT 6, 2, ''Los Angeles'', 5
UNION SELECT 7, 2, ''San Francisco'', 8
UNION SELECT 8, 3, ''New York City'', 18
UNION SELECT 9, 3, ''Buffalo'', 3
UNION SELECT 10, 4, ''Houston'', 14
UNION SELECT 11, 4, ''Dallas'', 9
UNION SELECT 12, 5, ''Miami'', 6'
params: null
template_params: null
filter_select_enabled: true
fetch_values_predicate: null
extra: null
normalize_columns: false
always_filter_main_dttm: false
uuid: f710a997-c65e-4aa6-aaed-b7d6998565ae
metrics:
- metric_name: count
verbose_name: COUNT(*)
metric_type: count
expression: COUNT(*)
description: null
d3format: null
currency: null
extra:
warning_markdown: ""
warning_text: null
columns:
- column_name: parent
verbose_name: null
is_dttm: false
is_active: true
type: INTEGER
advanced_data_type: null
groupby: true
filterable: true
expression: null
description: null
python_date_format: null
extra: {}
- column_name: count
verbose_name: null
is_dttm: false
is_active: true
type: INTEGER
advanced_data_type: null
groupby: true
filterable: true
expression: null
description: null
python_date_format: null
extra: {}
- column_name: id
verbose_name: null
is_dttm: false
is_active: true
type: INTEGER
advanced_data_type: null
groupby: true
filterable: true
expression: null
description: null
python_date_format: null
extra: {}
- column_name: name
verbose_name: null
is_dttm: false
is_active: true
type: STRING
advanced_data_type: null
groupby: true
filterable: true
expression: null
description: null
python_date_format: null
extra: {}
version: 1.0.0
database_uuid: a2dc77af-e654-49bb-b321-40f6b559a1ee

File diff suppressed because it is too large Load Diff