Questions tagged [d3]
Post a PromptPrompts that build visualizations with D3.
5 prompts
8votes
0answers
967views
Inline SVG sparklines inside a table that stay readable at 20px tall
I needed a trend sparkline in the last column of a dense metrics table, one row per service. Every generated version either drew axes (pointless at that size) or normalized each row independently so a
9votes
1answers
2.0kviews
Prompt that bakes accessibility into a chart instead of bolting it on later
Our charts passed a visual review and failed an a11y audit hard: color-only encoding, no keyboard access, screen readers announcing a wall of unlabeled paths. Retrofitting was miserable, so I moved th
14votes
2answers
2.2kviews
One-shot D3 time-series line chart that infers types from a messy CSV header
I kept feeding the model a CSV export from our analytics tool and getting a chart where the x-axis was treated as strings, so December sorted before February. The naive prompt ("plot this CSV as a lin
18votes
2answers
2.0kviews
Choropleth of US counties with a projection and legend that don't lie
I was mapping a rate per county and the first output used Web Mercator, which visually inflates the northern counties and makes the whole map misleading for anything area-related. It also binned the d
8votes
1answers
1.8kviews
Interactive scatter explorer with brushing and a linked detail table
I wanted an explorer where you drag-select a region of a scatterplot and a table below updates to just those points, with the selection surviving zoom. My first version reset the brush every time the