Skip to content

Conversation

@KaranPradhan266
Copy link
Contributor

Summary

Closes: #193
Added two new chart templates — Pie Chart and US Map with Points — and registers them in src/components/ChartTemplates.tsx. Both templates include placeholder MUI icons, channel wiring, and integration into CHART_TEMPLATES.


Pie Chart

  • Supports theta and color channels.
  • Optional column and row faceting.
  • Uses an arc mark with straightforward defaults.

US Map (States + Points)

  • Renders a states geoshape basemap with a projected point layer on top.
  • Points use longitude/latitude, with optional color and size channels.
  • Uses the albersUsa projection.

Notes / Caveats

  • Basemap TopoJSON is fetched from:
    https://vega.github.io/vega-lite/data/us-10m.json
    • Can be switched to a local file for offline usage.

@KaranPradhan266
Copy link
Contributor Author

@microsoft-github-policy-service agree

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for two new chart types—Pie Chart and US Map with Points—expanding the visualization capabilities of the application. Both templates follow the established pattern used by existing chart templates, with appropriate channel definitions, path mappings, and MUI icon integrations.

Key Changes:

  • Added Pie Chart template with support for theta, color, and faceting channels
  • Added US Map with Points template with geographic projections and point overlay
  • Registered both templates in the CHART_TEMPLATES export

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Chenglong-MS Chenglong-MS changed the base branch from main to dev December 8, 2025 17:41
@Chenglong-MS Chenglong-MS merged commit 58d86f9 into microsoft:dev Dec 8, 2025
9 checks passed
@Chenglong-MS
Copy link
Collaborator

I loved it! It looks fun

image

@Chenglong-MS
Copy link
Collaborator

the map one also works perfectly, thanks for the work! Might worth in future to consider how to design generic maps with some parameters

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expand chart type supports

2 participants