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

Select the top projects instead of the bottom projects #99

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

escottalexander
Copy link
Collaborator

This fixes the zoom feature so that it defaults to the top projects instead of the lowest projects.
image

Copy link

vercel bot commented Apr 16, 2024

@escottalexander is attempting to deploy a commit to the BuidlGuidl Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Apr 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
impact-calculator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 16, 2024 9:17pm

@@ -123,7 +123,7 @@ export default function ImpactVectorGraph({
<ComposedChart
width={500}
height={300}
data={[...transformedData].splice(0, projectsShown)}
data={transformedData.slice(-projectsShown, -1)}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason for shaving the top project off with the -1? If not, I think we could grab all of the highest projects with .slice(-projectsShown)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch! Commit incoming.

Copy link
Collaborator

@swellander swellander left a comment

Choose a reason for hiding this comment

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

Nice!

@escottalexander escottalexander merged commit fa43c75 into BuidlGuidl:main Apr 16, 2024
3 checks passed
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.

3 participants