← 返回
未分类

ASCII转换

Generate ASCII art charts and visualizations. Use when users request ASCII charts, text art, Gantt charts, flowcharts, data visualizations, or use phrases like "generate ASCII art", "create text chart", or "make ASCII visualization".
Generate ASCII art charts and visualizations. Use when users request ASCII charts, text art, Gantt charts, flowcharts, data visualizations, or use phrases like "generate ASCII art", "create text chart", or "make ASCII visualization".
user_c731f6b6
未分类 community v1.0.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 34
下载
💾 0
安装
1
版本
#latest

概述

ASCII Art Generator

Generate ASCII art charts and visualizations with customizable styles and colors.

Supported Chart Types

TypeTrigger Keywords
------------------------
Bar Chartbar chart, histogram, column chart
Line Chartline chart, trend, time series
Pie Chartpie chart, distribution, percentage
Flowchartflowchart, process, workflow
Gantt Chartgantt, timeline, schedule
Tabletable, grid, data table
Treetree, hierarchy, org chart
Box Plotbox plot, statistical, distribution
Sparklinesparkline, mini chart, inline

Style Presets

PresetCharacteristics
-------------------------
minimalSingle-line borders, simple connectors
classicDouble-line borders, box-drawing characters
modernRounded corners, Unicode symbols
retroASCII-only, vintage style
elegantLight/shadow effects, decorative elements

Color Mapping (Terminal)

ColorForegroundBackgroundHex
------------------------------------
Red▓▒░▓▒░#FF6B6B
Green▓▒░▓▒░#51CF66
Yellow▓▒░▓▒░#FCC419
Blue▓▒░▓▒░#339AF0
Magenta▓▒░▓▒░#CC5DE8
Cyan▓▒░▓▒░#22B8CF
White▓▒░▓▒░#FFFFFF
Gray▓▒░▓▒░#868E96

Note: Colors use block characters for density visualization (░ ▒ ▓ █).

Chart Generation Examples

Bar Chart

Data: [Alice: 85, Bob: 92, Carol: 78, Dave: 95]
Style: classic
Color: blue

┌─────────────────────────────────────┐
│        Score Distribution           │
├──────┬──────────────────────────────┤
│ Alice    ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░ 85 │
│ Bob      ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░ 92 │
│ Carol    ▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░ 78 │
│ Dave     ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░ 95 │
└──────┴──────────────────────────────┘

Flowchart

Style: modern
Direction: top-down

    ┌─────────┐
    │  START  │
    └────┬────┘
         │
         ▼
    ┌─────────┐     YES
    │  Check   ├────────┐
    │  Input   │        │
    └────┬────┘        ▼
         │ NO      ┌─────────┐
         ▼         │  ERROR  │
    ┌─────────┐     └─────────┘
    │ Process │
    └────┬────┘
         │
         ▼
    ┌─────────┐
    │   END   │
    └─────────┘

Gantt Chart

Tasks: [Design: 3d, Dev: 5d, Test: 2d]
Style: minimal

Week:    1   2   3   4   5   6   7
        ───────────────────────────
Design  ████████
Dev           ████████████████
Test                          ████

Pie Chart (Text-based)

Segments: [A: 40%, B: 35%, C: 25%]
Style: classic

       ╭─────────────╮
      ╱   ╱     ╲    ╲
    ╱   ╱   B    ╲    ╲
   │   │  ▓▓▓▓▓   │    │
   │ A │ ▓▓▓▓▓▓▓▓ │ C  │
   │   │ ▓▓▓▓▓▓▓▓▓ │    │
    ╲   ╲   ███   ╱    ╱
      ╲   ╲  ██  ╱    ╱
       ╰─────────────╯
    A = 40%    B = 35%    C = 25%

Configuration Options

width: 80              # Chart width in characters
height: auto           # Auto or fixed height
padding: 1             # Inner padding
title: "Chart Title"   # Optional chart title
labels: true           # Show/hide axis labels
grid: true             # Show/hide grid lines
legend: true           # Show/hide legend
color_scheme: default  # Color scheme preset
border: true           # Show/hide border

ASCII Character Sets

Box Drawing

Single:     | - + | ┌ ┐ └ ┘ ├ ┤ ┬ ┴ ┼
Double:     ║ ═ ║ ╔ ╗ ╚ ╝ ╠ ╣ ╦ ╩ ╬
Mixed:      ┎ ┒ ┖ ┚ ┞ ┦ ┷ ┸ ┺ ┾

Block Characters (for color density)

Light:      ' . : ! * - ═ ╔
Medium:     + o O # @ &
Heavy:      ▓ █

Connectors

Arrows:     > < ^ v │ ─ └ ┘ ├ ┤
Curved:     ) ( [ ] { }

Output Format

Always output ASCII art in code blocks for proper display:

[ASCII chart content]

Include metadata as comment if needed:

# Title: Score Distribution
# Style: classic
# Date: 2025-01-19
┌─────────────────────────────────────┐
│        Score Distribution           │
...

Best Practices

  1. Choose appropriate width: Match content to expected display
  2. Use consistent spacing: Align elements for readability
  3. Select style to match context: Retro for CLI, Modern for web
  4. Limit color usage: 2-3 colors maximum for clarity
  5. Add labels: Always include axis labels and legends
  6. Consider density: Use block characters for visual weight

Edge Cases

  • Empty data: Show placeholder with "No data" message
  • Single value: Adapt to show without comparison
  • Very large values: Normalize or use log scale
  • Long labels: Truncate or wrap intelligently
  • Negative values: Handle appropriately per chart type

版本历史

共 1 个版本

  • v1.0.0 Initial release 当前
    2026-06-02 19:09 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Stock Analysis

udiedrichsen
利用Yahoo Finance数据深度分析股票和加密货币。支持投资组合管理、关注列表与提醒、股息分析、八维度股票评分、热门趋势扫描(热点扫描器)及谣言/早期信号检测。适用于股票分析、投资组合追踪、财报反应、加密货币监控、热门股票发现及在主流
★ 281 📥 58,136
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 298 📥 142,713
data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 276 📥 101,385