package-trendsv0.2.1 Size
  1. package-trends
  2. Scale
  3. Size

Size

A number is pixels. A CSS length leaves the viewBox alone and renders at that size instead, so a chart set in em scales with the text it sits in.

Downloads have been moving all month.

The code for what is on screen

<PackageTrend package="react" width="8em" height="1.6em" />

A chart never grows past its container either way: one wider than its box scales down with its aspect ratio kept, so it cannot give the page a horizontal scrollbar.