hackmdio / hackmdio/codimd

Vega-Lite chart gives `TypeError: e is undefined`

Open
#1,754 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10.1k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

The following Vega-Lite spec gives `TypeError: e is undefined`.

````json
```vega
{
"config": {"view": {"continuousWidth": 300, "continuousHeight": 300}},
"data": {
"url": "https://cdn.jsdelivr.net/npm/vega-datasets@v1.29.0/data/cars.json"
},
"mark": "circle",
"encoding": {
"color": {"field": "Origin", "type": "nominal"},
"x": {
"axis": {"title": {"expr": "measure"}},
"field": "x",
"type": "quantitative"
},
"y": {"field": "Horsepower", "type": "quantitative"}
},
"params": [
{
"name": "measure",
"bind": {
"input": "select",
"options": ["Miles_per_Gallon", "Acceleration", "Displacement"],
"name": "X-axis column "
},
"value": "Miles_per_Gallon"
}
],
"transform": [
{"calculate": "datum[measure]", "as": "x"},
{"filter": {"param": "measure"}}
]
}
```
````

[Open the Chart in the Vega Editor](https://vega.github.io/editor/#/url/vega-lite/N4Igxg9gdgZglgcxALlANzgUwO4tJKAFzigFcJSBnAdTgBNCALFAZgAY2AacaYsiygAlMiRoVYcAvpO50AhoTl4QpAE4AbFCDGEADpWQB6Q2DpQAdACtKdTOrhpV5qJkKGougLaG0mBHIBaeUVKV0oAATQARnMAJgBOczZDYLkTOVVKK0poEBkQTwyAay0wOFUwdUwQbkwoSDoSJFQedQhVZXg7Oi0AeVVEEhqQQgBPXWrkECgITxI5TXyAD2U5JbhKZWJCKuVMJd0Oqc9MOUo1auluLvUeqZXuMYmtAEdSOSI4RWJfPO5RzpYW5aQTtUK6CDYTAdR7jSYgN4fbYKByXfK6DJyTybZAAbVAUCx8JOZwuwwARiQ7qASLpSOIpqEqmBxNwILpiNAcbiQABZOBVSgAfQmqiFAHEFm0oMMAIJgMB2aEo3LcAAiG106jkipORBAAF1uISTloABoBNYbAAEkHUpE8UGtfxAaAWpHh-MFIuhEqluUkRpGqg+lBg7U8KHx4AWYFI2sI8OCDtxJPOqkwBuGZy0KxkoHg6kTR1AGJDkeOp3TaINkiAA)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.