sparkta - Interactive, self-contained HTML charts and dashboards from Stata
Fahad Mirza
2026 Stata Conference from Stata Users Group
Abstract:
Sparkta (Spark Stata) is an open-source Stata package that produces self-contained, interactive HTML dashboards directly from a single Stata command. The package does not require any external installation of Python or R and makes use of the Java API. Sparkta outputs HTML files that run in any browser with no server, internet connection, and external dependencies, making them safe for institutional and air-gapped environments. The package supports 20 chart types, including bar, line, scatter, area, histogram, pie, boxplot, violin, and confidence interval charts. Charts are rendered using Chart.js and follow Stata syntax conventions throughout: options such as over(), by(), if, in, filter(), and value label awareness all behave as Stata users expect. Sparkta combines interactive visualization with live Stata-computed statistics. A collapsible panel beneath each chart reports N, mean, SD, median, and confidence intervals computed to match Stata's own summarize and ci means commands exactly. Additional features include an offline mode that bundles all JavaScript locally, a PNG download button, reference line and annotation overlays, animated transitions, named color palettes, including a colorblind-safe option, and over 130 styling and layout options.
Date: 2026-10-03
References: Add references at CitEc
Citations:
Downloads: (external link)
http://repec.org/usug2026/US26_Mirza.zip
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:usug26:27
Access Statistics for this paper
More papers in 2026 Stata Conference from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().