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

lora-charts

v0.0.5

Published

A modern Angular chart library built with D3.js — bar, line, area, pie, scatter, heatmap, treemap, gauge, word cloud, and world map components.

Readme

Lora Charts 📊

A modern, interactive charting library built with Angular and D3.js, featuring beautiful glass-morphism designs and smooth animations.

Version Angular D3.js License

✨ Features

  • +10 Chart Types: Bar, Line, Area, Pie, Scatter, Heatmap, Treemap, Gauge, Wordcloud, and more
  • Modern Design: Glass-morphism effects with smooth animations
  • Interactive: Tooltips, zoom, hover effects, and customization options
  • TypeScript: Fully typed for better developer experience
  • Responsive: Adapts to different screen sizes
  • Theme Support: Customizable themes with CSS variables
  • Storybook: Interactive documentation and component playground

📦 Installation

npm install lora-charts

🚀 Quick Start

Basic Usage

import { Bar } from 'lora-charts';

@Component({
  selector: 'app-example',
  standalone: true,
  imports: [Bar],
  template: `
    <app-bar
      [data]="chartData"
      [width]="800"
      [height]="500"
      [config]="{ animated: true, showGrid: true }"
    />
  `
})
export class ExampleComponent {
  chartData = [
    { label: 'Q1', value: 4500 },
    { label: 'Q2', value: 5200 },
    { label: 'Q3', value: 6100 },
    { label: 'Q4', value: 7300 },
  ];
}

📊 Available Charts

Bar Chart

Perfect for comparing values across categories.

import { Bar } from 'lora-charts';

Line Chart

Ideal for showing trends over time.

import { Line } from 'lora-charts';

Area Chart

Similar to line charts with filled areas.

import { Area } from 'lora-charts';

Pie Chart

Great for showing proportions and percentages.

import { Pie } from 'lora-charts';

Scatter Chart

Perfect for showing correlations and data distributions.

import { Scatter } from 'lora-charts';

Heatmap

Ideal for visualizing data density and patterns.

import { Heatmap } from 'lora-charts';

Treemap

Great for hierarchical data visualization.

import { Treemap } from 'lora-charts';

Gauge Chart

Perfect for showing progress and KPIs.

import { Gauge } from 'lora-charts';

Wordcloud

Visualize word frequencies and text data.

import { Wordcloud } from 'lora-charts';

🎨 Theming

Lora Charts supports custom themes through CSS variables and JSON configuration.

Using Theme Service

import { ThemeService } from 'lora-charts';

constructor(private themeService: ThemeService) {
  this.themeService.loadAndSetTheme('/themes/main.json');
}

Theme Configuration

Create a theme JSON file:

{
  "mode": "light",
  "colors": {
    "primary": "#0071e3",
    "secondary": "#8e44ff",
    "background": "#f5f5f7",
    "text": "#1d1d1f",
    "border": "rgba(0, 0, 0, 0.08)"
  },
  "fonts": {
    "family": "Inter, system-ui, sans-serif",
    "size": {
      "sm": 13,
      "md": 15,
      "lg": 17
    }
  },
  "spacing": {
    "sm": 8,
    "md": 16,
    "lg": 24
  }
}

⚙️ Configuration

Each chart accepts a config object for customization:

Bar Chart Config

{
  orientation?: 'vertical' | 'horizontal';
  showGrid?: boolean;
  showValues?: boolean;
  animated?: boolean;
  barRadius?: number;
  barPadding?: number;
  colors?: string[];
  customTooltip?: (data) => TooltipConfig;
}

Scatter Chart Config

{
  showGrid?: boolean;
  animated?: boolean;
  colors?: string[];
  minBubbleSize?: number;
  maxBubbleSize?: number;
  enableZoom?: boolean;
  xAxisLabel?: string;
  yAxisLabel?: string;
  customTooltip?: (data) => TooltipConfig;
}

🔧 Development

Prerequisites

  • Node.js 22+
  • npm 11.7.0

Setup

# Clone the repository
git clone https://github.com/HenriqueCosta05/Lora_DS

# Install dependencies
npm install

# Run Storybook
npm run storybook

Project Structure

lora-charts/
├── src/
│   ├── components/
│   │   ├── base/              # Base chart components
│   │   │   ├── axis/
│   │   │   ├── chart-container/
│   │   │   ├── grid/
│   │   │   ├── legend/
│   │   │   └── tooltip/
│   │   └── charts/            # Chart implementations
│   │       ├── area/
│   │       ├── bar/
│   │       ├── gauge/
│   │       ├── heatmap/
│   │       ├── line/
│   │       ├── pie/
│   │       ├── scatter/
│   │       ├── treemap/
│   │       └── wordcloud/
│   ├── services/              # Theme and utility services
│   ├── stories/               # Storybook stories
│   ├── types/                 # TypeScript types
│   └── utils/                 # Helper functions
├── public/
│   └── themes/                # Theme configurations
└── .storybook/                # Storybook configuration

📚 Documentation

Full documentation is available in Storybook:

npm run storybook

Then navigate to http://localhost:6006

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

This project is open-source. See the repository for licensing information.

🔗 Links

👨‍💻 Author

Henrique Costa


Made with ❤️ using Angular and D3.js