Free for personal, educational, and other non-commercial projects — install from npm, use the CDN, or download the zero-dependency bundle.
By downloading and using this software, you acknowledge your understanding and acceptance of the HistropediaJS Non-Commercial Licence Agreement.
Required to enable the download.
Files included in the self-hosted download.
<script> tags
Complete UMD and ESM examples with shared data — copy, paste, and customize.
Release highlights and examples. Read the full changelog for all changes.
destroy() when an embedded timeline is removed to release listeners, animations, images and generated DOM.Check style reads, compact data, article ordering and image host settings in the v1.8 upgrade guide.
Histropedia.UNSET to restore applicable defaults and inherited values through public setters.onComplete after the final viewport draw, including immediate fits. Replaced or interrupted navigation cancels pending callbacks.Existing card configurations may render differently. See the sizing migration notes and the full changelog.
fitArticleRange() and fitArticles() now keep stored BCE article dates aligned during immediate and animated fits.timeline.setOption(...)—including parent date-label visibility or height—now refits stacked articles before redraw, with no manual fitToHeight() call needed.Dmy objects retain their chosen precision during calculations and correctly update the day of year after their date fields are edited.'month', 'all', and 'screen' for precision, density, and stacking range.timeline.setStartDate(date, { padding, animation }) for padded or animated jumps.timeline-state-change now fires after meaningful interactions settle, reducing save-handler noise.timeline.fitDateRange(start, end, options) to fit a supplied period into the viewport.this context. Preserves the timeline instance as this inside legacy event handlers to maintain backward compatibility.