Skip to content

Klar 0.2.0

Choose a tag to compare

@msalehy msalehy released this 28 Nov 21:27
· 9 commits to main since this release

15 new science and BI charts. Klar now has 125 React charts drawn by hand in plain SVG.

New in Science (8 → 16)

  • Volcano plot: log₂ fold change vs significance for thousands of genes, Benjamini–Hochberg FDR, labelled top hits (sci-volcano)
  • Manhattan plot: GWAS p-values across the genome on canvas, clumped loci by gene, Q–Q inset with λGC (sci-manhattan)
  • Clustered heatmap: hierarchical clustering with dendrograms, annotation strips, click a branch to highlight a cluster (sci-clustered-heatmap)
  • PCA biplot: PCA computed in the chart, 95% group ellipses, loading arrows, scree strip (sci-pca-biplot)
  • Dose–response: four-parameter logistic fit, EC50/IC50 with CI, parameter table (sci-dose-response)
  • Bland–Altman: bias and limits of agreement with exact CIs, proportional bias, tolerance zone (sci-bland-altman)
  • Q–Q + ECDF: confidence envelope, Shapiro–Wilk and Lilliefors tests (sci-qq-plot)
  • Ternary plot: three-part compositions with USDA soil-texture classes and density (sci-ternary)

New in BI (7 → 14)

  • Variance chart (IBCS): actual vs plan vs prior year, absolute and relative variance on aligned scales (bi-variance)
  • Forecast band: Holt–Winters forecast with 80/95% intervals, anomalies and backtest (bi-forecast-band)
  • Control chart (SPC): X–mR, x̄–R and p charts with Western Electric / Nelson rules and phases (bi-control-chart)
  • Tornado chart: one-at-a-time sensitivity, with a spider mode (bi-tornado)
  • Decomposition tree: drill a KPI down by any dimension, with AI split (bi-decomposition-tree)
  • Horizon chart: 20+ series in folded bands with a shared scrub line (bi-horizon)
  • Quadrant matrix: BCG / effort–impact zones with prior-period trails (bi-quadrant)

Every new chart works in light and dark, supports touch and keyboard, includes a hidden data table and CSV rows, and its maths is tested against published reference values.

Install

  • npm: npm i klar-charts@0.2.0
  • shadcn: npx shadcn@latest add https://klar.run/r/sci-volcano.json (any chart id)
  • MCP server: npx -y klar-mcp@0.2.0. Ask your assistant to "add a volcano plot with Klar"
  • Claude Code plugin: /plugin install klar --marketplace klar-run/klar

See them live: https://klar.run/charts/science · https://klar.run/charts/bi