Code Monkey home page Code Monkey logo

Comments (4)

d4nt avatar d4nt commented on July 23, 2024

The Chart panel on the report builder is only shown if the data on the results panel has at least one numeric column. What is the data type of the units_in_stock column? Is it one of the data types listed in the IsNumericType function in tools.js:

tools.IsNumericType = function (theType) {
    switch (theType.toUpperCase()) {
        case "INTEGER":
        case "INT":
        case "SMALLINT":
        case "TINYINT":
        case "MEDIUMINT":
        case "BIGINT":
        case "DECIMAL":
        case "NUMERIC":
        case "FLOAT":
        case "DOUBLE":
        case "REAL":
        case "MONEY":
        case "SMALLMONEY":
        case "DOUBLE PRECISION":
        case "SMALLSERIAL":
        case "SERIAL": 
        case "BIGSERIAL":
        case "INT4":
        case "INT8":
            return true;
        default:
            return false;
    }
}

It may be that we need to add a new datatype to that list.

from querytree.

s1monj avatar s1monj commented on July 23, 2024

It was the products.units_in_stock which is a smallint - from this test database:
https://github.com/pthom/northwind_psql/blob/master/northwind.sql

I'll look into it some more

from querytree.

d4nt avatar d4nt commented on July 23, 2024

I setup Northwind and connected QueryTree. From the details you've given I think you've selected the Products.UnitsInStock column and the Suppliers.CompanyName columns, which is what I've done here. The Add Chart button seems to be showing ok for me. Am I doing something wrong?

qt-northwind-addchart

from querytree.

s1monj avatar s1monj commented on July 23, 2024

Right thanks - sorry, looks like I have an older version, but I thought I downloaded the latest release
screenshot from 2018-06-14 12-52-46

from querytree.

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.