Tell us what works and what could be better. We read every submission.
@andreaeverett·3 public vizzes
This visualization displays the frequency of each letter in the English alphabet as horizontal bars, using data from a CSV file. Two buttons, "Ascend" and "Descend," allow viewers to reorder the bars by frequency in ascending or descending order, with animated transitions. The chart is built with D3 v4, using `d3.scaleLinear` for the x-axis scale and SVG rectangles for the bars, while `d3.csv` loads the data and `transition()` animates the reordering.
The visualization displays the first of four data sets as a scatterplot of eleven points, plotting x against y values on linear scales. D3 v4 is used to load the CSV data, convert the numeric fields, and draw circles with the SVG `append` method. The chart area is sized with margins and configured through `d3.scaleLinear` for both axes, though no axes are rendered in the final output. The points use a fixed radius, with no trend line or additional encoding beyond position.
This visualization implements Dunn's multiple comparison test following a Kruskal-Wallis one-way ANOVA. It computes the omnibus H-statistic and p-value from ranked group data, then calculates pairwise Z-scores comparing mean ranks between all group combinations. The code uses scipy.stats.rankdata and tiecorrect for ranking, statsmodels.stats.multitest.multipletests for p-value correction, and supports configurable alpha levels and correction methods. The function returns the H-statistic, omnibus p-value, pairwise Z-scores, corrected p-values, and a boolean rejection array for hypothesis testing.