Logo Data Visualization

Data Visualization

Cộng đồng
Tibsfox
data-visualization

Grammar of graphics, chart type selection, color theory, interactive visualization, dashboards, and the principles of honest, effective data display. Covers Tufte's data-ink ratio, Bertin's visual variables, perceptual principles, accessibility, small multiples, annotation, and the full workflow from exploratory plots to publication-quality graphics. Use when creating charts, designing dashboards, critiquing visualizations, or choosing how to display data.

Tổng quan

Nhà phát hànhTibsfox
Kho mãgsd-skill-creator
Tên kỹ năngdata-visualization
Sao
70
Bản fork
9
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được Tibsfox công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Data Visualization trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/data-science/data-visualization
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Tibsfox/gsd-skill-creator.git /tmp/gsd-skill-creator
mkdir -p .claude/skills
cp -r /tmp/gsd-skill-creator/examples/skills/data-science/data-visualization .claude/skills/data-visualization
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Data Visualization trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Data Visualization ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Data Visualization với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Data Visualization

Data visualization is the translation of data into visual form for the purpose of communication, exploration, or analysis. A good visualization reveals what the data has to say; a bad one obscures or distorts it. This skill covers the principles, techniques, and design decisions involved in creating honest, effective data displays, drawing primarily on Edward Tufte's principles, Leland Wilkinson's Grammar of Graphics, and Jacques Bertin's visual semiology.

Agent affinity: tufte (design principles, critique), nightingale (routing visualization tasks), cairo (pedagogy of visual literacy)

Concept IDs: data-chart-types, data-visual-design, data-misleading-graphs, data-data-storytelling

Core Principles

Tufte's Principles

Edward Tufte's work established the foundational principles of honest data display:

  1. Data-ink ratio. Maximize the proportion of ink devoted to data. Every element that does not convey data is potential chartjunk -- decorative gridlines, 3D effects, gradient fills, clip art.

  2. Chartjunk. Visual elements that do not represent data: moiré patterns, heavy gridlines, unnecessary ornamentation, 3D perspective on 2D data. Remove it.

  3. Lie factor. The ratio of the visual effect to the numerical effect. A bar chart where a 2x increase in data is represented by a 4x increase in area has a lie factor of 2. Lie factor should be between 0.95 and 1.05.

  4. Small multiples. Repeating the same chart structure across panels to show variation across a categorical variable. More effective than animation or overlapping colors for showing change.

  5. Data density. The amount of data per unit area of the graphic. High data density is efficient -- sparklines, for example, embed a time series in the space of a word.

  6. Micro/macro readings. A good visualization works at both levels: the overall pattern is visible at a glance (macro), and individual data points can be read precisely (micro).

Bertin's Visual Variables

Jacques Bertin (1967) identified the fundamental visual channels available for encoding data:

VariableData typeEffectivenessNotes
PositionQuantitativeHighestMost accurately perceived; always the first choice for the most important variable
LengthQuantitativeVery highBar charts; humans compare lengths well
Angle/SlopeQuantitativeModerateScatterplot slopes; pie chart angles are poorly perceived
AreaQuantitativeLow-moderateBubble charts; humans underestimate area differences
Color saturationQuantitative (ordered)Low-moderateSequential palettes; limited dynamic range
Color hueCategoricalHigh for categoriesQualitative palettes; maximum ~8 distinguishable hues
ShapeCategoricalModeratePoint markers; maximum ~6 distinguishable shapes
TextureCategoricalLowRarely used in modern visualization

Design implication: Map the most important variable to position, the second most important to length or color, and use less effective channels for less important variables. Never use area or angle for the primary quantitative comparison.

Perceptual Principles

  • Weber's law: We perceive relative differences, not absolute ones. A 10% change is equally noticeable whether the baseline is 100 or 1000.
  • Pre-attentive processing: Color, orientation, size, and motion are detected before conscious attention. Use these for the feature you want the viewer to notice immediately.
  • Gestalt principles: Proximity, similarity, enclosure, connection, and continuity govern how we group visual elements. Leverage these for layout.
  • Change blindness: Small changes in a complex display go unnoticed. If comparison is the goal, place the things being compared adjacent or overlapping.

Chart Selection Guide

Choosing by Data Relationship

