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

  1. Visit the indicator on the platform
  2. Click on the "Edit" tab
  3. Click on "Edit Metadata"
  4. Enter any metadata, as needed.
  5. Click "Download configuration" to download the file
  6. Make sure that the downloaded file is the indicator's id, plus ".yml". For example: ECO1-1-z.yml
  7. Click "Go to repository"
  8. Upload the file that you downloaded in step 5

Adding data

  1. Use Excel to modify the CSV file that you uploaded earlier
  2. Upload the updated CSV file to the same place

Configuring the indicator

  1. Visit the indicator on the platform
  2. Click on the "Edit" tab
  3. Click on "Edit Configuration"
  4. Make any configuration changes, as needed.
  5. Click "Download configuration" to download the file
  6. Make sure that the downloaded file is the indicator's id, plus ".yml". For example: ECO1-1-z.yml
  7. Click "Go to repository"
  8. Upload the file that you downloaded in step 5

Adding progress

  1. In Github, go to the progress folder.

  2. Create a new file named according to the indicator's id, plus ".yml". For example: ECO1-1-z.yml

  3. 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