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 🙏

© 2026 – Pkg Stats / Ryan Hefner

highcharts-custom-symbols

v1.0.1

Published

Convert SVGs to dynamic draw functions for charting.

Readme

highcharts-custom-symbols

A collection of SVG-based symbols for Highcharts, extending its built-in marker library with curated icon sets for transport, people analytics, decorative, and geometric use cases.

Symbols are generated from SVG source files via a bundled conversion script and registered directly on Highcharts.SVGRenderer.prototype.symbols, so they work anywhere Highcharts accepts a marker symbol string.


Installation

npm install highcharts-custom-symbols

highcharts is a peer dependency — make sure it is installed in your project.


Usage

Import the package once at your app's entry point. This registers all symbols globally with Highcharts.

import 'highcharts-custom-symbols';

Then reference any symbol by name in your chart config:

import Highcharts from 'highcharts';
import 'highcharts-custom-symbols';

Highcharts.chart('container', {
  series: [{
    type: 'scatter',
    data: [
      { x: 10, y: 5,  marker: { symbol: 'bicycle' } },
      { x: 20, y: 15, marker: { symbol: 'hexagon'  } },
      { x: 30, y: 10, marker: { symbol: 'house'    } },
    ]
  }]
});

You can also import individual collections if you want to keep bundle size minimal:

import 'highcharts-custom-symbols/dist/symbols/transportation';
import 'highcharts-custom-symbols/dist/symbols/custom-primitives';

Symbol Collections

Custom Primitives

Geometrically precise shapes that extend Highcharts' default circle, square, diamond, and triangle markers.

Custom Primitive Symbols

| Symbol | Name | |---|---| | circle | Circle | | square | Square | | diamond | Diamond | | pentagon | Pentagon | | hexagon | Hexagon | | octagon | Octagon | | teardrop | Teardrop | | triangle | Triangle | | triangle-down | Triangle Down | | egg | Egg |

Without this package Without this package, Highcharts falls back to generic shapes for unrecognized symbol names.

Transportation

Icons for transport modes — useful for urban mobility dashboards, logistics charts, and route analysis.

Transportation Symbols

Cost vs Carbon by Transport Mode

| Symbol | Name | Symbol | Name | |---|---|---|---| | airplane | Airplane | airplane-tilt | Airplane Tilt | | airplane-taxiing | Airplane Taxiing | bicycle | Bicycle | | boat | Boat | bus | Bus | | cable-car | Cable Car | car | Car | | moped | Moped | moped-front | Moped Front | | motorcycle | Motorcycle | sailboat | Sailboat | | scooter | Scooter | train | Train | | train-simple | Train Simple | tram | Tram | | van | Van | | |

Decorative

Expressive icons suited to content platforms, sprint dashboards, engagement metrics, and anywhere a bit of personality helps communicate the data.

| Symbol | Name | Symbol | Name | |---|---|---|---| | avocardo | Avocado | balloon | Balloon | | bomb | Bomb | bone | Bone | | heart | Heart | lightling | Lightning | | moon | Moon | puzzle | Puzzle | | star | Star | tag | Tag |

People Analytics

Building and demographic icons for HR dashboards, housing market charts, workforce distribution, and workplace data.

Workforce Distribution by Arrangement

| Symbol | Name | Symbol | Name | |---|---|---|---| | baby | Baby | building | Building | | building-apartment | Apartment | building-office | Office | | cross | Cross | gift | Gift | | house | House | | |


Examples

Live examples are available in Storybook. Run it locally with:

npm run storybook

Stories cover a range of real-world chart patterns:

  • Column chart with symbols at bar tops — transport mode share, sprint KPI scores, workforce distribution
  • Multi-series line chart — commute times by transport mode, subscription NPS by tier, property values by type
  • Scatter chart — cost vs carbon per transport mode

Generating Your Own Symbols

The bundled svg-converter.js script converts any SVG file (or directory of SVGs) into a Highcharts-compatible TypeScript symbol.

Convert a single file:

node svg-converter.js ./svgs/my-icon.svg ./src/symbols/my-collection/

Convert an entire directory (mirrors folder structure):

node svg-converter.js ./svgs/my-collection/ ./src/symbols/my-collection/

The script generates one .ts file per SVG and an index.ts barrel in each output directory. SVG path commands (M, L, C, A, etc.) are preserved and scaled to Highcharts' symbol coordinate system at render time.

Requirements: Node.js (LTS)


Contributing

Contributions are welcome — new symbol sets, converter improvements, or additional Storybook examples. Open an issue or submit a pull request.


Credits

SVG source icons are from Phosphor Icons, a flexible icon family by Tobias Fried and Helena Zhang, licensed under the MIT License.


License

MIT © Alexis Hope