PacificCommunity / sdmx-dashboard-demo

Demo application to display dashboards from JSON config files
https://dashboard-creator-iota.vercel.app
1 stars 0 forks source link

Drilldown #20

Closed thhomas closed 1 year ago

thhomas commented 1 year ago

Example of a drilldown YAML:

---
DashID: ExampleDrilldown
Rows:
-
    Row: 0
    chartType: TITLE
    Title: " Drilldown examples"
    Subtitle: 
    Unit: 
    unitLoc: 
    Decimals: 
    LabelsYN:
    legendConcept: 
    legendLoc: 
    xAxisConcept: 
    yAxisConcept: 
    downloadYN: 
    dataLink: 
    metadataLink: 
    DATA: 
-
    Row: 1
    chartType: DRILLDOWN, double
    Title:  "Household Expenditure"
    Subtitle:  "{$TIME_PERIOD}"
    Unit:
    unitLoc: SUFFIX
    Decimals: "{$DECIMALS}"
    LabelsYN: No
    legendConcept: GEO_PICT
    legendLoc: 
    xAxisConcept: COMMODITY 
    yAxisConcept: 
    downloadYN: 
    dataLink: 
    metadataLink: 
    DATA: "https://stats-sdmx-disseminate.pacificdata.org/rest/data/SPC,DF_HHEXP,1.0/A..HHEXP._T._T.10+11+12+01+02+03+04+05+06+07+08+09+_T.USD?startPeriod=2013&endPeriod=2021&lastNObservations=1&dimensionAtObservation=AllDimensions"

-
    Row: 2
    chartType: DRILLDOWN, double
    Title:  "Balance on current and capital account"
    Subtitle:  "{$TIME_PERIOD}"
    Unit:
    unitLoc: SUFFIX
    Decimals: "{$DECIMALS}"
    LabelsYN: No
    legendConcept: GEO_PICT
    legendLoc: 
    xAxisConcept: TIME_PERIOD 
    yAxisConcept: 
    downloadYN: 
    dataLink: 
    metadataLink: 
    DATA: "https://stats-sdmx-disseminate.pacificdata.org/rest/data/SPC,DF_BOP,1.0/A..AMTUSD.BAL_CCA?startPeriod=2017&dimensionAtObservation=AllDimensions"
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dashboard-creator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 26, 2023 11:53am
stanozr commented 1 year ago

@thhomas OK to merge I think.

Reproduced SDG 15.1.1 Land area (first chart on the page).

-
  Row: 3
  chartType: DRILLDOWN, triple
  Title:  "SDG 15.1.1 Land area covered by forest"
  Subtitle:  "{$TIME_PERIOD}"
  Unit: 
  unitLoc: SUFFIX
  Decimals: "{$DECIMALS}"
  LabelsYN: No
  legendConcept: GEO_PICT
  legendLoc: 
  xAxisConcept: TIME_PERIOD 
  yAxisConcept: 
  downloadYN: 
  dataLink: 
  metadataLink:
  DATA: "https://stats-sdmx-disseminate.pacificdata.org/rest/data/SPC,DF_SDG,3.0/A.AG_LND_FRST.._T._T._T._T._T._T._Z._T?dimensionAtObservation=AllDimensions"

It's not perfect, would ideally have more control over legend and axis labels, but considering the time left I believe it's good to go.