Comments (3)
@CharlesNepote Fixed in PR #58
from datasette-dashboards.
Thanks @CharlesNepote for bringing up this issue. I've never experienced it but I am willing to understand the problem!
A few things to clear things up:
- Could you provide an example of a non-functional query with double-quotes?
- Do you experience the same issue when using Datasette Canned Queries? (https://docs.datasette.io/en/stable/sql_queries.html#canned-queries)
In any case, one need to be careful with quotes in SQL: double and single quotes do not have the same meaning and use.
from datasette-dashboards.
Could you provide an example of a non-functional query with double-quotes?
Here is a simple example:
charts:
count:
title: Total number of measures
# name of the db without .db
db: off-stats
query:
SELECT count(*) as count FROM data_quality_stats where country == "fr"
library: metric
display:
field: count
prefix:
suffix:
The datasette instance is working well but I'm entering the /-/dashboards/my-dashboard, the count
chart is empty and firefox console is yelling: Uncaught SyntaxError: JSON.parse: expected ',' or '}' after property value in object at line 1 column 182 of the JSON data
If I replace double quote with simple quotes, then it works.
Do you experience the same issue when using Datasette Canned Queries?
No. The same request with double quotes as a Canned Query is working well.
from datasette-dashboards.
Related Issues (20)
- Dynamic values for select filter type HOT 1
- Add support for Vega charts HOT 8
- Allow embedding dashboards and charts HOT 2
- Add table chart component HOT 1
- Improve filters layout HOT 2
- Allow dashboards to enter fullscreen HOT 2
- Allow dashboards to auto-refresh HOT 2
- Fix menu not showing in plugin pages
- README screenshot is out-of-date HOT 4
- Vega charts using random generation are not deterministic
- Vega-Lite chart tooltip style is broken HOT 2
- Vega Editor data URL is not absolute HOT 1
- best practice of workflow HOT 1
- Lists not showing markers in Markdown component HOT 4
- Row limit warning for charts
- Add relative date picker
- Text filter style is not consistent
- [Datasette 1.0] `renderTableChart` needs to be updated to support the new Datasette 1.0 JSON API HOT 2
- Error when trying to render a table HOT 2
- Change `faker` dependency Renovate schedule
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-dashboards.