Created
December 23, 2023 17:08
-
-
Save PBI-DataVizzle/239fdb0a4a23aed9996305fb9019a171 to your computer and use it in GitHub Desktop.
vl_radial_donut_v1
This file contains hidden or 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", | |
| "description": "A simple radial chart with embedded data.", | |
| "data": {"values": [12, 23, 47, 52, 19]}, | |
| "layer": [ | |
| {"mark": {"type": "arc", "innerRadius": 20, "stroke": "#fff"}}, | |
| { | |
| "mark": { | |
| "type": "text", | |
| "radiusOffset": 10, | |
| "fontWeight": "bolder", | |
| "fontSize": 15 | |
| }, | |
| "encoding": {"text": {"field": "data", "type": "quantitative"}} | |
| } | |
| ], | |
| "encoding": { | |
| "theta": {"field": "data", "type": "quantitative", "stack": true}, | |
| "radius": { | |
| "field": "data", | |
| "scale": {"type": "sqrt", "zero": true, "rangeMin": 45} | |
| }, | |
| "color": {"field": "data", "type": "nominal", "legend": null} | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment