GithubHelp home page GithubHelp logo

sqlcl-chart's People

Contributors

icodealot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sqlcl-chart's Issues

Various TypeErrors in using Java 1.8 no such function setOnCloseRequest

When running the command under Java 1.8 the event handlers attached to the JavaFX stage throw a type error. This doesn't seem to affect the operation of the chart command but its annoying. Need to do some additional testing against Java 1.8 and look at integrating some test cases.

Here is the particular code block were the current TypeError occurs.

ojChart.setupStage = function(stage) {
  ...
  ojChart.stage.setOnCloseRequest(new EventHandler() {
    ...
  });
...
}

Enhancement to support a more column and row format

The current oj-chart command supports a specific query format and expectation to align the query results with the JET chart data set. The data must be queried with the assumption that Column 1 = Chart Series, Column 2 - N = Group values. (labels for columns 2 - N are used as the Group labels by default.) You can of course use pivot/un-pivot to make your data fit this format however, it would be nice to support some additional column setups when running sql> chart data select....

For example:

sql> chart data select series_col, group_col, numeric_value_col from table

This would also allow the group labels to be a little more dynamic. If some additional logic is required, such as when using a case statement or joining from a fact to a dimension table.

Upgrade to Oracle JET 4.0.0 (possibly)

Upgrading to JET 4.0.0 stops the JET chart from working in JavaFX WebView in JDK 9.

Need to research this more. The HTML file for the Oracle JET chart stops working in JavaFX WebView once the libraries and HTML elements are converted to JET 4.0.0. There is an example file called oj-chart4.html in this project for reference. I originally thought it was an issue with JavaFX support for shadow DOMs but this seems to be working correctly elsewhere. More research is required.

Here are some links for future reference:

It appears that WebKet in JavaFX does support a shadow DOM but for some reason the pages still isn't rendering correctly (but works fine in all other browsers).

Add support for APEX / ORDS REST endpoints to load data

Add support to call a REST endpoint from ORDS to populate a JET chart with data. This would probably look something like the following:

sql> chart data https://apex.oracle.com/pls/apex/oraclejet/emp/

This will allow charts to be generated from custom REST endpoints.

Add error handling for things that will probably go wrong

If you botch your select statement the JS helpers are not currently smart enough to figure that out and you will likely get some exceptions when things go wrong. This will get better over time so adding this placeholder here to incorporate some additional exception handling.

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.