Adding an NSDP indicator page - Vanuatu-National-Statistics-Office/vnso-nsdp-platform GitHub Wiki
Create the data file
In the data
folder, create a new file. Name the file according to the indicator's goal/id, following the same naming convention as the other files. For example, if this is indicator ECO1.1.z, then name the file indicator_ECO1-1-z.csv
.
You don't have to add data to the file, but at least make sure that it has columns. For example:
Year,Units,Series,Value
After saving the data file in GitHub, you should see the new indicator on the platform.
Adding metadata
- Visit the indicator on the platform
- Click on the "Edit" tab
- Click on "Edit Metadata"
- Enter any metadata, as needed.
- Click "Download configuration" to download the file
- Make sure that the downloaded file is the indicator's id, plus ".yml". For example: ECO1-1-z.yml
- Click "Go to repository"
- Upload the file that you downloaded in step 5
Adding data
- Use Excel to modify the CSV file that you uploaded earlier
- Upload the updated CSV file to the same place
Configuring the indicator
- Visit the indicator on the platform
- Click on the "Edit" tab
- Click on "Edit Configuration"
- Make any configuration changes, as needed.
- Click "Download configuration" to download the file
- Make sure that the downloaded file is the indicator's id, plus ".yml". For example: ECO1-1-z.yml
- Click "Go to repository"
- Upload the file that you downloaded in step 5
Adding progress
-
In Github, go to the
progress
folder. -
Create a new file named according to the indicator's id, plus ".yml". For example: ECO1-1-z.yml
-
For the contents of the file, use some initial progress configuration. For example:
progress: - target: progress.target1 years: - year: 2021 status: progress.cloudy image: cloudy.png