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

ember-pie-chart

v0.0.2

Published

A simple pie chart component inspired by a talk by Lea Verou.

Readme

Ember Pie Chart

This package provides a simple pie chart that uses SVG. This work was inspired by a Lea Verou's talk called The Missing Slice, where she demonstrated some alternatives to build pie charts and I felt particularly interested by the SVG solution.

It is usable, but it lacks some things (in order of importance?):

  • [X] Change base chart color (in case only one slice is provided)
  • [ ] Cross browser test
  • [X] Animations
  • [ ] Tests
  • [ ] Hover labels
  • [ ] Slice highlighting
  • [ ] Slice removal by legend
  • [ ] Fallback to canvas?
  • [ ] Make a website with demo and options table

If you need a static simple pie chart that is lightweight, this one is awesome.

Pre-requisites

This package assumes you're using at least Ember version 1.13, which introduces new hooks for components, and also that you're using Ember CLI.

Installation

In order to install the addon, please use the following command:

ember install ember-pie-chart

Usage

On your templates, include the pie chart and add your slices with loops so you don't have to build the data on controllers before displaying.

{{#pie-chart}}
  {{#each series as |data|}}
    {{pie-slice value=data.value color=data.color}}
  {{/each}}
{{/pie-chart}}

Slice options you can pass for the component:

  • color: The color to be used on the slice and legend (if enabled)
  • title: Title to show on legend and, on the future, on hovers
  • value: The value in percentage of the slice

Changelog

Version 0.0.2
  • Enabling slice composability
  • Adding animations without dependencies
Version 0.0.1

Initial version. Has the ability to display static pie charts and update them.