Forum Discussion
matan_benyishay
3 years agoHelper II
Second glyph/plot segment in Charticulator
Hi, I'm trying to use Charticulator to make a template for a jitter chart with median and average lines. This is especially helpful for visualizing the variation within and between groups, including...
ppm1
3 years agoSolution Sage
I think you'll have more flexibility with the Deneb visual for this one (based on Vega Lite). Here is a quick example.
Below is the JSON "spec" for the above chart that you can modify as needed. Also, here is a link with a good intro to Deneb - Getting Started | Deneb
{
"data": {"name": "dataset"},
"transform": [
{
"calculate": "random()",
"as": "jitter"
}
],
"layer": [
{
"mark": {"type": "point"},
"encoding": {
"x": {
"field": "Total Qty",
"type": "quantitative"
},
"yOffset": {"field": "jitter"}
}
},
{
"mark": {
"type": "tick",
"size": 200,
"color": "red"
},
"encoding": {
"x": {
"field": "Total Qty",
"aggregate": "mean"
},
"detail": {"field": "Category"}
}
}
],
"encoding": {
"y": {
"field": "Category",
"type": "nominal"
}
}
}
Pat