A subcategory is defined as column that doesn't define the scenario, year, units, or value. When a new query is selected, the new subcategory should be the same as one in the previous query if it exists. If the new query does not have that subcategory, a new one is chosen based on number of unique values. If the subcategory contains only one unique element, it is not included.
1 | getNewSubcategory(prj, scenario, query, oldSubcategory = NULL)
|
prj |
Project data structure. |
scenario |
Name of the scenario. |
query |
Name of the query. |
oldSubcategory |
The subcategory for the previous query. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.