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-09-03
- Stars
- ★ 351
- Forks
- 27
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 资源文件 5
- 参考文档references/api-reference.md12.7 KB
- 参考文档references/data-formats.md7.3 KB
- 参考文档references/troubleshooting.md9.4 KB
- 参考文档references/workflows.md7.2 KB
- 脚本scripts/chartify_smoke_examples.py8.8 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
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).