Comments (5)
Using count(*)
may have not been the best example because the count also returns the number of records. What I'm hoping for is to set the y-axis value in the SQL itself. A better example might be to use an AVG
, SUM
, or even an existing column.
SELECT role_name, avg(age) as y_axis FROM users
The "setup the fields" page is effectively selecting the column to use on the x-axis, with the y-axis being the count of instances for that column. The ability select a column that overrides the y-axis drastically increases what these charts can visualize.
from chartbrew.
Just a quick update that this feature is being worked on in #57
Not planning to add field selection through the SQL query just yet. Will have to experiment with that after the new updates
from chartbrew.
Your example is currently supported through the pattern charts that are available for all the charts except Line.
If you query your data with SELECT role_name FROM users
you can select the role_name
field and then you will be able to see how many roles of each type you have in your data.
I agree it's a bit confusing at the moment, but this part will be re-worked soon. Also, time filtering is not yet available for pattern charts, but it's the next big thing that's on my list of development 😁
Let me know if my quick guide above didn't make sense so I can offer a better explanation.
I'm assuming you want to create something like this, right? 👇
from chartbrew.
Gotcha! I'm planning to work on offering more customizability for Beta.13. The "Setup the fields" page will be revamped to offer the option to select custom fields on top of the date. I will also experiment with queries like the one you mentioned to see how I can design the UI for that kind of scenario.
The idea of selecting the axis from the SQL query is interesting and can definitely be placed in the ideas list. I'll add this issue there to keep track of it.
Thanks a lot for the suggestion and let me know if you come up with similar ideas or ways you'd like to use Chartbrew. It really helps! 😁
from chartbrew.
This is now implemented in Beta 13
from chartbrew.
Related Issues (20)
- Container up from v3 HOT 12
- Run mongodb query return a 404 HOT 3
- Can't save queries HOT 3
- Show more than one metric from the same dataset? HOT 1
- Migrations don't support existing data HOT 1
- Publish directory build does not exist! when deploying frontend to render HOT 4
- MS SQL Server integration HOT 1
- Unable to Sign Up/Sign In in Chartbrew Docker Container HOT 16
- I'm getting segmentation fault when trying to deploy the container HOT 10
- Update the Render tutorial with the new VITE_APP_ variables and new build directory HOT 1
- [BUG] Docker deploy not working HOT 1
- SequelizeDatabaseError relation "ChartDatasetConfig" does not exist HOT 2
- Unable to Authenticate with Chartbrew Deployed on Render HOT 9
- ENCRYPTION_KEY_DEV on production. HOT 2
- MongoDB connection broken after upgrade to v3.3.0 HOT 4
- Cannot create a dataset HOT 9
- ERR_CRYPTO_INVALID_KEYLEN HOT 6
- Postgresql connection string HOT 3
- Create a starter docker-compose file
- MongoDB `Server selection timed out after 30000 ms` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chartbrew.