Sample visualization functions for Vega-Lite charts.
Provides scatter plots, histograms, event markers, and sample difference visualizations for criterium benchmark data.
Sample visualization functions for Vega-Lite charts. Provides scatter plots, histograms, event markers, and sample difference visualizations for criterium benchmark data.
(event-layer events [_k metrics])Build an event marker layer showing when events occurred during sampling.
Returns a vector containing the Vega-Lite layer spec, or nil if no events.
Build an event marker layer showing when events occurred during sampling. Returns a vector containing the Vega-Lite layer spec, or nil if no events.
(event-occurrence events metrics index)Extract event occurrence data for a single sample index.
Returns nil if no events occurred, otherwise a map of metric keys to values.
Extract event occurrence data for a single sample index. Returns nil if no events occurred, otherwise a map of metric keys to values.
(histogram-vega-spec data-map view chart-options)Build a complete Vega-Lite spec for histogram visualization.
Takes data-map, view options, and chart-options map containing :width and/or :height for chart dimensions. Returns the Vega-Lite spec without viewer-specific wrapping.
Build a complete Vega-Lite spec for histogram visualization. Takes data-map, view options, and chart-options map containing :width and/or :height for chart dimensions. Returns the Vega-Lite spec without viewer-specific wrapping.
(metric-bootstrap-boxplot-layer transforms bootstrap-stats metric-config)Build a boxplot-style layer showing median CI and spread percentiles.
Creates a rug-plot style annotation at the bottom of the histogram showing:
Transforms are applied to bootstrap values via the source-id chain.
Returns a vector of Vega-Lite layer specs.
Build a boxplot-style layer showing median CI and spread percentiles. Creates a rug-plot style annotation at the bottom of the histogram showing: - Box: median confidence interval bounds - Center line: median point estimate - Whiskers: 10th and 90th percentiles Transforms are applied to bootstrap values via the source-id chain. Returns a vector of Vega-Lite layer specs.
(metric-computed-histo-layer transforms histogram metric)Build a histogram bar chart layer from pre-computed histogram data.
Returns a Vega-Lite layer spec for displaying histogram bins.
Build a histogram bar chart layer from pre-computed histogram data. Returns a Vega-Lite layer spec for displaying histogram bins.
(metric-diff-layer samples metric)Build a sample differences chart layer.
Shows sorted unique differences from minimum value. Returns a Vega-Lite layer spec.
Build a sample differences chart layer. Shows sorted unique differences from minimum value. Returns a Vega-Lite layer spec.
(metric-layer metric->values transforms outliers metric)Build a scatter plot layer showing samples with outlier coloring.
Returns a Vega-Lite layer spec.
Build a scatter plot layer showing samples with outlier coloring. Returns a Vega-Lite layer spec.
(metric-percentile-layer metric->values transforms metric)Build a percentile distribution chart layer.
Uses a logarithmic scale on the x-axis to emphasize tail percentiles. Returns a Vega-Lite layer spec.
Build a percentile distribution chart layer. Uses a logarithmic scale on the x-axis to emphasize tail percentiles. Returns a Vega-Lite layer spec.
(metric-sample-stats-layer transforms stats metric-config)Build a normal distribution overlay layer for histogram charts.
Returns a vector of Vega-Lite layer specs showing the fitted normal distribution and mean line.
Build a normal distribution overlay layer for histogram charts. Returns a vector of Vega-Lite layer specs showing the fitted normal distribution and mean line.
(normal-pdf-points min-val max-val mean variance transforms)Generate points for a normal probability density function curve.
Returns a vector of {:z value :p probability} maps.
Generate points for a normal probability density function curve.
Returns a vector of {:z value :p probability} maps.(samples-vega-spec data-map view chart-options)Build a complete Vega-Lite spec for sample visualization.
Takes data-map, view options, and chart-options map containing :width and/or :height for chart dimensions. Returns the Vega-Lite spec without viewer-specific wrapping.
Build a complete Vega-Lite spec for sample visualization. Takes data-map, view options, and chart-options map containing :width and/or :height for chart dimensions. Returns the Vega-Lite spec without viewer-specific wrapping.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |