Sector-selection controls
The updated HTML template can build its Sector Selection panel from an explicit list of projection dimensions. This controls which already-charted series readers can show or hide; it does not add series to a chart.
Use one explicit dimension
- chartpack:
format: gcubed-chartpack
version: "1.3.0"
title: Sector results
sector_selection_dimensions: [sectors]
sector_selection_include_default: false
- chart:
title: Output by sector
series:
- variable_prefix: OUP
selectors:
regions: [USA]
sectors: all
Each name in sector_selection_dimensions must be a non-blank, unique dimension present in the supplied projections metadata. Use dimension names such as sectors or sec_std, not member codes such as a01. Inspect the actual model’s set_member_descriptions metadata rather than copying names from another build.
Include the previous automatic choices
With an explicit dimension list, the default value of sector_selection_include_default is false. The panel then contains only members drawn from the listed dimensions.
Set it to true to add the template’s previous automatically discovered sector and goods choices as well:
sector_selection_dimensions: [sec_std]
sector_selection_include_default: true
Omitting sector_selection_dimensions preserves the previous automatic panel behaviour. Do not declare sector_selection_include_default by itself; it is valid only when sector_selection_dimensions is present.
Use more than one dimension
Dimensions follow the order you list; members follow their first occurrence in the CSV. With explicit dimensions, a series must pass the selection for every configured dimension that it contains. Choices within one dimension are alternatives. A series lacking that dimension is unaffected by it. Regional filtering still applies separately.
When automatic sector/goods choices are included, they appear first. A member already represented by an automatic choice appears only once. These controls require version "1.3.0" or "1.4.0". Changing a page filter does not rewrite the chartpack or the source data. See tables and downloads for what remains in an exported CSV.
G-Cubed