Render the Item Share Distribution histogram
Source:R/render-share-distribution.R
render_share_distribution.RdVertical bar chart with N bars (k = 1..N), tier-gradient fill from
#ffe4b5 (k=1) to #7e14ff (k=N). Mirrors the webtool's
buildShareDistributionSvg layout (480x280 viewBox, Tahoma
typography, sd-bar CSS class on every rect) so downstream CSS,
PDF embed, and cross-package parity assertions can key on the same
structure.
Examples
# \donttest{
ds <- load_sample("dataset_real_cancer_drivers_4")
img <- render_share_distribution(ds)
nchar(slot(img, "content")) > 0
#> [1] TRUE
# }