Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for choropleth map & clean up chart types #112

Merged
merged 7 commits into from
Sep 28, 2023

Conversation

davidlougheed
Copy link
Member

No description provided.

Copy link
Contributor

@v-rocheleau v-rocheleau left a comment

Choose a reason for hiding this comment

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

Lgtm, just a small comment on typing

the field metadata (description / mapping information / units / etc.) By using a sum type here, we can optionally
mandate configuration information for certain types of charts.
*/
export type ChartConfig =
Copy link
Contributor

Choose a reason for hiding this comment

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

Would make three distinct types and then sum type them like:

export type ChartConfig = PieChartConfig  | BarChartConfig | ChoroplethChartConfig;

Makes it more readable imo, and we may want to import a specific type later.

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree, did this already in another WIP branch.

@davidlougheed davidlougheed merged commit 709bf6e into main Sep 28, 2023
@davidlougheed davidlougheed deleted the feat/maps branch September 28, 2023 21:50
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.

2 participants