Repository navigation
Phase 5c: 計算した列とグラフの種類(段・横棒・積み上げ棒・ヒストグラム・色分け散布図) - #8
Merged
Merged
Conversation
…ecisions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A hand-written tokenizer and recursive-descent parser (no eval, exec or ast). evaluate() and to_code() share one semantics; constant subtrees are folded so the generated code never does Python-float-only arithmetic. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ettings and generated code (Phase 5c, G7) Hidden settings for each type are neither validated nor used. Default settings still generate byte-identical code (golden tests). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hase 5c, G6) Each source's computed columns are appended after its file columns, after skipRows, and are written as a 「計算した列」 section only when present. Auto-render injects a copy of a source that gets computed columns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lumn to the UI (Phase 5c, G7) js/chart-types.js holds the per-type rules shared by every show/hide decision (same rules as settings.py). barh treats the vertical axis as the category axis in ticks and annotations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…5c, G6) Computed columns appear in every per-source column select as 「名前 [k](計算)」. js/computed-refs.js re-points column references when a computed column is deleted, changes source, or the file's column count changes on reload. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ile; word the source-change note When a reload removes file columns, references to them were shifted into the computed-column range and kept silently. Move them out of range so reconcileColumns resets them (with the band note). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… width Per-point colours make matplotlib stroke every edge separately; the 10,000 x 5 redraw took 1.21 s in the browser. Without edges and with the area grown by the 1.5 pt edge (same apparent size) it takes 0.94 s. x / + markers are line-only, so they keep their edges. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mputed columns Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ADME Also record the decision to draw colour-mapped scatter points without edges (REQUIREMENTS §2.5, AGENTS §13.4, design §6.6). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
要件定義書9章の Phase 5 のうち、5c(G6 式で新しい列を作る「計算した列」、G7 グラフの種類 第1弾)を実装しました。Phase 5 の4本のうち3本目です。
#7(5b を main に入れる PR)の上に積んで作り、#7 のマージ後に向き先を main に替えました。差分は 5c の分だけです。
変更内容
グラフの種類(G7)
js/chart-types.jsとsettings.pyの定数(BAR_LIKE_TYPES/NO_Y2_TYPES/NO_Y_ERROR_TYPES)に持ち、両方を揃えている。計算した列(G6)
[1] / max([1])、B - first(B)、rolling_mean([2], 5)。正規化・オフセット・移動平均の雛形ボタンあり)。[N]か Excel の列記号A=[0])、+ - * /、**(^も)、括弧、要素ごとの関数(abs sqrt exp log log10 sin cos tan)、集計(min max mean median std first last)、系列の処理(rolling_mean/diff/cumsum)。py/mplgui/expr.pyが自前で解釈する(eval/exec/compile/astを使わない)。誤りは「5文字目: …」のように位置付きの日本語のエラーにする。[5])として、系列の X・Y・エラーバー・帯・色分けの列に選べる。データ確認タブには出さない。comment_text()を通してコメントにだけ入る。そのほか
py/mplgui/expr.pyをpyscript.tomlの[files]に足した。CDN と CI の変更は無い。figure_summaryにdrawstyles/bars/colorbarを足した(既存のキーの値は変えていない)。計測値(
docs/PERFORMANCE.md「Phase 5c 後」)オーナーが決めたこと(2026-11-12。AGENTS.md §13.4、要件定義書 §2.5 に記録)
テスト
uv run pytest)uv run pytest tests/e2e、18 分 19 秒)test_codegen_compat.py)で確認したevaluateの値と、to_codeで書いた式を実行した値の一致、優先順位、上限(200 文字・入れ子 30)、有限でない定数の拒否注意点
🤖 Generated with Claude Code