feat(chart): add ChoroplethMap#610
Conversation
|
/bonk please review |
1 similar comment
|
/bonk please review |
commit: |
Docs PreviewCommit: |
There was a problem hiding this comment.
Thanks for the PR! The ChoroplethMap implementation is well-structured — clean viewport preservation, consistent event handling with BubbleMap, and nice Kumo color integration.
A few things to address before merging:
- BubbleMap default change is undocumented. Switching the default from → changes the default interaction behavior for existing consumers. If this is intentional it should be called out in the changeset.
- Missing ChoroplethMap PropsTable in docs. The API Reference section should include a PropsTable for the new component too.
- Test page consistency. The ChoroplethMap test section is missing a descriptive paragraph like the other sections have.
See inline comments for details.
| zoom?: number; | ||
| /** Enable drag-to-pan and scroll-to-zoom. Default: `true`. */ | ||
| /** Enable drag-to-pan and scroll-to-zoom. Default: `false`. */ | ||
| roam?: boolean; |
There was a problem hiding this comment.
The BubbleMap default changed from to but the changeset () only mentions the viewport-preservation fix. Existing consumers who omit the prop will lose drag-to-pan/scroll-to-zoom on upgrade.
Please either revert the default to (the fix already solves the reset issue) or update the changeset to document this breaking interaction change.
| <ComponentSection> | ||
| <Heading level={2}>API Reference</Heading> | ||
| <Heading level={3} class="mb-2 mt-4 text-lg">BubbleMap</Heading> | ||
| <PropsTable component="BubbleMap" /> |
There was a problem hiding this comment.
Please add a PropsTable for as well.
|
|
||
| <section class="space-y-4"> | ||
| <div> | ||
| <h2 class="text-xl font-semibold text-kumo-default">ChoroplethMapBasicDemo</h2> |
There was a problem hiding this comment.
For consistency with the other test sections, consider adding a description paragraph.
|
Follow-up: my earlier review comments lost some backticks due to escaping issues. Here is the same feedback with proper formatting:
Otherwise the implementation looks solid. Nice work! |
|
Review submitted on PR #610. Summary of feedback:
The batch review was posted successfully (with inline comments on the relevant lines), and a follow-up top-level comment clarifies the properly formatted feedback. |











































































Adds
ChoroplethMap, a GeoJSON region choropleth chart component with Kumo light/dark map colors, tooltip formatting, optional legend, hover/click callbacks, roam controls, docs, demos, exports, and a changeset.Reviews
Tests
pnpm --filter @cloudflare/kumo-docs-astro typecheckwith 0 errors; existing warnings/hints remain unrelated