-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What should I do if I do not need time series in the box plot chart? #10468
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
@cyang52 I recently thought about precisely what you're describing here. Adding an additional multi-select control ( As box plot is using the legacy plugin framework, you'd need to change the control panel in the
Doing it like this you wouldn't need to add anything to If you haven't already, check out the blog post by @rusackas on how to create a viz plugin using the new architecture: https://preset.io/blog/2020-07-02-hello-world/ . If you need help, feel free to reach out on slack. |
I checked #10344, just wondering if I do not have ds or any columns that relative to (time, year or month) , instead, I have region countries, etc. Is there any difference between before and after? If I print out chart_data, it shows:
|
@cyang52 what I'm proposing is leaving the time fields there. If the user doesn't add the timestamp column to either |
🙏@villebro can we close this issue? |
I know that superset has a close connection with time series, but if I do not need such attribute and set is_timeseries = false, the box plot will be a flat line.
Instead, if I need other attributes to series data, such as customers names or countries( columns in the dataset) how can I replace time series to other attributes? For example, I plan to create a new control panel like Entity and use this panel to replace time panel (time range and time column). This may be very similar to Tableau's detail panel.
SELECT region AS region, year AS __timestamp, sum(
SP_POP_TOTL) AS
sum__SP_POP_TOTLFROM wb_health_population INNER JOIN (SELECT region AS region__, sum(
SP_POP_TOTL) AS mme_inner__ FROM wb_health_population WHERE year >= STR_TO_DATE('1960-01-01 00:00:00.000000', '%Y-%m-%d %H:%i:%s.%f') AND year <= STR_TO_DATE('2020-07-29 08:20:11.000000', '%Y-%m-%d %H:%i:%s.%f') GROUP BY region ORDER BY mme_inner__ DESC LIMIT 25) AS anon_1 ON region = region__ WHERE year >= STR_TO_DATE('1960-01-01 00:00:00.000000', '%Y-%m-%d %H:%i:%s.%f') AND year <= STR_TO_DATE('2020-07-29 08:20:11.000000', '%Y-%m-%d %H:%i:%s.%f') GROUP BY region, year ORDER BY
sum__SP_POP_TOTLDESC LIMIT 50000
As you can see, SQL queries years, what I want is to make SQL queries other attributes.
I think what I should rewrite is viz.py and boxplot control panels. But in the viz.py, I didn't find where I can replace time series and in the control panels, I did not find where to delete the time panel.
Thanks!
The text was updated successfully, but these errors were encountered: