Allow parameterised share for smart embeds
As Weichen
I want that the shared table or chart can take additional URL parameters for filter selections (e.g. a different country code)
So that the efficiency and flexibility of the share feature increases dramatically, for example, we could then easily create a dashboard with one or more shared data tables/charts of a fixed list of indicators and fixed layout but with a selector for country (and/or other dimensions). This type of "country profile" table/chart is very tedious to create in current version of Share.
Functional specifications
- The .Stat DE Viewer with a shared view of table or chart allows specifying one or more filter selections in the URL.
Example: Like today, I share a data view with a selection of Australia country. Once the shared view is generated and activated, I can display it in the viewer and change the data query of the viewer to request the display of Belgium data instead of the original share selection (e.g. using a new Viewer URL parameter&dq=BE....A
). - The filter selection parameters to be included are:
- data query (e.g.
&dq=BE....A
) - time period (e.g.
&pd=2016%2C2019
) - lastNObservations (e.g.
&lo=1
) - locale (e.g.
&lc=en
)
- data query (e.g.
- This feature ONLY applies to shared views from the "Latest available data for the period defined" share option, not the "snapshot of data...".
- This feature ONLY concerns the filter selections, and not the layout of the representations. In other terms, the shared view URL only allows injecting a different filter selection. As today in the viz page, the data visualisation layout will automatically adapt to the modified data query according to the business rules for layouts. The result layout of the shared view is thus not static and may thus vary depending on the filter selection.
Edited by Jens Dossé