Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

512 native moz dashboard visualizations main #183

Open
wants to merge 42 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
68ff609
chart in DashboardTab, lifecyclehook (mounted) not appropriate
Aug 15, 2023
3cc6c2e
Added vega-lite and vega-embed to package.json
Aug 15, 2023
ff73492
More attempts to render using vega
gb-beng Aug 17, 2023
356dfbd
Set tab (window) to render eager
gb-beng Aug 17, 2023
95fa5cf
Improve vega integration
gb-beng Aug 18, 2023
b42cddc
Change layout of graph
Aug 21, 2023
e5dd426
Fix various lint warnings/errors
gb-beng Nov 21, 2023
c54ef3b
Work around Proxy object
gb-beng Nov 21, 2023
62cfaca
Proper data type, axis settings, etc.
Jan 4, 2024
8cde81c
Bind identifier to div to hold chart
Jan 4, 2024
80c434c
Load a directory with vega-specs, rather than a single one, and displ…
Jan 4, 2024
1177770
Moved vegalite specs to dedicated folder (and some small styling chan…
Jan 4, 2024
36226f6
Use dashboard folder for variable dataset
Jan 4, 2024
a3b05e9
Specs for 5 charts added and fake ones removed
Jan 4, 2024
a056795
Added geojson with municipalities in NL
Jan 5, 2024
8f60413
Added geojson with municipality borders in NL
Jan 5, 2024
415e406
Trying around with geojson
Jan 5, 2024
686052a
Another attempt at uploading municipality borders
Jan 5, 2024
fe1ca2a
Applied projection
Jan 5, 2024
eeed927
Proper projections
Jan 5, 2024
f0ab385
Deleted unused geojson
Jan 5, 2024
0be8573
Renamed producer chart and some tiny fixes
Jan 5, 2024
06d8000
Base layer for concerts per location (Dutch municipalities)
Jan 5, 2024
883447c
Added layer with top 10 venues (sized by frequency)
Jan 5, 2024
19dff11
Moved data file out of specs dir
Jan 5, 2024
dd17f77
Added data file with location counts
Jan 5, 2024
cee3a69
Script to actualize dashboard data, WIP
Jan 5, 2024
d1f90a5
Appropriate venv
Jan 5, 2024
8970ccd
Proper map (without water, with lower precision)
Jan 8, 2024
3c85181
Adde map without water with higher precision
Jan 8, 2024
1651ad3
Removed provincies from map
Jan 9, 2024
a11fecb
Removed old maps
Jan 9, 2024
5310d28
Use proper map, show venue circles with stroke
Jan 9, 2024
27fe367
Removed Flourish visualizations
Jan 9, 2024
31efcf6
Provide default/ required property vegachartId
Jan 9, 2024
df1feb6
omit newline (obey prettier)
Jan 9, 2024
0a2ce15
All locations (from file), filtered to show only venues in (roughly) …
Jan 9, 2024
77f9f75
Merge branch 'main' into 512-native-MOZ-dashboard-visualizations-main
mwigham Jun 17, 2024
4a87d83
Updates URLs to point to new GH repository (data.beeldengeluid.nl ins…
Jun 21, 2024
6b4523c
removed unnecessary moz md and added nl versions for dashboard
mwigham Jun 21, 2024
95e7bc8
updated location counts, added NL version of MOZ dashboard
mwigham Jun 21, 2024
48c9bb5
ran prettier
mwigham Jun 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions components/VegaView.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<template>
<div :id="vegachartId"></div>
</template>

<script setup>
import embed from 'vega-embed'

const props = defineProps({
spec: { type: Object, required: true, default: () => ({}) },
vegachartId: { type: String, required: true, default: '99' },
})

onMounted(() => {
embed('#' + props.vegachartId, JSON.parse(JSON.stringify(props.spec)))
})
</script>
10 changes: 9 additions & 1 deletion components/dataset/TabDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
</v-col>
</v-row>

<div v-for="(spec, index) in dashboardSpecs" :key="index">
<VegaView :spec="spec" :vegachart-id="'vegachart' + index" />
</div>

<!-- Description -->
<ContentRenderer :value="page" />

Expand All @@ -30,13 +34,17 @@
</section>
</v-window-item>
</template>

<script setup>
const i18n = useI18n()

defineProps({
const props = defineProps({
projects: { type: Array, required: false, default: () => [] },
blogs: { type: Array, required: false, default: () => [] },
showcases: { type: Array, required: false, default: () => [] },
page: { type: Object, required: false, default: null },
dataset: { type: Object, required: true, default: null },
dashboardSpecs: { type: Object, required: true, default: () => ({}) },
})

// reactive data
Expand Down
54 changes: 1 addition & 53 deletions content/en/dashboards/muziekopnamen-zendgemachtigden.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,56 +7,4 @@ tags: []
showDashboard: true
---

**The concerts**

<iframe src='https://flo.uri.sh/visualisation/13400156/embed' title='Interactive or visual content' class='flourish-embed-iframe' frameborder='0' scrolling='no' style='width:100%;height:600px;' sandbox='allow-same-origin allow-forms allow-scripts allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation'></iframe><div style='width:100%!;margin-top:4px!important;text-align:right!important;'><a class='flourish-credit' href='https://public.flourish.studio/visualisation/13400156/?utm_source=embed&utm_campaign=visualisation/13400156' target='_top' style='text-decoration:none!important'><img alt='Made with Flourish' src='https://public.flourish.studio/resources/made_with_flourish.svg' style='width:105px!important;height:16px!important;border:none!important;margin:0!important;'> </a></div>

_Number of concerts in the MOZ collection_

<iframe src='https://flo.uri.sh/visualisation/13400198/embed' title='Interactive or visual content' class='flourish-embed-iframe' frameborder='0' scrolling='no' style='width:100%;height:600px;' sandbox='allow-same-origin allow-forms allow-scripts allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation'></iframe><div style='width:100%!;margin-top:4px!important;text-align:right!important;'><a class='flourish-credit' href='https://public.flourish.studio/visualisation/13400198/?utm_source=embed&utm_campaign=visualisation/13400198' target='_top' style='text-decoration:none!important'><img alt='Made with Flourish' src='https://public.flourish.studio/resources/made_with_flourish.svg' style='width:105px!important;height:16px!important;border:none!important;margin:0!important;'> </a></div>

_Number of concerts per year_

<iframe src='https://flo.uri.sh/visualisation/13400214/embed' title='Interactive or visual content' class='flourish-embed-iframe' frameborder='0' scrolling='no' style='width:100%;height:600px;' sandbox='allow-same-origin allow-forms allow-scripts allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation'></iframe><div style='width:100%!;margin-top:4px!important;text-align:right!important;'><a class='flourish-credit' href='https://public.flourish.studio/visualisation/13400214/?utm_source=embed&utm_campaign=visualisation/13400214' target='_top' style='text-decoration:none!important'><img alt='Made with Flourish' src='https://public.flourish.studio/resources/made_with_flourish.svg' style='width:105px!important;height:16px!important;border:none!important;margin:0!important;'> </a></div>

_Distribution of concerts over musical genres_

**The artists**

<iframe src='https://flo.uri.sh/visualisation/13400457/embed' title='Interactive or visual content' class='flourish-embed-iframe' frameborder='0' scrolling='no' style='width:100%;height:600px;' sandbox='allow-same-origin allow-forms allow-scripts allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation'></iframe><div style='width:100%!;margin-top:4px!important;text-align:right!important;'><a class='flourish-credit' href='https://public.flourish.studio/visualisation/13400457/?utm_source=embed&utm_campaign=visualisation/13400457' target='_top' style='text-decoration:none!important'><img alt='Made with Flourish' src='https://public.flourish.studio/resources/made_with_flourish.svg' style='width:105px!important;height:16px!important;border:none!important;margin:0!important;'> </a></div>

_The top ten creators, based on number of concerts_

<iframe src='https://flo.uri.sh/visualisation/13400512/embed' title='Interactive or visual content' class='flourish-embed-iframe' frameborder='0' scrolling='no' style='width:100%;height:600px;' sandbox='allow-same-origin allow-forms allow-scripts allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation'></iframe><div style='width:100%!;margin-top:4px!important;text-align:right!important;'><a class='flourish-credit' href='https://public.flourish.studio/visualisation/13400512/?utm_source=embed&utm_campaign=visualisation/13400512' target='_top' style='text-decoration:none!important'><img alt='Made with Flourish' src='https://public.flourish.studio/resources/made_with_flourish.svg' style='width:105px!important;height:16px!important;border:none!important;margin:0!important;'> </a></div>

_The top ten performers, based on number of concerts_

<iframe src='https://flo.uri.sh/visualisation/16062269/embed' title='Interactive or visual content' class='flourish-embed-iframe' frameborder='0' scrolling='no' style='width:100%;height:600px;' sandbox='allow-same-origin allow-forms allow-scripts allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation'></iframe><div style='width:100%!;margin-top:4px!important;text-align:right!important;'><a class='flourish-credit' href='https://public.flourish.studio/visualisation/16062269/?utm_source=embed&utm_campaign=visualisation/16062269' target='_top' style='text-decoration:none!important'><img alt='Made with Flourish' src='https://public.flourish.studio/resources/made_with_flourish.svg' style='width:105px!important;height:16px!important;border:none!important;margin:0!important;'> </a></div>

_The top ten most frequently occuring instruments, on the basis of number of concerts_

<iframe src='https://flo.uri.sh/visualisation/15966465/embed' title='Interactive or visual content' class='flourish-embed-iframe' frameborder='0' scrolling='no' style='width:100%;height:600px;' sandbox='allow-same-origin allow-forms allow-scripts allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation'></iframe><div style='width:100%!;margin-top:4px!important;text-align:right!important;'><a class='flourish-credit' href='https://public.flourish.studio/visualisation/15966465/?utm_source=embed&utm_campaign=visualisation/15966465' target='_top' style='text-decoration:none!important'><img alt='Made with Flourish' src='https://public.flourish.studio/resources/made_with_flourish.svg' style='width:105px!important;height:16px!important;border:none!important;margin:0!important;'> </a></div>

_Profiles of the top ten most frequently occuring instruments, including audio samples from Wikidata_

Note: Only instruments mapped to Wikidata are included.

**The locations**

<iframe src='https://flo.uri.sh/visualisation/14539726/embed' title='Interactive or visual content' class='flourish-embed-iframe' frameborder='0' scrolling='no' style='width:100%;height:600px;' sandbox='allow-same-origin allow-forms allow-scripts allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation'></iframe><div style='width:100%!;margin-top:4px!important;text-align:right!important;'><a class='flourish-credit' href='https://public.flourish.studio/visualisation/14539726/?utm_source=embed&utm_campaign=visualisation/14539726' target='_top' style='text-decoration:none!important'><img alt='Made with Flourish' src='https://public.flourish.studio/resources/made_with_flourish.svg' style='width:105px!important;height:16px!important;border:none!important;margin:0!important;'> </a></div>

_Number of concerts per location_

Note: Only locations mapped to Wikidata are included. Locations are mostly noted at the level of the concert, but sometimes at the level of a clip within the concert.

**The organisations**

<iframe src='https://flo.uri.sh/visualisation/13400764/embed' title='Interactive or visual content' class='flourish-embed-iframe' frameborder='0' scrolling='no' style='width:100%;height:600px;' sandbox='allow-same-origin allow-forms allow-scripts allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation'></iframe><div style='width:100%!;margin-top:4px!important;text-align:right!important;'><a class='flourish-credit' href='https://public.flourish.studio/visualisation/13400764/?utm_source=embed&utm_campaign=visualisation/13400764' target='_top' style='text-decoration:none!important'><img alt='Made with Flourish' src='https://public.flourish.studio/resources/made_with_flourish.svg' style='width:105px!important;height:16px!important;border:none!important;margin:0!important;'> </a></div>

_The top ten production companies, based on number of concerts_

**Finding the collection**

The MOZ collection is registered in the NDE and Clariah data registries. It can be viewed in the <a target="_blank" href="https://mediasuite.clariah.nl/tool/single-search?queryId=6688eee0-db29-4f6e-9eae-fdc28d38cc64">Media Suite</a> (metadata available for everyone, users with a Media Suite account can
also play audio/video of some concerts), and as Linked Data on the Sound & Vision <a target="_blank" href="https://cat.apis.beeldengeluid.nl/#transientDatasources=https%3A%2F%2Fcat.apis.beeldengeluid.nl%2Fsparql&query=PREFIX%20sdo%3A%20%3Chttps%3A%2F%2Fschema.org%2F%3E%0A%0A%23%20Show%20the%20ID%20and%20title%20of%20all%20concerts%20that%20are%20part%20of%20the%20Dutch%20Broadcast%20Concert%20%0A%23%20(MOZ)%20collection%2C%20in%20alphabetical%20order%0A%0ASELECT%20DISTINCT%20%3FprogramUri%20%3FprogramName%0AWHERE%0A%7B%0A%20%23%20Filter%20for%20programmes%20belonging%20to%20the%20series%20%22Muziekopnamen%20Zendgemachtigden%20(MOZ)%22%2C%20using%20its%20ID%0A%20%3FprogramUri%20sdo%3ApartOfSeason%2Fsdo%3ApartOfSeries%20%3Chttp%3A%2F%2Fdata.beeldengeluid.nl%2Fid%2Fseries%2F2101608030025711131%3E%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20sdo%3Aname%20%3FprogramName%20.%20%0A%7D%20ORDER%20BY%20%3FprogramName">linked data endpoint</a>.
An interactive overview of the collection statistics can be found in <a target="_blank" href="https://github.com/mwigham/linked_data_notebooks/blob/main/MOZ%20Linked%20Data%20visualisations.ipynb">this Jupyter Notebook</a>, which you can run locally. Alternatively, you can try it out online in <a target="_blank" href="https://colab.research.google.com/github/mwigham/linked_data_notebooks/blob/main/MOZ%20Linked%20Data%20visualisations.ipynb">Google Colab</a> (disclaimer: this is hosted by a third party).
---
Loading