Comments (4)
This fix fails if the first row of the returned data has any null values for anything that should have been expanded - e.g.:
{
"rowid": 1,
"TreeID": 141565,
"qLegalStatus": {
"value": 1,
"label": "Permitted Site"
},
"qSpecies": {
"value": 1,
"label": "Myoporum laetum :: Myoporum"
},
"qAddress": "501X Baker St",
"SiteOrder": 1,
"qSiteInfo": {
"value": 1,
"label": "Sidewalk: Curb side : Cutout"
},
"PlantType": {
"value": 1,
"label": "Tree"
},
"qCaretaker": {
"value": 1,
"label": "Private"
},
"qCareAssistant": null,
"PlantDate": "07/21/1988 12:00:00 AM",
"DBH": 21,
"PlotSize": "Width 0ft",
"PermitNotes": "Permit Number 25401",
"XCoord": 6000609,
"YCoord": 2110829,
"Latitude": 37.7759676911831,
"Longitude": -122.441396661871,
"Location": "(37.7759676911831, -122.441396661871)"
}
Because this first row has "qCareAssistant": null
the code will not correctly identify that as a column which has a label, and hence attempting to graph against that column will fail.
from datasette-vega.
I can fix this by inspecting every row of the data rather than just looking at data[0]
from datasette-vega.
Here's a demo of a scatter graph against a correctly identified column:
And here's the same demo against the incorrectly identified qCareAssistant
:
from datasette-vega.
from datasette-vega.
Related Issues (20)
- Make it easy to embed charts in other pages HOT 2
- Upgrade to latest vega / react / etc HOT 1
- Proof of concept using Preact + HTM
- Charts should sit outside the new horizontally scrollable table area
- some charts are pretty small HOT 4
- Not obvious that vega charts are plotted only for rows on the visible page HOT 5
- BUG: Inaccurate Chart HOT 2
- Modifiable vega-lite? HOT 2
- Feature Request: 'x' to close chart HOT 2
- Feature Request: Disaggregate array fields HOT 1
- Charting option defaults: Timeseries
- Charting options: adjusting axis options
- Feature request: Option to put x axis on the top HOT 1
- Maybe check for `columns` rather than looking at `view_name` HOT 2
- Migrate to GitHub Actions HOT 2
- Add instructions on how to develop on this
- Untracked file: package-lock.json
- log scale option? HOT 2
- feature: permit supplying an arbitrary vega-lite specification HOT 1
- Live demo of datasette-vega seems to have problems with cors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datasette-vega.