docs.rs failed to build zengeld-canvas-0.1.9
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
zengeld-canvas-0.1.8
zengeld-canvas
High-performance SVG chart rendering engine for financial data visualization
A platform-agnostic rendering library for financial charts. 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
- Platform Agnostic -
RenderContexttrait for any rendering backend - Zero Dependencies - Only serde for serialization
- Theme System - 4 built-in presets (dark, light, high_contrast, cyberpunk) + runtime customization
Installation
Quick Start
use ;
// Create chart with builder API
let svg = new
.bars
.candlesticks
.sma
.rsi
.render_svg;
// With theme preset
let theme = cyberpunk;
let svg = new
.bars
.candlesticks
.background
.colors
.render_svg;
Examples
Theme System
Built-in presets: dark, light, high_contrast, cyberpunk
use ;
// Static themes (compile-time)
let dark = dark;
let light = light;
// Runtime themes (modifiable, JSON support)
let mut theme = from_preset.unwrap;
theme.colors.chart.background = "#1a0a2e".to_string;
let json = theme.to_json;
Drawing Primitives
| Category | Count | Examples |
|---|---|---|
| Fibonacci | 11 | Retracement, Fan, Arcs, Circles, Channel, Spiral |
| Lines | 9 | TrendLine, HorizontalLine, Ray, ExtendedLine |
| Annotations | 11 | Text, Callout, PriceLabel, Flag, Table |
| Shapes | 10 | Rectangle, Circle, Ellipse, Triangle, Path |
| Elliott Waves | 5 | Impulse, Correction, Triangle, Combo |
| Patterns | 6 | XABCD, HeadShoulders, Cypher, ThreeDrives |
| Gann | 4 | Fan, Box, Square, SquareFixed |
| Channels | 4 | Parallel, Regression, Disjoint, FlatTopBottom |
| Pitchforks | 4 | Standard, Schiff, Modified, Inside |
| And more... | 32 | Cycles, Projections, Volume, Arrows, Events |
License
MIT OR Apache-2.0
Support the Project
If you find this library useful, consider supporting development:
| Currency | Network | Address |
|---|---|---|
| USDT | TRC20 | TNxMKsvVLYViQ5X5sgCYmkzH4qjhhh5U7X |
| USDC | Arbitrum | 0xEF3B94Fe845E21371b4C4C5F2032E1f23A13Aa6e |
| ETH | Ethereum | 0xEF3B94Fe845E21371b4C4C5F2032E1f23A13Aa6e |
| BTC | Bitcoin | bc1qjgzthxja8umt5tvrp5tfcf9zeepmhn0f6mnt40 |
| SOL | Solana | DZJjmH8Cs5wEafz5Ua86wBBkurSA4xdWXa3LWnBUR94c |