Sign In

cybercore-charts

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cybercore-charts

Zero-dependency cyberpunk SVG chart library with neon aesthetics and glitch effects

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
10
25%
Maintainers
1
Weekly downloads
 
Created
Source

📊 CYBERCORE CHARTS

CYBERCORE CHARTS Version License Bundle Size

Zero-dependency SVG chart library with cyberpunk aesthetics

Neon glows, dark themes, and futuristic data visualization

🚀 Live Demo | 📖 Documentation | 💻 GitHub

Features

FeatureDescription
Zero DependenciesNo runtime dependencies - pure TypeScript
SVG OutputClean SVG strings or DOM elements
SSR CompatibleWorks in Node.js and browser environments
Cyberpunk ThemeNeon glows, dark backgrounds, futuristic style
Fully TypedComplete TypeScript definitions
Tree-ShakeableImport only the charts you need
AccessibleRespects prefers-reduced-motion
Tiny Bundle<10KB minified + gzipped

Screenshots

Dashboard Home

Dashboard Home

Complete dashboard with chart type previews and feature overview

Line Charts

Line Charts

Smooth curves with neon glow effects in cyan, magenta, yellow, and green

Bar Charts

Bar Charts

Vertical bars with gradient fills across all color themes

Radial Charts

Radial Charts

Gauges for system metrics with neon glow and animated progress

Real-time Charts

Real-time Charts

Live streaming charts with 100ms updates for monitoring dashboards

Installation

npm install cybercore-charts

Or via CDN:

<script src="https://unpkg.com/cybercore-charts@latest/dist/cybercore-charts.min.js"></script>

Quick Start

import { LineChart } from 'cybercore-charts';

const chart = new LineChart({
  width: 600,
  height: 400,
  data: [
    { x: 0, y: 10 },
    { x: 1, y: 25 },
    { x: 2, y: 15 },
    { x: 3, y: 30 },
    { x: 4, y: 22 },
  ],
  glow: true,
  color: '#00f0ff',
});

// Get SVG string
const svg = chart.render();

// Or append to DOM
document.getElementById('chart').appendChild(chart.toElement());

Chart Types

Line Chart

import { LineChart } from 'cybercore-charts';

const chart = new LineChart({
  width: 600,
  height: 400,
  data: [
    { x: 0, y: 10 },
    { x: 1, y: 25 },
    { x: 2, y: 15 },
  ],
  color: '#00f0ff',
  glow: true,
  curve: 'smooth',
  showPoints: true,
  showArea: false,
});

Bar Chart

import { BarChart } from 'cybercore-charts';

const chart = new BarChart({
  width: 600,
  height: 400,
  data: [
    { label: 'Alpha', value: 45 },
    { label: 'Beta', value: 72 },
    { label: 'Gamma', value: 58 },
  ],
  orientation: 'vertical',
  colors: ['#00f0ff', '#ff00aa', '#00ff88'],
  showValues: true,
});

Pie / Donut Chart

import { PieChart } from 'cybercore-charts';

const chart = new PieChart({
  width: 400,
  height: 400,
  data: [
    { label: 'Sector A', value: 35 },
    { label: 'Sector B', value: 25 },
    { label: 'Sector C', value: 40 },
  ],
  donut: true,
  innerRadius: 60,
  showLabels: true,
});

Area Chart

import { AreaChart } from 'cybercore-charts';

const chart = new AreaChart({
  width: 600,
  height: 400,
  data: [
    { x: 0, y: 10 },
    { x: 1, y: 25 },
    { x: 2, y: 15 },
  ],
  gradient: true,
  color: '#ff00aa',
});

Scatter Plot

import { ScatterChart } from 'cybercore-charts';

const chart = new ScatterChart({
  width: 600,
  height: 400,
  data: [
    { x: 10, y: 20, size: 5 },
    { x: 30, y: 45, size: 8 },
    { x: 50, y: 30, size: 6 },
  ],
  pulse: true,
});

Gauge

import { GaugeChart } from 'cybercore-charts';

const chart = new GaugeChart({
  width: 300,
  height: 200,
  value: 72,
  min: 0,
  max: 100,
  label: 'CPU',
  color: '#00ff88',
});

Radar Chart

import { RadarChart } from 'cybercore-charts';

const chart = new RadarChart({
  width: 400,
  height: 400,
  data: [
    { axis: 'Speed', value: 80 },
    { axis: 'Power', value: 65 },
    { axis: 'Range', value: 90 },
    { axis: 'Stealth', value: 45 },
    { axis: 'Armor', value: 70 },
  ],
});

Sparkline

import { Sparkline } from 'cybercore-charts';

const chart = new Sparkline({
  width: 120,
  height: 30,
  data: [5, 10, 8, 15, 12, 18, 14],
  color: '#f0ff00',
});

API Reference

Common Options

All chart types accept these base options:

interface ChartOptions {
  width: number; // Chart width in pixels
  height: number; // Chart height in pixels
  theme?: ThemeConfig; // Custom theme configuration
  animate?: boolean; // Enable animations (default: true)
  responsive?: boolean; // Enable responsive sizing
  padding?: {
    // Chart padding
    top: number;
    right: number;
    bottom: number;
    left: number;
  };
}

Methods

All chart instances provide:

// Render to SVG string
chart.render(): string;

// Create SVGElement
chart.toElement(): SVGElement;

// Update data
chart.update(newData): void;

// Destroy and cleanup
chart.destroy(): void;

Theming

Built-in Themes

import { LineChart } from 'cybercore-charts';

// Use preset theme
const chart = new LineChart({
  theme: 'cyber', // 'cyber' | 'neon' | 'matrix'
  // ...
});

Custom Theme

import { createTheme, LineChart } from 'cybercore-charts';

const myTheme = createTheme({
  colors: {
    primary: '#00f0ff',
    secondary: '#ff00aa',
    tertiary: '#f0ff00',
    success: '#00ff88',
    background: '#0a0a0f',
    surface: '#1a1a2f',
    grid: '#2a2a3f',
    text: '#ffffff',
    textMuted: '#8a8a9a',
  },
  effects: {
    glow: true,
    glowIntensity: 0.8,
    scanlines: false,
    animated: true,
  },
  fonts: {
    family: '"JetBrains Mono", monospace',
    size: 12,
  },
});

const chart = new LineChart({
  theme: myTheme,
  // ...
});

CSS Variables

Charts respect CSS custom properties when rendered in the DOM:

:root {
  --cyber-chart-primary: #00f0ff;
  --cyber-chart-background: #0a0a0f;
  --cyber-chart-grid: #2a2a3f;
  --cyber-chart-text: #ffffff;
  --cyber-chart-glow: 0 0 10px currentColor;
}

Browser Support

BrowserVersion
Chrome88+
Firefox85+
Safari14+
Edge88+

Requires SVG 1.1 and ES2020 support

Project Structure

cybercore-charts/
├── src/
│   ├── charts/           # Chart implementations
│   │   ├── line.ts
│   │   ├── bar.ts
│   │   ├── pie.ts
│   │   ├── area.ts
│   │   ├── scatter.ts
│   │   ├── gauge.ts
│   │   ├── radar.ts
│   │   └── sparkline.ts
│   ├── utils/            # Shared utilities
│   │   ├── scales.ts
│   │   ├── axes.ts
│   │   ├── colors.ts
│   │   └── animations.ts
│   ├── styles/           # Theme definitions
│   │   ├── theme.ts
│   │   └── variables.ts
│   ├── types.ts          # TypeScript definitions
│   └── index.ts          # Main entry
├── demo/                 # Demo site
└── tests/                # Test suites

Development

# Install dependencies
npm install

# Start dev server
npm run dev

# Build library
npm run build

# Run tests
npm run test

# Lint and format
npm run lint
npm run format

Contributing

See CONTRIBUTING.md for guidelines.

  • CYBERCORE CSS - Pure CSS/SCSS cyberpunk design framework. UI components, effects, and utilities with the same neon aesthetic.

License

MIT License - Use it, visualize it, share it.

⚡ Data visualization for Night City ⚡

🚀 Demo | 📖 Docs | 🐛 Issues

Keywords

charts

FAQs

Package last updated on 14 Jan 2026

Related posts