Repository navigation
Conversation
…k that the boxes hold every observation A box plot (Superset's Box Plot plugin): distribute_across names the columns whose rows are the observations (a time column at time_grain: a day each), groupby the columns that get a box each, metrics the measure, and whiskers Tukey's, the lowest and highest values, or any two percentiles ([5, 95] works on every release: the select is free-form and the operator reads any 'lo/hi percentiles'). The compiler writes whiskerOptions even at Tukey, since without it the plugin adds no boxplot step, and temporal_columns_lookup for the time columns, which the grain needs. Compiled, decompiled, compared by plan and queried by the data check on 4.1.4, 5.0.0 and 6.1.0; the box plot in the featured-charts export reads back whole. row_limit is a 6.0.0 control: a 4.1.4 dashboard's query still stops at it, Explore's leaves it out (both seen live), so it warns before 6.0.0. The data check says when the observations reach the row limit, 10,000 unset on 6.x, so the boxes miss some. Design brain 9 also gets chart.box-plot-observations and chart.box-plot-groups, and chart.ordinal-order reads a box plot's groups and, with a profile, stands down for a column the dataset reports numeric or temporal. The chart-choice guide says when a distribution beats an average and a box plot beats a line of P50 and P90, and how to give the boxes one colour (dashboard.label_colors). Seen rendering on 4.1.4 and 6.1.0; on 6.1.0 a theme hides the plugin's stray "boxplot / outlier" legend. Also: decompile reads stored zoomable false and an empty series_limit as Superset's defaults, which Explore-saved time-axis, mixed and pivot charts carry.
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A
box_plotchart type (Superset's ECharts box plot): the distribution of a measure per group, with median, quartiles, whiskers and outliers. Stacked on #42 (waterfall).{"type": "box_plot", "metrics": ["SUM(sales)"], "distribute_across": ["order_date"], "groupby": ["product_line"], "whiskers": "tukey"}whiskers:"tukey","min_max"or two percentiles such as[5, 95]. Any pair works on every release: the select is free-form, andboxplotOperator.ts:28parses it (checked live on 4.1.4).whiskerOptions, because without it the plugin skips the boxplot step. It also writestemporal_columns_lookup, so atime_grainapplies (buildQuery.ts:38-50).row_limitwarns before 6.0.0 (BoxPlot/controlPanel.ts:81at 6.0.0). On 4.1.4 a dashboard still applies it, but Explore queries without it.chart.box-plot-observations;chart.box-plot-groups, with--profile;label_colorspins to one.test_box_plot_chart.py. The live kitchen-sink and display-controls fixtures carry a box plot on all three releases. Offline: 1657 passed, 1 skipped.chart.ordinal-orderno longer fires on numeric month columns under--profile.time_grainon a categorical x, or a temporal x without one, drifts inplanforever (reproduced offline).