Socket
Book a DemoInstallSign in
Socket

zengeld-canvas

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zengeld-canvas

High-performance SVG chart rendering engine for financial data visualization

pipPyPI
Version
0.1.9
Maintainers
1

zengeld-canvas

High-performance SVG chart rendering engine for financial data visualization

PyPI Python

Python bindings for the zengeld-canvas chart rendering engine. Built in Rust with zero runtime dependencies.

Features

  • 96 Drawing Primitives - Fibonacci, Gann, Pitchforks, Elliott Waves, Patterns, Channels, and more
  • 45+ Indicator Presets - Pre-configured rendering styles for SMA, RSI, MACD, Bollinger, Ichimoku, etc.
  • 12 Series Types - Candlestick, HeikinAshi, Line, Area, Histogram, Baseline, and more
  • 14 Multi-Chart Layouts - Grid, split, and custom layouts for dashboards
  • High Performance - Native Rust speed via PyO3
  • Theme System - 4 built-in presets (dark, light, high_contrast, cyberpunk) + runtime customization

Installation

pip install zengeld-canvas

Quick Start

from zengeld_canvas import Chart, Bar, UITheme, RuntimeTheme

# Build chart
chart = Chart(800, 600)
chart.bars(bars)
chart.candlesticks()
chart.sma(20, "#2196F3")
svg = chart.render_svg()

# With theme preset
theme = UITheme.cyberpunk()
chart = Chart(800, 600)
chart.bars(bars)
chart.candlesticks()
chart.background(theme.background)
chart.colors(theme.candle_up_body, theme.candle_down_body)
svg = chart.render_svg()

# Runtime theme (modifiable)
runtime = RuntimeTheme.from_preset("dark")
runtime.background = "#1a0a2e"  # Custom background
runtime.candle_up_body = "#00ffff"  # Cyan

Examples


Light Theme

High Contrast Theme

Cyberpunk Theme

Runtime Custom Theme

Theme System

Built-in presets: dark(), light(), high_contrast(), cyberpunk()

from zengeld_canvas import UITheme, RuntimeTheme

# Static themes
dark = UITheme.dark()
light = UITheme.light()

# Runtime themes (modifiable, JSON support)
runtime = RuntimeTheme.from_preset("dark")
runtime.background = "#1a0a2e"
json_str = runtime.to_json()

# Available presets
presets = RuntimeTheme.presets()  # ["dark", "light", "high_contrast", "cyberpunk"]

Drawing Primitives

CategoryCountExamples
Fibonacci11Retracement, Fan, Arcs, Circles, Channel, Spiral
Lines9TrendLine, HorizontalLine, Ray, ExtendedLine
Annotations11Text, Callout, PriceLabel, Flag, Table
Shapes10Rectangle, Circle, Ellipse, Triangle, Path
Elliott Waves5Impulse, Correction, Triangle, Combo
Patterns6XABCD, HeadShoulders, Cypher, ThreeDrives
Gann4Fan, Box, Square, SquareFixed
And more...40Channels, Pitchforks, Cycles, Projections

License

MIT OR Apache-2.0

Support the Project

If you find this library useful, consider supporting development:

CurrencyNetworkAddress
USDTTRC20TNxMKsvVLYViQ5X5sgCYmkzH4qjhhh5U7X
USDCArbitrum0xEF3B94Fe845E21371b4C4C5F2032E1f23A13Aa6e
ETHEthereum0xEF3B94Fe845E21371b4C4C5F2032E1f23A13Aa6e
BTCBitcoinbc1qjgzthxja8umt5tvrp5tfcf9zeepmhn0f6mnt40
SOLSolanaDZJjmH8Cs5wEafz5Ua86wBBkurSA4xdWXa3LWnBUR94c

zengeld

Keywords

charts

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts