Skip to content

chore(chart stack): convert to typescript #11890

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

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

Conversation

Mash707
Copy link
Contributor

@Mash707 Mash707 commented Jun 26, 2025

Towards #11719

The following examples are converted:

  • Basic with right aligned legend
  • Horizontal with bottom aligned legend
  • Multi-color (ordered) horizontal with bottom aligned legend
  • Monthly data with responsive container
  • Multi-color (unordered) responsive container

@patternfly-build
Copy link
Contributor

patternfly-build commented Jun 26, 2025

@Mash707 Mash707 mentioned this pull request Jun 26, 2025
18 tasks
y: number;
}

export const ChartStackColorUnordered: React.FunctionComponent = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: export name should match the file anme

y: number;
}

export const ChartStackHorizontalBottomLegend: React.FunctionComponent = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

For this, let's just update the example, file, and export name to remove "horizontal". Based on other chart examples I imagine this is just meant to show the bottom aligned legend, and it's confusing that this is named "horizontal" when it's not showing the chart with horizontal stacks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah makes sense

@Mash707 Mash707 requested a review from thatblindgeye July 12, 2025 07:40
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