Skip to content

Commit

Permalink
feat: add dataset and chart for video engagement dropoff
Browse files Browse the repository at this point in the history
  • Loading branch information
SoryRawyer committed Apr 4, 2024
1 parent 5c258ae commit bdd20bb
Show file tree
Hide file tree
Showing 5 changed files with 478 additions and 186 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
_file_name: Video_engagement_by_section_subsection.yaml
cache_timeout: null
certification_details: null
certified_by: null
dataset_uuid: 247a55b3-d44e-442e-ba92-71bf7976b192
description: null
params:
adhoc_filters: []
annotation_layers: []
color_scheme: supersetColors
comparison_type: values
extra_form_data: {}
forecastInterval: 0.8
forecastPeriods: 10
groupby: []
legendOrientation: top
legendType: scroll
metrics:
- aggregate: null
column: null
datasourceWarning: false
expressionType: SQL
hasCustomLabel: true
label: All videos viewed
optionName: metric_ybd2rhz43lp_s2rxtvynidt
sqlExpression: |-
countIf("section/subsection video engagement" = 'All videos viewed')
- aggregate: null
column: null
datasourceWarning: false
expressionType: SQL
hasCustomLabel: true
label: At least one video viewed
optionName: metric_uly1n6wzzl_t4av1e6urzi
sqlExpression: |-
countIf("section/subsection video engagement" = 'All pages viewed' or "section/subsection video engagement" = 'At least one video viewed')
only_total: true
order_desc: true
orientation: vertical
rich_tooltip: true
row_limit: 10000
show_empty_columns: true
show_legend: true
sort_series_type: sum
time_grain_sqla: P1D
tooltipTimeFormat: smart_date
truncate_metric: true
viz_type: echarts_timeseries_bar
xAxisLabelRotation: 45
x_axis: section/subsection name
x_axis_sort_asc: true
x_axis_sort_series: name
x_axis_sort_series_ascending: true
x_axis_time_format: smart_date
x_axis_title_margin: 15
y_axis_bounds:
- null
- null
y_axis_format: SMART_NUMBER
y_axis_title: Number of Learners
y_axis_title_margin: 30
y_axis_title_position: Left
query_context: |-
{"datasource":{"id":226,"type":"table"},"force":false,"queries":[{"filters":[],"extras":{"having":"","where":""},"applied_time_extras":{},"columns":[{"timeGrain":"P1D","columnType":"BASE_AXIS","sqlExpression":"section/subsection name","label":"section/subsection name","expressionType":"SQL"}],"metrics":[{"expressionType":"SQL","sqlExpression":"countIf(\"section/subsection video engagement\" = 'All videos viewed')","column":null,"aggregate":null,"datasourceWarning":false,"hasCustomLabel":true,"label":"All videos viewed","optionName":"metric_ybd2rhz43lp_s2rxtvynidt"},{"expressionType":"SQL","sqlExpression":"countIf(\"section/subsection video engagement\" = 'All pages viewed' or \"section/subsection video engagement\" = 'At least one video viewed')","column":null,"aggregate":null,"datasourceWarning":false,"hasCustomLabel":true,"label":"At least one video viewed","optionName":"metric_uly1n6wzzl_t4av1e6urzi"}],"orderby":[[{"expressionType":"SQL","sqlExpression":"countIf(\"section/subsection video engagement\" = 'All videos viewed')","column":null,"aggregate":null,"datasourceWarning":false,"hasCustomLabel":true,"label":"All videos viewed","optionName":"metric_ybd2rhz43lp_s2rxtvynidt"},false]],"annotation_layers":[],"row_limit":10000,"series_columns":[],"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{},"time_offsets":[],"post_processing":[{"operation":"pivot","options":{"index":["section/subsection name"],"columns":[],"aggregates":{"All videos viewed":{"operator":"mean"},"At least one video viewed":{"operator":"mean"}},"drop_missing_columns":false}},{"operation":"flatten"}]}],"form_data":{"datasource":"553__table","viz_type":"echarts_timeseries_bar","x_axis":"section/subsection name","time_grain_sqla":"P1D","x_axis_sort_asc":true,"x_axis_sort_series":"name","x_axis_sort_series_ascending":true,"metrics":[{"expressionType":"SQL","sqlExpression":"countIf(\"section/subsection video engagement\" = 'All videos viewed')","column":null,"aggregate":null,"datasourceWarning":false,"hasCustomLabel":true,"label":"All videos viewed","optionName":"metric_ybd2rhz43lp_s2rxtvynidt"},{"expressionType":"SQL","sqlExpression":"countIf(\"section/subsection video engagement\" = 'All pages viewed' or \"section/subsection video engagement\" = 'At least one video viewed')","column":null,"aggregate":null,"datasourceWarning":false,"hasCustomLabel":true,"label":"At least one video viewed","optionName":"metric_uly1n6wzzl_t4av1e6urzi"}],"groupby":[],"adhoc_filters":[],"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":"Number of Learners","y_axis_title_margin":30,"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","xAxisLabelRotation":45,"y_axis_format":"SMART_NUMBER","y_axis_bounds":[null,null],"rich_tooltip":true,"tooltipTimeFormat":"smart_date","extra_form_data":{},"dashboards":[817],"force":false,"result_format":"json","result_type":"full"},"result_format":"json","result_type":"full"}
slice_name: Video engagement by section/subsection
uuid: 21861f47-9e8b-4715-b1ff-e7f4aa595c14
version: 1.0.0
viz_type: echarts_timeseries_bar
Loading

0 comments on commit bdd20bb

Please sign in to comment.