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

dxcr-waterfall

v1.1.2

Published

waterfall

Downloads

1

Readme

English

Waterfall Chart

This project is a Three.js-based waterfall chart visualization.

Waterfall Chart

Features

  • Uses Three.js for rendering.
  • WebWorker for background data processing.
  • Dynamic data update and chart scaling.
  • Interactive chart with mouse events.
  • Axis with ticks and labels.

Usage Instructions

import Waterfall from 'dxcr-waterfall';
// Create a Waterfall instance
const waterfall = new Waterfall(dom, {
    debugMode: false, // Debug mode
    dataCount: 1000, // Number of data per row
    keepCount: 1000, // Total number of rows
    minValue: 0, // Minimum value for data-generated colors
    maxValue: 3000, // Maximum value for data-generated colors
});

Code Structure

Waterfall class: Handles the main chart functionalities.

  • addData(data, index): Adds new data.
  • setData(data): Sets the data.
  • clearData(): Clears the data.

中文

瀑布图

该项目是一个基于 Three.js 的瀑布图可视化工具。

瀑布图

特性

  • 使用 Three.js 进行渲染。
  • 使用 WebWorker 进行后台数据处理。
  • 动态数据更新和图表缩放。
  • 支持鼠标事件的交互式图表。
  • 带有刻度和标签的轴。

使用说明

import Waterfall from 'dxcr-waterfall'
// 创建 Waterfall 实例
const waterfall = new Waterfall(dom, {
    debugMode: false,//debug模式
    dataCount: 1000,//每行数据量
    keepCount: 1000,//总行数
    minValue: 0,//数据生成的颜色最小值
    maxValue: 3000,//数据生成的颜色最大值
});

代码结构

Waterfall 类: 处理主要的图表功能。

  • addData(data, index): 添加数据。
  • setData(data): 设置图表数据。
  • clearData(): 清除图表数据。