evidence-dev / evidence Goto Github PK
View Code? Open in Web Editor NEWBusiness intelligence as code: build fast, interactive data visualizations in pure SQL and markdown
Home Page: https://evidence.dev
License: MIT License
Business intelligence as code: build fast, interactive data visualizations in pure SQL and markdown
Home Page: https://evidence.dev
License: MIT License
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:
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.)
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?
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.
By default, the chart should treat nulls as zero to match up with the behaviour of the other components in the library
Requests have come up for:
We should migrate the docs site to an evidence project when feasible.
Requested in the product hunt discussion.
Need to investigate this.
Only the first axis label is formatted correctly - the others all appear as the raw numbers.
2 new format tags:
xAxisTitle prop not exposed as an option
I think change them to be click to expand.
Thanks Levi!
Remove prop from BarChart component until we build a viable axis title for reverse axis charts
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"
The zero line is technically a gridline, but it should stay visible when gridlines are turned off
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.
Change currency formatting to user locale-based in formatValue and formatAxisLabels.
Automatically select currency symbol in formatTitle
This looks like a great project - what's your plan, if any, to connect with arbitrary PostgreSQL databases?
Quick fix - change "value" to "frequency"
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.
Installer is causing challenges for a number of users. Proposing we move to a standalone starter repo for the near term.
With the project moving quickly, folks who have tried out an earlier version may have a cached version of the initializer on their machine, and they will run into issues.
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
and can't be rendered in a chart since I have to reference values as
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
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
Proper spacing on either side of the chart for dates, weeks, months, quarters, and years. Currently set through padded extents calculation in Chart component.
It would be great to use OAuth to authenticate to BQ. You could expand the user base that way without having to rely on someones ability to create a service account
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)
Apply same checkInputs logic as in other components
Styles don't land instantly in development mode. Appears to be related to sveltejs/kit#915
Color palette for multi-series charts is not in app.css of the template project
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.
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.
Values are rendered in the line, but axis doesn't adjust to fit the values
Adjust position of bars and columns to clearly show the axis line
When no data is present, bar height and column width functions will return NaN, which produces errors in the console. Add logic to return 0 instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.