Skip to content

Instantly share code, notes, and snippets.

@jesuino
Created May 7, 2022 01:39
Show Gist options
  • Save jesuino/dce493b30c33b87e322ab9fc4d4f4d72 to your computer and use it in GitHub Desktop.
Save jesuino/dce493b30c33b87e322ab9fc4d4f4d72 to your computer and use it in GitHub Desktop.
datasets:
- uuid: pop
url: /datasets/population.json
pages:
- components:
- settings:
component: echarts
echarts:
option: >-
{
"toolbox": {
"feature": {
"dataView": {},
"dataZoom": {},
"magicType": {
"type": ["line", "bar", "stack"]
},
"restore": {}
}
},
"series": [
{
"type": "bar",
"markPoint": {
"data": [
{
"symbol": "arrow",
"symbolRotate": 180,
"symbolSize": 20,
"name": "Brazil is here!",
"coord": [5, 214000000 ],
"itemStyle": {
"color": "red"
}
}
]
},
"markLine": {
"data": [
{ "type": "average" },
{ "type": "max" },
{ "type": "min" }
]
}
}
]
}
title:
text: Population
external:
width: 100%
height: 600px
dataSetLookup:
uuid: pop
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