|
| 1 | +library: chartjs |
| 2 | +language: javascript |
| 3 | +specification_id: roc-curve |
| 4 | +created: '2026-09-05T12:51:09Z' |
| 5 | +updated: '2026-09-05T13:04:05Z' |
| 6 | +generated_by: claude-sonnet |
| 7 | +workflow_run: 33967019081 |
| 8 | +issue: 2273 |
| 9 | +language_version: 22.23.2 |
| 10 | +library_version: 4.4.7 |
| 11 | +preview_url_light: https://storage.googleapis.com/anyplot-images/plots/roc-curve/javascript/chartjs/plot-light.png |
| 12 | +preview_url_dark: https://storage.googleapis.com/anyplot-images/plots/roc-curve/javascript/chartjs/plot-dark.png |
| 13 | +preview_html_light: https://storage.googleapis.com/anyplot-images/plots/roc-curve/javascript/chartjs/plot-light.html |
| 14 | +preview_html_dark: https://storage.googleapis.com/anyplot-images/plots/roc-curve/javascript/chartjs/plot-dark.html |
| 15 | +quality_score: 86 |
| 16 | +review: |
| 17 | + strengths: |
| 18 | + - 'Both Attempt-1 issues verifiably fixed: reference line now uses t.inkSoft (pixel-confirmed |
| 19 | + (74,74,68) light / (184,183,176) dark, both with strong contrast against background), |
| 20 | + and second series now uses canonical t.palette[1] (#C475FD) instead of skipping |
| 21 | + to palette[2]' |
| 22 | + - First series correctly uses brand green t.palette[0] (#009E73) |
| 23 | + - Distinct line styles (solid vs. dashed) give redundant encoding beyond color |
| 24 | + - AUC values embedded directly in the legend labels |
| 25 | + - Explicit font sizing throughout (title 26px, axis titles 18px, ticks 15px, legend |
| 26 | + 18px), no overlap |
| 27 | + - 'Square 2400x2400 canvas is an apt choice given the spec''s ''equal aspect ratio |
| 28 | + preferred'' note, with aspectRatio: 1 enforced' |
| 29 | + - Deterministic seeded LCG + Box-Muller data generation gives a reproducible, plausible |
| 30 | + medical-screening scenario (AUC 0.92 vs 0.79) |
| 31 | + weaknesses: |
| 32 | + - 'Design Excellence remains fairly conventional: a correct, clean, but fairly standard |
| 33 | + two-line ROC plot. A subtle visual-hierarchy touch (e.g., light fill under the |
| 34 | + leading curve, or an annotated optimal-threshold point) would lift DE-01/DE-03.' |
| 35 | + - 'Library Mastery is generic: nothing distinctively Chart.js (e.g., no custom tooltip |
| 36 | + callback formatting FPR/TPR/threshold, no plugin-based annotation for the optimal |
| 37 | + operating point). A small Chart.js-specific touch would raise LM-02.' |
| 38 | + image_description: |- |
| 39 | + Light render (plot-light.png): |
| 40 | + Background: Warm off-white, pixel-confirmed (250,248,241) ~ #FAF8F1, matches spec. |
| 41 | + Chrome: Bold dark title "roc-curve · javascript · chartjs · anyplot.ai" at top, clearly readable. Axis titles "False Positive Rate" / "True Positive Rate" in medium-dark ink, tick labels (0.0-1.0, step 0.2) in softer gray, subtle gridlines on both axes. Legend below plot with three entries, all readable. |
| 42 | + Data: Thick solid brand-green curve (Deep Ensemble, AUC=0.92, palette[0] #009E73) bows sharply toward top-left. Dashed lavender curve (Logistic Baseline, AUC=0.79, palette[1] #C475FD) bows more gradually. Diagonal "Random Classifier" reference line now renders in dark gray (inkSoft #4A4A44, pixel-confirmed (74,74,68)), clearly distinguishable from background. |
| 43 | + Legibility verdict: PASS |
| 44 | +
|
| 45 | + Dark render (plot-dark.png): |
| 46 | + Background: Warm near-black, pixel-confirmed (26,26,23) ~ #1A1A17, matches spec. |
| 47 | + Chrome: Title, axis titles, tick labels, and legend text all correctly flip to light-colored ink. No dark-on-dark text failures. |
| 48 | + Data: Green and lavender curves pixel-identical in hue to light render (data-color consistency confirmed). Reference line now renders in light gray (inkSoft #B8B7B0, pixel-confirmed (184,183,176)) against (26,26,23) background - strong, easily perceptible contrast. This fixes the Attempt-1 failure where the line used the undefined t.muted token and was effectively invisible (~(58,58,54) vs (26,26,23)). |
| 49 | + Legibility verdict: PASS |
| 50 | + criteria_checklist: |
| 51 | + visual_quality: |
| 52 | + score: 29 |
| 53 | + max: 30 |
| 54 | + items: |
| 55 | + - id: VQ-01 |
| 56 | + name: Text Legibility |
| 57 | + score: 7 |
| 58 | + max: 8 |
| 59 | + passed: true |
| 60 | + comment: Explicit font sizes throughout, well-proportioned, readable in both |
| 61 | + themes |
| 62 | + - id: VQ-02 |
| 63 | + name: No Overlap |
| 64 | + score: 6 |
| 65 | + max: 6 |
| 66 | + passed: true |
| 67 | + comment: No overlap in either render |
| 68 | + - id: VQ-03 |
| 69 | + name: Element Visibility |
| 70 | + score: 6 |
| 71 | + max: 6 |
| 72 | + passed: true |
| 73 | + comment: Reference line now renders at t.inkSoft with strong contrast in both |
| 74 | + themes (fixed from Attempt 1) |
| 75 | + - id: VQ-04 |
| 76 | + name: Color Accessibility |
| 77 | + score: 2 |
| 78 | + max: 2 |
| 79 | + passed: true |
| 80 | + comment: Green vs lavender + solid/dashed gives redundant encoding |
| 81 | + - id: VQ-05 |
| 82 | + name: Layout & Canvas |
| 83 | + score: 4 |
| 84 | + max: 4 |
| 85 | + passed: true |
| 86 | + comment: Well-balanced square canvas, good margins |
| 87 | + - id: VQ-06 |
| 88 | + name: Axis Labels & Title |
| 89 | + score: 2 |
| 90 | + max: 2 |
| 91 | + passed: true |
| 92 | + comment: Descriptive axis titles |
| 93 | + - id: VQ-07 |
| 94 | + name: Palette Compliance |
| 95 | + score: 2 |
| 96 | + max: 2 |
| 97 | + passed: true |
| 98 | + comment: 'First series #009E73, second series now correctly palette[1] (#C475FD); |
| 99 | + chrome theme-correct in both renders' |
| 100 | + design_excellence: |
| 101 | + score: 13 |
| 102 | + max: 20 |
| 103 | + items: |
| 104 | + - id: DE-01 |
| 105 | + name: Aesthetic Sophistication |
| 106 | + score: 5 |
| 107 | + max: 8 |
| 108 | + passed: false |
| 109 | + comment: AUC-in-legend + distinct linestyles show design thought, still fairly |
| 110 | + conventional |
| 111 | + - id: DE-02 |
| 112 | + name: Visual Refinement |
| 113 | + score: 4 |
| 114 | + max: 6 |
| 115 | + passed: false |
| 116 | + comment: Subtle grid/whitespace; the previously-broken reference line now |
| 117 | + renders correctly as an unobtrusive muted guide |
| 118 | + - id: DE-03 |
| 119 | + name: Data Storytelling |
| 120 | + score: 4 |
| 121 | + max: 6 |
| 122 | + passed: true |
| 123 | + comment: Solid/thick vs dashed/thin creates clear visual hierarchy toward |
| 124 | + the better model |
| 125 | + spec_compliance: |
| 126 | + score: 15 |
| 127 | + max: 15 |
| 128 | + items: |
| 129 | + - id: SC-01 |
| 130 | + name: Plot Type |
| 131 | + score: 5 |
| 132 | + max: 5 |
| 133 | + passed: true |
| 134 | + comment: Correct ROC-curve line chart |
| 135 | + - id: SC-02 |
| 136 | + name: Required Features |
| 137 | + score: 4 |
| 138 | + max: 4 |
| 139 | + passed: true |
| 140 | + comment: Diagonal y=x reference line present and now reliably visible in both |
| 141 | + themes |
| 142 | + - id: SC-03 |
| 143 | + name: Data Mapping |
| 144 | + score: 3 |
| 145 | + max: 3 |
| 146 | + passed: true |
| 147 | + comment: FPR on x, TPR on y, full 0-1 range |
| 148 | + - id: SC-04 |
| 149 | + name: Title & Legend |
| 150 | + score: 3 |
| 151 | + max: 3 |
| 152 | + passed: true |
| 153 | + comment: Title format exact; legend labels correct with AUC values |
| 154 | + data_quality: |
| 155 | + score: 14 |
| 156 | + max: 15 |
| 157 | + items: |
| 158 | + - id: DQ-01 |
| 159 | + name: Feature Coverage |
| 160 | + score: 5 |
| 161 | + max: 6 |
| 162 | + passed: true |
| 163 | + comment: Two classifiers with clearly different separability |
| 164 | + - id: DQ-02 |
| 165 | + name: Realistic Context |
| 166 | + score: 5 |
| 167 | + max: 5 |
| 168 | + passed: true |
| 169 | + comment: Neutral medical-screening scenario |
| 170 | + - id: DQ-03 |
| 171 | + name: Appropriate Scale |
| 172 | + score: 4 |
| 173 | + max: 4 |
| 174 | + passed: true |
| 175 | + comment: Plausible score distributions and resulting AUC values |
| 176 | + code_quality: |
| 177 | + score: 9 |
| 178 | + max: 10 |
| 179 | + items: |
| 180 | + - id: CQ-01 |
| 181 | + name: KISS Structure |
| 182 | + score: 2 |
| 183 | + max: 3 |
| 184 | + passed: true |
| 185 | + comment: A few small helper functions (LCG, Box-Muller, ROC/AUC), reasonably |
| 186 | + necessary for JS |
| 187 | + - id: CQ-02 |
| 188 | + name: Reproducibility |
| 189 | + score: 2 |
| 190 | + max: 2 |
| 191 | + passed: true |
| 192 | + comment: Deterministic seeded LCG (seed=42) |
| 193 | + - id: CQ-03 |
| 194 | + name: Clean Imports |
| 195 | + score: 2 |
| 196 | + max: 2 |
| 197 | + passed: true |
| 198 | + comment: No unused imports |
| 199 | + - id: CQ-04 |
| 200 | + name: Code Elegance |
| 201 | + score: 2 |
| 202 | + max: 2 |
| 203 | + passed: true |
| 204 | + comment: No fake functionality, appropriately complex |
| 205 | + - id: CQ-05 |
| 206 | + name: Output & API |
| 207 | + score: 1 |
| 208 | + max: 1 |
| 209 | + passed: true |
| 210 | + comment: 'Correct mount-node contract, animation: false set' |
| 211 | + library_mastery: |
| 212 | + score: 6 |
| 213 | + max: 10 |
| 214 | + items: |
| 215 | + - id: LM-01 |
| 216 | + name: Idiomatic Usage |
| 217 | + score: 4 |
| 218 | + max: 5 |
| 219 | + passed: true |
| 220 | + comment: Idiomatic Chart.js line-chart config with typed linear scales |
| 221 | + - id: LM-02 |
| 222 | + name: Distinctive Features |
| 223 | + score: 2 |
| 224 | + max: 5 |
| 225 | + passed: false |
| 226 | + comment: Mostly generic line-chart usage; no Chart.js-specific feature leveraged |
| 227 | + verdict: APPROVED |
| 228 | +impl_tags: |
| 229 | + dependencies: [] |
| 230 | + techniques: [] |
| 231 | + patterns: |
| 232 | + - data-generation |
| 233 | + dataprep: [] |
| 234 | + styling: [] |
0 commit comments