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

N/M variant of HBC #33078

Closed
wants to merge 1 commit into from
Closed

Conversation

Anush2303
Copy link
Contributor

Previous Behavior

New Behavior

Added N/M variant of Multi Stacked Horizontal bar chart.

Related Issue(s)

  • Fixes #

@Anush2303 Anush2303 marked this pull request as ready for review October 18, 2024 10:29
@Anush2303 Anush2303 requested a review from a team as a code owner October 18, 2024 10:29
@AtishayMsft AtishayMsft requested review from AtishayMsft and removed request for a team October 18, 2024 10:30
@@ -13,6 +13,12 @@ export default {

export const Basic: Story<FluentHorizontalBarChart> = renderComponent(storyTemplate).bind({});

export const NMVariant: Story<FluentHorizontalBarChart> = renderComponent(html<StoryArgs<FluentHorizontalBarChart>>`
<div>
<fluent-horizontalbarchart variant="part-to-whole"> </fluent-horizontalbarchart>
Copy link
Contributor

Choose a reason for hiding this comment

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

use this as an enum similar to absolute variant

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Enum is already defined. This is passed as an attribute similar to prop that we used in React.

const getChartData = () => (data!.chartData![0].data ? data!.chartData![0].data : 0);

if (showRatio) {
const ratioDiv = chartTitleDiv.append('div').attr('role', 'text');
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is the data for the image that you shared.
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Line 448,449

@Anush2303 Anush2303 closed this Oct 21, 2024
@Anush2303 Anush2303 deleted the usr/agupta/hbc/NMVariant branch January 17, 2025 09:59
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.

2 participants