Created
August 23, 2022 06:30
-
-
Save shreshthmohan/6427149dde2ef71e87d500575aa94d84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
"data": { | |
"url": "https://gist.githubusercontent.com/shreshthmohan/d05355ac058b7870135cb8b2881268aa/raw/75b9dbca7829cfd182034cb7173de57d39e02d08/newGujAC.topo.json", | |
"format": { | |
"type": "topojson", | |
"feature": "gujarat_AC", | |
"mesh": "gujarat_AC" | |
} | |
}, | |
"hconcat": [ | |
{ | |
"projection": {"type": "mercator"}, | |
"title": "Districts", | |
"width": 385, | |
"height": 300, | |
"mark": {"type": "geoshape", "strokeWidth": 0.5, "stroke": "#fff"}, | |
"encoding": { | |
"tooltip": [ | |
{"field": "properties.ac"}, | |
{"field": "properties.acId"}, | |
{"field": "properties.pc"}, | |
{"field": "properties.pcId"}, | |
{"field": "properties.dt"} | |
], | |
"color": { | |
"field": "properties.dt", | |
"scale": {"scheme": "redyellowgreen"} | |
} | |
} | |
}, | |
{ | |
"projection": {"type": "mercator"}, | |
"title": "Parliamentary Constituencies", | |
"width": 385, | |
"height": 300, | |
"mark": {"type": "geoshape", "strokeWidth": 0.5, "stroke": "#fff"}, | |
"encoding": { | |
"tooltip": [ | |
{"field": "properties.ac"}, | |
{"field": "properties.acId"}, | |
{"field": "properties.pc"}, | |
{"field": "properties.pcId"}, | |
{"field": "properties.dt"} | |
], | |
"color": {"field": "properties.pc", "scale": {"scheme": "turbo"}} | |
} | |
} | |
], | |
"config": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment