Skip to content

Instantly share code, notes, and snippets.

@jesuino
Created May 4, 2022 21:23
Show Gist options
  • Save jesuino/5d334eb282927fa14ca34c39bc4827c8 to your computer and use it in GitHub Desktop.
Save jesuino/5d334eb282927fa14ca34c39bc4827c8 to your computer and use it in GitHub Desktop.
Using Victory Chart
datasets:
- uuid: pop
url: /datasets/population.json
pages:
- components:
- html: Countries Population
properties:
font-size: xx-large
margin-bottom: 100px
- settings:
type: EXTERNAL_COMPONENT
external_component_id: victory-charts
external:
width: "100%"
height: "400px"
columns:
- id: 2020 Population
pattern: '#'
victory-charts:
paddingBottom: '80'
paddingLeft: '-50'
chartType: "bar"
fixLabelsOverlap: "true"
themeColor: green
dataSetLookup:
uuid: pop
rowCount: 10
group:
- columnGroup:
source: Name
groupFunctions:
- source: Name
- source: 2020 Population
- source: 2021 Population
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment