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 negative bar values #262

Merged
merged 5 commits into from
Jun 3, 2024

Conversation

zibs
Copy link
Contributor

@zibs zibs commented May 9, 2024

Description

  • base is currently expo upgrade branch
  • adds negative chart example to repo
  • support rounded corners by using Skia's new NonUniformRRect. Removes test now that it's not a custom function.
  • Adds context provider to Cartesian chart that allows us to access the scale functions inside the charts

Fixes #178

Screen.Recording.2024-05-09.at.2.16.04.PM.mov

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Checklist: (Feel free to delete this section upon completion)

  • I have included a changeset if this change will require a version change to one of the packages.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have run yarn run check:code and all checks pass
  • I have created a changeset for new features, patches, or major changes
  • I have added tests that prove my fix is effective or that my feature works
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@zibs zibs requested a review from keithluchtel May 9, 2024 21:22
Copy link

vercel bot commented May 9, 2024

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

Name Status Preview Comments Updated (UTC)
victory-native-xl-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 31, 2024 8:51pm

Copy link

changeset-bot bot commented May 9, 2024

🦋 Changeset detected

Latest commit: 9d8d244

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
victory-native Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -17,6 +18,8 @@ export const useBarGroupPaths = (
) => {
const numGroups = points[0]?.length || 0;

const { yScale } = useCartesianChartContext();
Copy link
Contributor

Choose a reason for hiding this comment

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

🔥

Copy link
Contributor

@carbonrobot carbonrobot left a comment

Choose a reason for hiding this comment

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

Amazing!

@zibs zibs force-pushed the feat/negative-number-bar-charts branch from a7c9853 to 75bf41c Compare May 31, 2024 20:25
Base automatically changed from feat/upgrade-expo to main May 31, 2024 20:47
zibs added 5 commits May 31, 2024 13:48
removes reanimated plugin
removes android/ios

bumps to latest version packages
removes reanimated plugin
removes android/ios

bumps to latest version packages
- adds negative chart example to repo
- support rounded corners by using Skia's new `NonUniformRRect`. Removes test now that it's not a custom function.
- Adds context provider to Cartesian chart that allows us to access the scale functions inside the charts
@zibs zibs force-pushed the feat/negative-number-bar-charts branch from 75bf41c to 9d8d244 Compare May 31, 2024 20:50
@zibs zibs merged commit 30a3c77 into main Jun 3, 2024
3 checks passed
@zibs zibs deleted the feat/negative-number-bar-charts branch June 3, 2024 15:19
@github-actions github-actions bot mentioned this pull request May 31, 2024
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.

Negative values are displayed as positive
2 participants