npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@department-of-veterans-affairs/clinical-design-system-chart

v1.0.0

Published

A clinician-facing design system built for the Department of Veterans Affairs.

Downloads

30

Readme

Chart

The Chart component is a foundational visualization container used to render various types of data charts, such as Line Charts and Bar Charts. It provides a flexible and accessible framework for presenting structured numerical data in a graphical format, enabling users to identify patterns, trends, and comparisons at a glance.

The Chart component handles shared structural elements, like axis rendering, legends, labels, tooltips, and responsive behavior, while delegating specific visual behavior to the selected chart type (e.g., line or bar). This modular approach allows for consistency in layout and accessibility while supporting multiple data visualization formats.

You can find more information on the Clinical Design System documentation site

Installation instructions

yarn add @department-of-veterans-affairs/clinical-design-system-chart npm install @department-of-veterans-affairs/clinical-design-system-chart

Technical Documentation

Props

title*
string
	-
Sample Line Chart
width
Any valid CSS width value like "100%", "400px", "auto", or "fit-content". Note: setting a pixel value here will disable the responsiveness of the chart.
string


height
The number of pixels that the SVG should render as. Default is 400.
number


id*
string
	-
example
xAxisLabel*
string
	-
X Axis
yAxisLabel*
string
	-
Y Axis
type*
"line""bar"
	-
line
bar
datasets*
An array of datasets to plot. Each dataset includes a name and an array of { x, y } points. Only the first four datasets will be rendered for line charts and for bar chart, only 2 datasets are valid. Datasets are displayed in the order they appear in the array, which is also reflected in the visually hidden accessibility table. Currently, only dates and numbers are valid for line chart x values and dates are strings are valid for bar chart x values. Only numbers are valid for y values for both line and bar charts. Line and bar charts have extra configurations to change the styling. If patterns are desired for bar charts, both the pattern and patternColor dataset property must be set. Click on the "Show code" button in the Stories below to view more property details. This information is subject to change as more types of Charts are added.
LineChartDataset[] | BarChartDataset[]
	-
[
{...} 5 keys{...} 5 keys]
description*
A chart description provides assistive technology users with a brief, meaningful summary of what the chart represents and how to interpret it. This description is read aloud by screen readers and serves as an alternative to visually scanning the chart or tooltip interactions. The description will render below the chart title in the DOM and cannot be set to an empty string. Please visit the documentation site for more information: https://department-of-veterans-affairs.github.io/clinical-design/components/chart#accessibility
string
	-
A sample line chart that visualizes data.
referenceLines
An array of reference lines to plot. Each reference line includes a value and a label. The value should be a number and the label should be a string.
ReferenceLine[]
	[]
margin
Partial<{ top: number; right: number; bottom: number; left: number; }>