Implement Custom D3 Question

Create custom D3 questions with interactive SVG/HTML visualizations and state management.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/asmith7013/coachingPlatform --skill implement-custom-d3-question
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Implement Custom D3 Question
Source: https://github.com/asmith7013/coachingPlatform/tree/main/.claude/skills/implement-custom-d3-question
Command: npx skills add https://github.com/asmith7013/coachingPlatform --skill implement-custom-d3-question

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a general-purpose pattern for building truly custom D3 questions that don't fit standard templates.

Core Features & Use Cases

  • Custom visuals: Fully bespoke SVG/HTML interactions.
  • Flexible state: Tailored state for any interaction.
  • Pattern extensions: Works with existing components when possible.

Quick Start

Create a completely custom D3-based question, using the standard components where feasible.

Frequently Asked Questions about Implement Custom D3 Question

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create custom D3 visualizations for interactive assessments?

Build custom D3 questions by defining state management via createDefaultState, handling interactivity with setInteractivity, and rendering with renderAll. This approach lets you design bespoke SVG/HTML interactions—draggable points, custom diagrams, hybrid interfaces—with integrated event handling and message protocols for grading student responses.

Can I build non-standard D3 questions that don't fit template patterns?

Yes. Custom D3 questions support fully bespoke visualizations outside standard templates. Use the standard components where applicable, but extend with tailored state, flexible rendering workflows, and window message listeners to handle unique, student-driven prompts with interactive elements graded by your logic.

How do I manage state and interactivity in a custom D3 question?

Implement state management through createDefaultState for initialization and applyInitialState for restoration. Control interactivity locking via setInteractivity, sync state to the grading system with sendChartState, and bind event handlers within your rendering workflow to track student manipulations of draggable or interactive elements.

What's the best way to build draggable points and hybrid SVG/HTML interfaces in D3?

Custom D3 questions provide a pattern for draggable points and hybrid SVG/HTML interfaces through extensible rendering (renderAll) and event handling workflows. Define your SVG structure, attach drag behaviors, update state on interaction, and sync changes via the message protocol for seamless student interaction and assessment.

Do I need existing components to create custom D3 questions?

No strict requirement. While the pattern works with existing components when feasible, custom D3 questions are designed for truly bespoke interactions where standard components don't apply. Build from scratch using state management, rendering, and messaging functions to handle your unique visualization and grading logic.