Giter VIP home page Giter VIP logo

evidence-dev / evidence Goto Github PK

View Code? Open in Web Editor NEW
3.3K 27.0 160.0 228.9 MB

Business intelligence as code: build fast, interactive data visualizations in pure SQL and markdown

Home Page: https://evidence.dev

License: MIT License

JavaScript 57.74% Svelte 37.24% CSS 1.61% HTML 0.19% TypeScript 3.22%
analytics sql business-intelligence data-visualization dbt duckdb tailwindcss self-hosted open-source svelte

evidence's People

Contributors

afzalsayed96 avatar albinxxx avatar archiewood avatar ayushagrawal-a2 avatar busykomodo avatar commitsovercoffee avatar csjh avatar dependabot[bot] avatar dhrjarun avatar eleweek avatar github-actions[bot] avatar gregwdata avatar hughess avatar itsmebriand avatar jdimmerman avatar jjagielka avatar maxstreese avatar mcrascal avatar nattaylor avatar nidhi-kala avatar phukon avatar quoid avatar roveo avatar the-nesh avatar tshauck avatar ud3sh avatar wasimtq avatar winterhart avatar ycaffee avatar yukseltron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

evidence's Issues

Hard to read column chart

Hi,

Thanks for sharing Evidence. Looks like it has great potential. I stumbled into an issue trying it today that I’d like to share with you.

I wanted to see the number of users in a database by date added:

Screenshot 2021-08-25 at 23 24 26

As you can probably tell, the chart is hard to read. In addition, I miss features like being able to see data points on hover, zoom the X-axis and so on. (The chart seems a bit off when I compare it to the example data, but it’s hard to troubleshoot without any interactivity.)

Some thoughts on solutions

You are probably aware of these issues, and I can imagine that it must be a huge task to make charts work well. Personally, I would just grab Highcharts or something similar. Perhaps an easy fix would be to document how to use libraries like HIghcharts and Chart.js or similar with Evidence?

Automatic testing

I’m curious about whether you are planning to add automatic testing capabilities to Evidence. That seems like one of the biggest wins of using code and source control.

For example, if I could do something like load an example database and check that my queries return the expected results, that would make me much more confident in my queries.

evidence.config.json missing on initial init

To connect the data warehouse the docs say to "update evidence.config.json" file, but in my most recent pull that fill is missing and I had to add manually (which solves the "can't connect to warehouse" issue I was having"

Histogram x axis labels are not formatted

Caused by the dataset that is outputted from the histogram component dropping the original column names. Change this output dataset to use the original x column name, which will pull through the format tag of the column.

Make DataTable default settings publication-quality

  1. Publication-quality formatting by default
  2. Smart spacing between columns
  3. Formatting options for each column (text alignment, value formats, text formats)
  4. Smart text-wrapping rules for headers and table cell content
  5. Handling of many columns (scrolling, visual indications of full table width)

Grouped bar and column charts

Add an option to show multiple series in bar and column charts as groups rather than stacked, which is currently the only option.

Example from The Economist:

image

Add PostgreSQL Connector

This looks like a great project - what's your plan, if any, to connect with arbitrary PostgreSQL databases?

Stacked chart extents don't work with date axis

Setting the stacked chart extents does not work with dates because the grouping function treats instances of the same date as separate groups. Can use Date.parse() to get date into numerical format, which should allow the grouping function's equality checking to work.

Date handling from BQ

There seems to be an issue with handling dates returned from BQ.
Problem query
SELECT EXTRACT(DATE FROM <timestampe> ) as Date, <some_metric> FROM <some_table>
returns a nested json object like
image
and can't be rendered in a chart since I have to reference values as
image

working query
When I extract only month as:
SELECT EXTRACT(MONTH FROM <timestampe> ) as Date, <some_metric> FROM <some_table>
The json object is not nested and the chart renders fine

Move to a single dependency

Today, when you initialize an evidence project you get a full sveltekit project built in your directory.

This is pretty gnarly for our users, and it makes managing dependencies tricky for us.

Future state

  1. A working project should only require a pages directory with .md files, and the required evidence.config and database.config files.
  2. The only dependency should be @evidence-dev/evidence. All of the other deps should be upstream of that.
  3. The __layout, svelte config, app.css, api route etc. files that are currently dropped in the directory should no longer be required.
  4. If a user did want to modify app.css or __layout (e.g. a new "theme") they should be able to add them directly to their directory and modify from there, with the build system preferring their additions.

Clarify BigQuery permissions

Depending on the organization in Google Cloud Console, service accounts may need higher access than BigQuery User (which is the role currently specified in the docs)

Hyperlinks in DataTable

Ability to set up hyperlinks for a column in your query result. For example, if you have parameterized pages for your customers and one column in your query result is your customer ID, you should be able to put that query result in a DataTable and have the customer ID column become a hyperlink to the page for each customer.

Add Oracle Connector

As in #5 it would be nice to have connectors for other dbs. Or maybe just a generic CustomConnector that can be any of available db connectors on npm.

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.