-
Notifications
You must be signed in to change notification settings - Fork 14
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
Change tick size for charts #533
base: main
Are you sure you want to change the base?
Conversation
Always 6 ticks, each tick size is calculated as the max table value divided by 6.
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.
Double check some of the repo files – it looks like this PR should just be changing the QuarterTooltip
component, and not any dependencies
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.
This is an example .env
file that shows contributors the names of variables that should be used. It should not be deleted from the repository
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.
It looks like you installed pnpm
locally (in this project) instead of globally. pnpm
is used as a global package manager, so it should be installed with npm i -g pnpm
rather than within the project. You should revert the changes to this file in the PR
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.
Same comment with package.json
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.
Same comment as package.json
@@ -153,7 +156,7 @@ export default class Chart extends React.Component<ChartProps> { | |||
legendOffset: 36, | |||
}} | |||
axisLeft={{ | |||
tickValues: Array.from({ length: greatestCount }, (_, i) => i + 1), // integers from 1 to max | |||
tickValues: Array.from({ length: greatestCount / tickSize }, (_, i) => i * tickSize + tickSize), // integers from 1 to max |
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.
Change or remove the out-of-date comment
tickValues: Array.from({ length: greatestCount / tickSize }, (_, i) => i * tickSize + tickSize), // integers from 1 to max | |
tickValues: Array.from({ length: greatestCount / tickSize }, (_, i) => i * tickSize + tickSize), |
Description
Always 6 ticks, each tick size is calculated as the max table value divided by 6.
Screenshots
Begin:
End:
Steps to verify/test this change:
Look at chart for class availabilities
Final Checks:
Yes, I did
Issues
None
Closes #