mattijn
7/26/2017 - 3:32 PM

vega3_straightLine_symbol.json

{
  "$schema": "https://vega.github.io/schema/vega/v3.0.json",
  "width": 200,
  "height": 100,
  "padding": 5,

  "marks": [
    {
      "type": "symbol",
      "encode": {
        "update": {
          "size": {"value": 40},
          "shape": {"value": "m0.5,15l230,0"},
          "opacity": {"value": 1},
          "fillOpacity":{
            "value": 0.5
          },
          "stroke": {"value": "#652c90"},          
          "strokeWidth": {"value": 10}},
        "hover": {
          "opacity": {"value": 0.5}
        }
      }
    }
  ]
}