-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
@escottalexander is attempting to deploy a commit to the BuidlGuidl Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -123,7 +123,7 @@ export default function ImpactVectorGraph({ | |||
<ComposedChart | |||
width={500} | |||
height={300} | |||
data={[...transformedData].splice(0, projectsShown)} | |||
data={transformedData.slice(-projectsShown, -1)} |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Commit incoming.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
This fixes the zoom feature so that it defaults to the top projects instead of the lowest projects.