{
"width": 700,
"height": 600,
"padding": 20,
"config": {
"view": {
"stroke": "none"
}
},
"data": {
"url": "./data/overijssel_roads.geo.json",
"format": {
"type": "json",
"property": "features"
}
},
"projection": {
"type": "stereographic"
},
"layer": [
{
"mark": {
"type": "geoshape",
"stroke": "red",
"color": "red"
},
"encoding": {
"size": {
"field": "properties.vehicles_per_hour",
"type": "quantitative"
}
}
}
}
]
}
Gives me "vega...@3.0.0-rc6.min.js:1 WARN size dropped as it is incompatible with "geoshape"."
Is there something I am missing or a workaround?
Barend Köbben
--
You received this message because you are subscribed to the Google Groups "vega-js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vega-js+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Dominik,
Before I can file an issue, I want to better understand your question/remark. What do you mean if you say it “is not clear what to map size to”...?
Surely if you have linear features in a geoshape, size maps to the (SVG) strokeWidth of the line, creating a so-called “flow map”... See e.g. https://en.wikipedia.org/wiki/Flow_map .
This is also useful in n0n-geo charts, eg. Sankey diagrams (https://kartoweb.itc.nl/kobben/D3tests/LandGrabbing/flowdiagram.html ) but I guess that can be achieved in vega-lite (with trail, or line marks...?)
Or am I missing something?
--
Barend Köbben


--

Hi Dominik,
After the weekend I will file an issue with an example. I am afraid you overrate my abilities in asking me to “send a PR afterward”, don’t even know for sure what that means (pull request? But that would imply I’d fix the issue myself, don’t hold your breath on that...!)
Yours,
--
Barend Köbben