RelationshipChart typeExample
Distribution (1 variable)Histogram, density plot, box plot, violin plotDistribution of household incomes
Comparison (categories)Bar chart (horizontal for many categories), dot plotRevenue by department
Trend (time series)Line chartMonthly temperature over 10 years
Correlation (2 quantitative)Scatter plotHeight vs. weight
Part-to-wholeStacked bar, treemap, waffle chartMarket share by company
RankingSorted bar chart, bump chartTop 20 countries by GDP
GeospatialChoropleth, dot map, cartogramCOVID cases by county
Flow/NetworkSankey, alluvial, node-link diagramCustomer journey through website
Composition over timeStacked area, streamgraphEnergy sources as share of total over decades

Charts to Avoid

ChartProblemBetter alternative
Pie chartAngle perception is poor; cannot compare non-adjacent slicesBar chart or dot plot
3D bar chartPerspective distorts lengths; occlusion hides data2D bar chart
Dual-axis chartArbitrary scaling creates false correlationsTwo separate panels with aligned x-axes
Radar/spider chartArea is meaningless; axis order affects shapeParallel coordinates or small multiples of bar charts
Stacked 100% area (many categories)Inner series are impossible to readSmall multiples of line charts

Pie charts are acceptable only when: (a) showing parts of a whole, (b) with 2-3 slices, (c) where the takeaway is "roughly half" or "roughly a quarter." For anything more precise, use a bar chart.

Color

Color Palette Types

TypeUseExample
SequentialOrdered data (low to high)Light yellow to dark blue for temperature
DivergingData with a meaningful midpointRed-white-blue for above/below average
QualitativeCategorical data (no order)Distinct hues for product lines

Color Rules

  1. Never use rainbow. Rainbow colormaps (jet) have perceptual non-uniformity: yellow and cyan appear brighter, creating false features. Use perceptually uniform palettes (viridis, cividis, inferno).
  2. Design for color blindness. ~8% of males have color vision deficiency. Avoid red-green as the only distinguisher. Use blue-orange or include shape/pattern redundancy.
  3. Limit hue count. Maximum 6-8 qualitative colors. Beyond that, use small multiples or interactive filtering.
  4. Gray for context. When highlighting a subset, gray out everything else. The eye is drawn to color against gray.
  5. Consistent color mapping. If "revenue" is blue in one chart, it must be blue in every chart in the same dashboard or report.

Accessibility

  • Test with a color-blindness simulator (Coblis, Sim Daltonism).
  • Provide text labels or patterns in addition to color.
  • Ensure sufficient contrast (WCAG 2.1 AA: 4.5:1 for text, 3:1 for large text and UI components).
  • Use descriptive alt text for all charts in web/document contexts.

Grammar of Graphics

Leland Wilkinson's Grammar of Graphics (1999), implemented in Hadley Wickham's ggplot2 (2005), decomposes every visualization into layered components:

ComponentWhat it specifiesExample
DataThe datasetA table of countries, years, and GDP
Aesthetics (aes)Mappings from variables to visual channelsx = year, y = GDP, color = continent
Geometry (geom)The visual mark typePoints (scatter), lines, bars, areas
Statistics (stat)Transformations computed on the dataMean, count, regression line, density
ScalesHow data values map to aesthetic valuesLinear, log, discrete color palette
CoordinatesThe coordinate systemCartesian, polar, geographic projection
FacetsSubdivision into small multiplesOne panel per continent
ThemeNon-data visual stylingFont size, background color, grid visibility

This grammar is powerful because it is composable: any data can be mapped to any aesthetic, rendered with any geometry, in any coordinate system, faceted by any variable. Understanding the grammar means you can construct any chart type from first principles rather than memorizing a chart catalog.

Interactive Visualization

When to Make It Interactive

  • Exploration: The analyst needs to zoom, filter, hover, and drill down. Interactive tools (Plotly, Bokeh, D3, Observable) are essential.
  • Dashboards: Stakeholders need to slice data by different dimensions. Filtering and linked views are valuable.
  • Presentation: Usually, static is better. Animation and interaction distract from the narrative. The author should curate the view.

Interaction Techniques

TechniquePurposeExample
Tooltip (hover)Show details for a data pointHover over a dot to see country name and exact GDP
Zoom + panNavigate dense displaysMap exploration
FilterShow a subsetDropdown to select a specific year or category
Brush + linkSelect in one view, highlight in anotherBrush a scatterplot, see corresponding rows highlighted in a table
Drill downNavigate hierarchical dataClick a country to see regional breakdown

Dashboard Design

  1. One question per dashboard. A dashboard that tries to answer everything answers nothing.
  2. Key metric at top left. The most important number gets prime visual real estate.
  3. Consistent time axis. All time series on a dashboard should share the same x-axis range.
  4. Limit to 5-7 visual elements. Cognitive load research (Miller, 1956) suggests 7 +/- 2 chunks of information is the working memory limit.
  5. Provide context. Comparison baselines, targets, historical averages. A number without context is meaningless.

Annotation and Storytelling

The Annotation Layer

The most effective data visualizations are annotated. Annotations connect the visual to the narrative:

  • Title: States the finding, not the chart type. "Renewable energy overtook coal in 2019" beats "Energy Sources Over Time."
  • Subtitle: Adds context or methodology note.
  • Axis labels: Always labeled with units. Never rely on the reader to guess.
  • Direct labels: Label data points directly instead of using a legend when feasible. Reduces eye travel.
  • Callouts: Arrow + text pointing to the specific feature you want the reader to notice.
  • Source and footnotes: Always cite the data source. Note any exclusions or transformations.

The Data Story Arc

A data story follows a narrative structure:

  1. Context: What is the situation? What should the reader know before seeing the data?
  2. Finding: What does the data show? This is the chart, annotated to highlight the key pattern.
  3. Implication: What does this mean? Why should the reader care?
  4. Recommendation: What action follows? (Optional, depends on audience.)

This arc is Alberto Cairo's "The Truthful Art" framework applied to presentation.

Common Mistakes

MistakeWhy it failsFix
Truncated y-axis on bar chartExaggerates differences; lie factor > 1Start bar charts at zero
Using area to represent linear quantitiesHumans underestimate area differencesUse length (bar chart) instead
Rainbow colormapPerceptual non-uniformity creates false featuresUse viridis, cividis, or sequential palettes
Too many colorsIndistinguishable hues; cognitive overloadMaximum 6-8 hues; use small multiples
Missing axis labelsReader cannot interpret the chartAlways label axes with units
Chart without titleReader must figure out what they are looking atState the finding in the title
3D effects on 2D dataPerspective distortion, occlusionUse flat 2D charts
Ignoring color blindness~8% of male viewers cannot distinguish red-greenTest with color-blindness simulator; use blue-orange

Cross-References

  • tufte agent: Design critique and the principles of honest data display. Primary agent for visualization quality review.
  • nightingale agent: Department chair who routes visualization requests and synthesizes visual outputs.
  • cairo agent: Data literacy pedagogy -- teaching others to read and create effective visualizations.
  • benjamin agent: Ethical review of visualizations for bias, misleading framing, and equity implications.
  • data-wrangling skill: Data preparation that determines what variables are available for visualization.
  • ethics-governance skill: Responsible visualization practices -- not using charts to mislead.

References

  • Tufte, E. R. (2001). The Visual Display of Quantitative Information. 2nd edition. Graphics Press.
  • Tufte, E. R. (1990). Envisioning Information. Graphics Press.
  • Bertin, J. (1967/2010). Semiology of Graphics. ESRI Press (English translation).
  • Wilkinson, L. (2005). The Grammar of Graphics. 2nd edition. Springer.
  • Cairo, A. (2016). The Truthful Art. New Riders.
  • Cairo, A. (2019). How Charts Lie. W. W. Norton.
  • Wickham, H. (2010). "A Layered Grammar of Graphics." Journal of Computational and Graphical Statistics, 19(1), 3-28.
  • Munzner, T. (2014). Visualization Analysis and Design. CRC Press.

Câu hỏi thường gặp

Kỹ năng AI Data Visualization làm được gì?

Grammar of graphics, chart type selection, color theory, interactive visualization, dashboards, and the principles of honest, effective data display. Covers Tufte's data-ink ratio, Bertin's visual variables, perceptual principles, accessibility, small multiples, annotation, and the full workflow from exploratory plots to publication-quality graphics. Use when creating charts, designing dashboards, critiquing visualizations, or choosing how to display data.

Vì sao nên dùng Data Visualization trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Data Visualization là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Data Visualization trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/data-science/data-visualization. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Data Visualization?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Data Visualization với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Data Visualization với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Data Visualization có miễn phí không?

Kỹ năng này được Tibsfox phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