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 🙏

© 2024 – Pkg Stats / Ryan Hefner

roku-charts

v0.4.8

Published

Roku Charts is a lightweight chart library that provides a simple and flexible way to create charts in your web applications.

Downloads

35

Readme

Roku Charts

CodeTime badge

Roku Charts is a lightweight chart library that provides a simple and flexible way to create charts in your web applications. It is built using D3.js and leverages the power of SVG to create high-quality, interactive charts.

With Roku Charts, you can create a wide variety of chart types, including bar charts, calendar charts, and more (in the future). The library provides a simple and intuitive API for configuring and customizing your charts, making it easy to create charts that meet your exact requirements.

It is designed to be lightweight. This means that it should not slow down the loading speed of the page and can provide a smooth and responsive user experience.

Roku Charts also supports scaling with the window, which means that it can automatically adjust the size and layout of the chart to fit the available space. This can be particularly useful for creating responsive and adaptive user interfaces.

In addition, Roku Charts provides support for smooth animations, which can be used to enhance the visual appeal and interactivity of your charts. Animations can be used to highlight data points, provide context for changes over time, and create a more engaging and dynamic user experience.

Installation

You can use any package manager to install this package.

Please note that you should also install d3, as it is a peer dependency.

pnpm install roku-charts d3

# or
npm install roku-charts d3

# or
yarn add roku-charts d3

Alternatively, if you want to use the UMD build, you can use Unpkg:

<script src="https://unpkg.com/d3"></script>
<script src="https://unpkg.com/roku-charts"></script>

Or, you can use Jsdelivr:

<script src="https://cdn.jsdelivr.net/npm/d3"></script>
<script src="https://cdn.jsdelivr.net/npm/roku-charts"></script>

Usage

import { type Datum } from './interfaces'
import { RokuBar } from './RokuBar'

RokuBar
  .New('#test-1')
  .setData([{ id: '3', value: 4 }, { id: 'bbb', value: 1 }, { id: 'ccc', value: 3 }, { id: 'ddd', value: 5 }])
  .draw()

Contributing

We welcome contributions to Roku Charts! If you find a bug or have a feature request, please open an issue on the GitHub repository.

License

Roku Charts is open source software released under the MIT License.