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

Refinements for Half Donut #441

Open
2 tasks
curran opened this issue Sep 5, 2024 · 7 comments
Open
2 tasks

Refinements for Half Donut #441

curran opened this issue Sep 5, 2024 · 7 comments

Comments

@curran
Copy link

curran commented Sep 5, 2024

As a user creating a half-donut chart by specifying the angleRange of VisDonut to [-Math.PI / 2, Math.PI / 2], I want the vis to look decent and scale properly to its container, so that I don't end up with wasted screen real estate.

Here's what it looks like now:

image

Subtasks:

  • Offset in the Y direction the labels
  • Scale the donut to fill the available space

For offset in Y direction, we may need to add a parameter that gets used here:

https://github.com/f5/unovis/blob/main/packages/ts/src/components/donut/index.ts#L127

@curran
Copy link
Author

curran commented Sep 5, 2024

What is the recommended workflow for development? Should I add a new Gallery example to test with?

@curran
Copy link
Author

curran commented Sep 5, 2024

I think I'll start by adding a new entry to the list of things here in packages/dev/cypress/urls.ts, assuming that's what drives the npm run dev page:

  {
    title: 'Donut: Empty Segments',
    url: '/examples/Donut/Donut:%20Empty%20Segments',
    duration: 0,
  },
  {
    title: 'Donut Data Transitions',
    url: '/examples/Donut/Donut%20Data%20Transitions',
    duration: 0,
  },
  // New:
  {
    title: 'Half Donut',
    url: '/examples/Donut/Half%20Donut',
    duration: 0,
  },

@curran
Copy link
Author

curran commented Sep 5, 2024

Or, maybe this is the place to add it: packages/shared/examples/examples-list.tsx.

@lee00678
Copy link
Collaborator

lee00678 commented Sep 5, 2024

Hi @curran, thanks for your interest in contributing. We have a general contribution guideline here.
You can either add a new gallery example, or add an example in our development page(here). If you want to use the development page to test your updates, create a new folder under packages/shared/exmaples.

@curran
Copy link
Author

curran commented Sep 5, 2024

Oh excellent! Thank you for the info. I've started on this here (very much WIP): #444

image

I hope this is the right place to start adding examples. It's currently in packages/dev/src/examples/misc/donut/half-donut, and it shows up in the npm run dev testing space. Please let me know if it would be better suited in packages/shared/exmaples. Thanks!

@lee00678
Copy link
Collaborator

lee00678 commented Sep 6, 2024

I think putting it under packages/dev/src/examples/misc/donut/half-donut is fine! If you want to add an example on the website after you are done with you implementation, you are always welcome to do so.

@curran
Copy link
Author

curran commented Sep 10, 2024

Making a bit of progress
image

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

No branches or pull requests

2 participants