You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our aim is to create a radal plot oriented according to the points of the compass. We've made a first attempt that works well. However, we wanted to know if it was possible to place the cardinal points at the right angle, and thus position the N...
Our aim is to create a radal plot oriented according to the points of the compass. We've made a first attempt that works well. However, we wanted to know if it was possible to place the cardinal points at the right angle, and thus position the N...
Here is the json of the current graph :
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "A simple radial chart with embedded data.",
"data": {
"values": [
{"category": "N", "value": 236142.1},
{"category": "NNE", "value": 198490.641},
{"category": "NE", "value": 180178.693},
{"category": "ENE", "value": 225907.263},
{"category": "E", "value": 285517.046},
{"category": "ESE", "value": 314869.103},
{"category": "SE", "value": 401478.068},
{"category": "SSE", "value": 329396.276},
{"category": "S", "value": 208707.178},
{"category": "SSW", "value": 359787.985},
{"category": "SW", "value": 153546.442},
{"category": "WSW", "value": 93985.971},
{"category": "W", "value": 51060.691},
{"category": "WNW", "value": 107711.766},
{"category": "NW", "value": 309127.719},
{"category": "NNW", "value": 449500.89}
]
},
"layer": [{
"mark": {"type": "arc", "innerRadius": 20, "stroke": "#55759a"}
},{
"mark": {"type": "text", "radiusOffset": 20},
"encoding": {
"text": {"field": "category", "type": "nominal"}
}
}],
"encoding": {
"theta":{"field":"category"},
"radius": {"field": "value", "scale": {"type": "sqrt", "zero": true, "rangeMin": 5}}, "color": {"value": "#87afe0"}
}
}
Thanks in advance
The text was updated successfully, but these errors were encountered: