Skip to content

Commit

Permalink
feat: add new labels to charts and metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed May 29, 2024
1 parent 04454b1 commit bff297c
Show file tree
Hide file tree
Showing 29 changed files with 824 additions and 427 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,45 +14,16 @@ params:
- name
- username
- email
- expressionType: SQL
label: Course Grade %
sqlExpression: round(course_grade*100, 2)
- last_visited
order_by_cols: []
order_desc: true
percent_metrics: []
query_mode: aggregate
row_limit: 5000
row_limit: 1000
server_page_length: 10
show_cell_bars: true
table_timestamp_format: smart_date
temporal_columns_lookup: {}
time_grain_sqla: P1D
timeseries_limit_metric:
aggregate: MAX
column:
advanced_data_type: null
certification_details: null
certified_by: null
column_name: course_grade
description: null
expression: null
filterable: true
groupby: true
id: 10990
is_certified: false
is_dttm: false
python_date_format: null
type: Float64
type_generic: 0
verbose_name: Course Grade
warning_markdown: null
datasourceWarning: false
expressionType: SIMPLE
hasCustomLabel: false
label: MAX(Course Grade)
optionName: metric_0woj6b3chi2_ihsomqnfpk9
sqlExpression: null
viz_type: table
query_context:
datasource:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ description: null
params:
adhoc_filters: []
all_columns: []
annotation_layers: []
color_pn: true
column_config:
Avg Course Grade:
Expand Down Expand Up @@ -54,7 +53,6 @@ params:
- course_name
- course_run
metrics:
- graded_learners
- avg_course_grade
- median_course_grade
order_by_cols: []
Expand All @@ -70,7 +68,7 @@ params:
viz_type: table
query_context:
datasource:
id: 282
id: 54
type: table
force: false
form_data:
Expand All @@ -89,9 +87,35 @@ query_context:
column: graded_learners
operator: '>'
targetValue: 0
- colorScheme: '#FDE380'
column: avg_course_grade
operator: "\u2264 x \u2264"
targetValueLeft: '50'
targetValueRight: '70'
- colorScheme: '#EFA1AA'
column: avg_course_grade
operator: <
targetValue: 50
- colorScheme: '#ACE1C4'
column: avg_course_grade
operator: "\u2265"
targetValue: 70
- colorScheme: '#ACE1C4'
column: median_course_grade
operator: "\u2265"
targetValue: 70
- colorScheme: '#FDE380'
column: median_course_grade
operator: "\u2264 x \u2264"
targetValueLeft: '50'
targetValueRight: '70'
- colorScheme: '#EFA1AA'
column: median_course_grade
operator: <
targetValue: 50
dashboards:
- 629
datasource: 282__table
- 9
datasource: 54__table
extra_form_data: {}
force: false
groupby:
Expand All @@ -100,7 +124,6 @@ query_context:
- course_name
- course_run
metrics:
- graded_learners
- avg_course_grade
- median_course_grade
order_by_cols: []
Expand All @@ -112,7 +135,7 @@ query_context:
row_limit: 1000
server_page_length: 10
show_cell_bars: true
slice_id: 528
slice_id: 193
table_timestamp_format: smart_date
temporal_columns_lookup: {}
time_grain_sqla: P1D
Expand All @@ -133,12 +156,11 @@ query_context:
where: ''
filters: []
metrics:
- graded_learners
- avg_course_grade
- median_course_grade
order_desc: true
orderby:
- - graded_learners
- - avg_course_grade
- false
post_processing: []
row_limit: 1000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ _file_name: Cumulative_Interactions.yaml
cache_timeout: null
certification_details: null
certified_by: null
dataset_uuid: 1b1cbf0a-1193-4251-ad52-724c2f0190ae
dataset_uuid: 649ad1d3-c0b4-48e1-a02b-e1d1e80c94ac
description: null
params:
adhoc_filters:
Expand All @@ -18,11 +18,10 @@ params:
forecastInterval: 0.8
forecastPeriods: 10
groupby: []
legendMargin: null
legendOrientation: top
legendType: scroll
markerEnabled: true
markerSize: 7
markerSize: 6
metrics:
- views
- number_of_learners
Expand All @@ -31,19 +30,18 @@ params:
order_desc: true
rich_tooltip: true
rolling_type: cumsum
row_limit: 1000
row_limit: 10000
seriesType: line
show_empty_columns: true
show_legend: true
show_value: false
sort_series_ascending: true
sort_series_type: sum
time_grain_sqla: P1M
tooltipTimeFormat: smart_date
truncateXAxis: true
truncate_metric: true
viz_type: echarts_timeseries_line
x_axis: visited_on
x_axis_sort: Views
x_axis_sort_asc: true
x_axis_sort_series: name
x_axis_sort_series_ascending: true
Expand All @@ -58,7 +56,7 @@ params:
zoomable: true
query_context:
datasource:
id: 61
id: 89
type: table
force: false
form_data:
Expand All @@ -72,18 +70,17 @@ query_context:
color_scheme: supersetColors
comparison_type: values
dashboards:
- 629
datasource: 61__table
- 19
datasource: 89__table
extra_form_data: {}
force: false
forecastInterval: 0.8
forecastPeriods: 10
groupby: []
legendMargin: null
legendOrientation: top
legendType: scroll
markerEnabled: true
markerSize: 7
markerSize: 6
metrics:
- views
- number_of_learners
Expand All @@ -94,22 +91,19 @@ query_context:
result_type: full
rich_tooltip: true
rolling_type: cumsum
row_limit: 1000
row_limit: 10000
seriesType: line
show_empty_columns: true
show_legend: true
show_value: false
slice_id: 140
slice_id: 162
sort_series_ascending: true
sort_series_type: sum
time_grain_sqla: P1M
tooltipTimeFormat: smart_date
truncateXAxis: true
truncate_metric: true
viz_type: echarts_timeseries_line
xAxisForceCategorical: true
x_axis: visited_on
x_axis_sort: Views
x_axis_sort_asc: true
x_axis_sort_series: name
x_axis_sort_series_ascending: true
Expand Down Expand Up @@ -167,7 +161,7 @@ query_context:
views: views
operator: sum
- operation: flatten
row_limit: 1000
row_limit: 10000
series_columns: []
series_limit: 0
time_offsets: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ params:
forecastInterval: 0.8
forecastPeriods: 10
groupby: []
legendMargin: null
legendOrientation: top
legendType: scroll
metrics:
Expand All @@ -24,7 +25,7 @@ params:
row_limit: 10000
show_empty_columns: true
show_legend: true
show_value: true
show_value: false
sort_series_type: sum
tooltipTimeFormat: smart_date
truncateXAxis: true
Expand All @@ -45,7 +46,7 @@ params:
y_axis_title_position: Left
query_context:
datasource:
id: 282
id: 54
type: table
force: false
form_data:
Expand All @@ -54,13 +55,14 @@ query_context:
color_scheme: supersetColors
comparison_type: values
dashboards:
- 629
datasource: 282__table
- 9
datasource: 54__table
extra_form_data: {}
force: false
forecastInterval: 0.8
forecastPeriods: 10
groupby: []
legendMargin: null
legendOrientation: top
legendType: scroll
metrics:
Expand All @@ -74,8 +76,8 @@ query_context:
row_limit: 10000
show_empty_columns: true
show_legend: true
show_value: true
slice_id: 532
show_value: false
slice_id: 95
sort_series_type: sum
tooltipTimeFormat: smart_date
truncateXAxis: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ params:
row_limit: 100
show_empty_columns: true
show_legend: true
show_value: true
show_value: false
sort_series_type: sum
tooltipTimeFormat: smart_date
truncateXAxis: true
Expand All @@ -67,7 +67,7 @@ params:
y_axis_title_position: Left
query_context:
datasource:
id: 424
id: 29
type: table
force: false
form_data:
Expand Down Expand Up @@ -98,8 +98,8 @@ query_context:
color_scheme: supersetColors
comparison_type: values
dashboards:
- 629
datasource: 424__table
- 9
datasource: 29__table
extra_form_data: {}
force: false
forecastInterval: 0.8
Expand All @@ -119,8 +119,8 @@ query_context:
row_limit: 100
show_empty_columns: true
show_legend: true
show_value: true
slice_id: 120
show_value: false
slice_id: 41
sort_series_type: sum
tooltipTimeFormat: smart_date
truncateXAxis: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ params:
- expressionType: SQL
label: Grade Range
sqlExpression: grade_bucket
- expressionType: SQL
label: Course Grade %
sqlExpression: ROUND(course_grade*100, 2)
- course_grade
order_by_cols: []
order_desc: true
percent_metrics: []
Expand All @@ -74,7 +72,7 @@ params:
viz_type: table
query_context:
datasource:
id: 992
id: 79
type: table
force: false
form_data:
Expand All @@ -101,7 +99,7 @@ query_context:
column: course_grade
operator: <
targetValue: 0.5
datasource: 992__table
datasource: 79__table
extra_form_data: {}
force: false
groupby:
Expand Down Expand Up @@ -136,7 +134,7 @@ query_context:
server_pagination: true
show_cell_bars: true
show_totals: true
slice_id: 4364
slice_id: 169
table_timestamp_format: smart_date
temporal_columns_lookup:
emission_time: true
Expand Down
Loading

0 comments on commit bff297c

Please sign in to comment.