basic-charting
Build core Chartify charts from tidy pandas DataFrames, choose axis types and plot methods, inspect plotted data, and save or show chart outputs.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- basic-charting
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Build core Chartify charts from tidy pandas DataFrames, choose axis types and plot methods, inspect plotted data, and save or show chart outputs.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md12.7 KB
- 参考文档references/data-formats.md7.3 KB
- 参考文档references/troubleshooting.md9.4 KB
- 参考文档references/workflows.md7.2 KB
03 SKILL.md 正文
Basic Charting
Use this sub-skill when a task asks for core Chartify chart construction from pandas DataFrames: line, scatter, text, area, bar, stacked bar, boxplot, interval, lollipop, parallel, heatmap, density, radar, or second-y-axis charts. This sub-skill owns Chart and RadarChart creation, axis-type selection, plot-method routing, data-shape preparation, labels/legends enough for basic chart workflows, Chart.data inspection, and show/save output calls.
Route palette creation, YAML options/style configuration, callout-heavy annotation, and advanced axis formatting to sibling styling-annotations. Keep maintainer docs, package release, and documentation-build workflows out of this sub-skill.
Read/Run These Files
- Read references/api-reference.md when choosing
Chart(...)orRadarChart(...)arguments, selecting a plot method, or checking method signatures and return objects. - Read references/data-formats.md when converting pandas results into Chartify's tidy input format or debugging grouped/pivoted data.
- Read references/workflows.md when you need compact, self-contained chart construction patterns for common chart families, save/show, data inspection, radar charts, or second-y-axis charts.
- Read references/troubleshooting.md when a plot method is unavailable, dtypes do not match axis types, grouped categorical data orders incorrectly, second-y-axis plotting fails, or PNG/SVG export needs a browser driver.
- Run scripts/chartify_smoke_examples.py to exercise safe tiny examples without notebook display or network access; use
--list,--case, and optional--save-html DIR.
Fast Routing Rules
- Start with
import chartifyand a pandasDataFramewith named columns. - Choose axis types before choosing the plot method:
- numeric/datetime x with numeric y:
Chart(x_axis_type="linear"|"log"|"datetime", y_axis_type="linear"|"log")andline,scatter,text, orarea. - categorical plus numeric: make the categorical axis explicit with
x_axis_type="categorical"for vertical charts ory_axis_type="categorical"for horizontal charts, then use mixed-type methods such asbar,bar_stacked,boxplot,interval,lollipop,parallel,scatter, ortext. - categorical/categorical heatmap: set both axis types to
"categorical". - density charts: set one or both axes to
"density"forhistogram,kde, orhexbin. - radar: use
RadarChart(...), notChart(...).
- numeric/datetime x with numeric y:
- Convert groupby/pivot outputs to tidy DataFrames before plotting: use
.reset_index()aftergroupbyandpd.meltorstack().reset_index(...)for wide tables. - Add basic labels with
set_title,set_subtitle,set_source_label, and legend placement withset_legend_locationafter plotting grouped/color data. - Inspect
ch.datafor a list of plotted BokehColumnDataSource.datadictionaries before saving or returning a chart object.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.