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

Change tick size for charts #533

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

ethank2222
Copy link

Description

Always 6 ticks, each tick size is calculated as the max table value divided by 6.

Screenshots

Begin:
image

End:
Screenshot 2024-12-06 191455

Steps to verify/test this change:

Look at chart for class availabilities

Final Checks:

Yes, I did

Issues

None

Closes #

Always 6 ticks, each tick size is calculated as the max table value divided by 6.
Copy link
Member

@Awesome-E Awesome-E left a 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

Copy link
Member

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

Copy link
Member

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

Copy link
Member

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

Copy link
Member

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
Copy link
Member

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

Suggested change
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),

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