Giter VIP home page Giter VIP logo

Comments (3)

rclement avatar rclement commented on May 27, 2024 1

@CharlesNepote Fixed in PR #58

from datasette-dashboards.

rclement avatar rclement commented on May 27, 2024

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:

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.

CharlesNepote avatar CharlesNepote commented on May 27, 2024

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
image
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.