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

Color Fill Bars Feature for Line Chart Component #14597

Merged
merged 25 commits into from
Oct 7, 2020

Conversation

mergmiller
Copy link
Contributor

@mergmiller mergmiller commented Aug 18, 2020

Pull request checklist

  • Addresses an existing issue: Fixes #0000
  • Include a change request file using $ yarn change

Description of changes

Adds color fill bar feature to line chart component. Users can opt for color or striped bars to indicate a range along the x-axis. Legend component has been updated to accommodate stripe patterns.
image

Focus areas to test

Line chart, legends

@ghost
Copy link

ghost commented Aug 18, 2020

CLA assistant check
All CLA requirements met.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 18, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 952ac8d:

Sandbox Source
Fluent UI Button Configuration
microsoft/fluentui: codesandbox-react-template Configuration
microsoft/fluentui: codesandbox-react-next-template Configuration
microsoft/fluentui: codesandbox-react-northstar-template Configuration

@msft-github-bot
Copy link
Contributor

msft-github-bot commented Aug 18, 2020

Perf Analysis

No significant results to display.

All results

Scenario Render type 7.0 Ticks PR Ticks Iterations Status
Avatar mount 849 810 5000
BaseButton mount 903 941 5000
Breadcrumb mount 42054 42006 5000
ButtonNext mount 595 555 5000
Checkbox mount 1548 1673 5000
CheckboxBase mount 1265 1283 5000
ChoiceGroup mount 4998 5076 5000
ComboBox mount 923 944 1000
CommandBar mount 7682 7730 1000
ContextualMenu mount 14677 14264 1000
DefaultButton mount 1141 1144 5000
DetailsRow mount 3724 3675 5000
DetailsRowFast mount 3789 3667 5000
DetailsRowNoStyles mount 3426 3405 5000
Dialog mount 1575 1509 1000
DocumentCardTitle mount 1840 1829 1000
Dropdown mount 2616 2641 5000
FocusTrapZone mount 1708 1728 5000
FocusZone mount 1806 1883 5000
IconButton mount 1726 1795 5000
Label mount 339 343 5000
Layer mount 2019 1985 5000
Link mount 451 468 5000
MenuButton mount 1488 1505 5000
MessageBar mount 2087 2049 5000
Nav mount 3291 3295 1000
OverflowSet mount 1456 1402 5000
Panel mount 1525 1467 1000
Persona mount 841 845 1000
Pivot mount 1424 1448 1000
PrimaryButton mount 1314 1367 5000
Rating mount 7673 7655 5000
SearchBox mount 1273 1258 5000
Shimmer mount 2605 2660 5000
Slider mount 1503 1526 5000
SpinButton mount 5088 5029 5000
Spinner mount 418 412 5000
SplitButton mount 3272 3182 5000
Stack mount 512 508 5000
StackWithIntrinsicChildren mount 1923 1915 5000
StackWithTextChildren mount 5063 5091 5000
SwatchColorPicker mount 10644 10529 5000
TagPicker mount 2673 2900 5000
TeachingBubble mount 51232 51043 5000
Text mount 431 425 5000
TextField mount 1416 1399 5000
ThemeProvider mount 1643 1696 5000
ThemeProvider virtual-rerender 638 665 5000
Toggle mount 835 839 5000
button mount 129 152 5000

Perf Analysis (Fluent)

Perf comparison
Status Scenario Fluent TPI Fabric TPI Ratio Iterations Ticks
🎯 Avatar.Fluent 0.46 0.49 0.94:1 2000 923
🦄 Button.Fluent 0.12 0.2 0.6:1 5000 610
🔧 Checkbox.Fluent 0.66 0.34 1.94:1 1000 660
🎯 Dialog.Fluent 0.16 0.23 0.7:1 5000 816
🔧 Dropdown.Fluent 3.07 0.46 6.67:1 1000 3067
🔧 Icon.Fluent 0.15 0.06 2.5:1 5000 749
🦄 Image.Fluent 0.08 0.12 0.67:1 5000 404
🔧 Slider.Fluent 1.65 0.36 4.58:1 1000 1646
🔧 Text.Fluent 0.07 0.04 1.75:1 5000 370
🦄 Tooltip.Fluent 0.12 17.68 0.01:1 5000 584

🔧 Needs work     🎯 On target     🦄 Amazing

Perf tests with no regressions
Scenario Current PR Ticks Baseline Ticks Ratio
AlertMinimalPerf.default 324 0 Infinity:1
AnimationMinimalPerf.default 431 0 Infinity:1
AttachmentMinimalPerf.default 157 0 Infinity:1
AttachmentSlotsPerf.default 1163 0 Infinity:1
BoxMinimalPerf.default 379 0 Infinity:1
ButtonMinimalPerf.default 186 0 Infinity:1
ButtonOverridesMissPerf.default 1713 0 Infinity:1
ButtonSlotsPerf.default 615 0 Infinity:1
ButtonUseCssPerf.default 832 0 Infinity:1
ButtonUseCssNestingPerf.default 1133 0 Infinity:1
CardMinimalPerf.default 598 0 Infinity:1
ChatDuplicateMessagesPerf.default 428 0 Infinity:1
ChatMinimalPerf.default 686 0 Infinity:1
ChatWithPopoverPerf.default 486 0 Infinity:1
CheckboxMinimalPerf.default 2903 0 Infinity:1
DialogMinimalPerf.default 857 0 Infinity:1
DividerMinimalPerf.default 384 0 Infinity:1
DropdownManyItemsPerf.default 792 0 Infinity:1
DropdownMinimalPerf.default 3015 0 Infinity:1
EmbedMinimalPerf.default 1988 0 Infinity:1
FlexMinimalPerf.default 311 0 Infinity:1
FormMinimalPerf.default 435 0 Infinity:1
HeaderMinimalPerf.default 381 0 Infinity:1
ImageMinimalPerf.default 415 0 Infinity:1
InputMinimalPerf.default 1371 0 Infinity:1
ItemLayoutMinimalPerf.default 1310 0 Infinity:1
LabelMinimalPerf.default 468 0 Infinity:1
LayoutMinimalPerf.default 421 0 Infinity:1
ListCommonPerf.default 668 0 Infinity:1
ListMinimalPerf.default 524 0 Infinity:1
ListNestedPerf.default 600 0 Infinity:1
LoaderMinimalPerf.default 747 0 Infinity:1
MenuMinimalPerf.default 877 0 Infinity:1
MenuButtonMinimalPerf.default 1637 0 Infinity:1
PopupMinimalPerf.default 729 0 Infinity:1
PortalMinimalPerf.default 170 0 Infinity:1
ProviderMergeThemesPerf.default 2148 0 Infinity:1
ProviderMinimalPerf.default 1064 0 Infinity:1
RadioGroupMinimalPerf.default 459 0 Infinity:1
ReactionMinimalPerf.default 422 0 Infinity:1
SegmentMinimalPerf.default 369 0 Infinity:1
SkeletonMinimalPerf.default 433 0 Infinity:1
SliderMinimalPerf.default 1607 0 Infinity:1
SplitButtonMinimalPerf.default 3864 0 Infinity:1
TableMinimalPerf.default 466 0 Infinity:1
TextMinimalPerf.default 379 0 Infinity:1
TextAreaMinimalPerf.default 526 0 Infinity:1
CustomToolbarPrototype.default 4046 0 Infinity:1
ToolbarMinimalPerf.default 976 0 Infinity:1
TooltipMinimalPerf.default 836 0 Infinity:1
TreeMinimalPerf.default 895 0 Infinity:1
TreeWith60ListItems.default 225 0 Infinity:1
VideoMinimalPerf.default 646 0 Infinity:1
Avatar.Fluent 923 0 Infinity:1
Button.Fluent 610 0 Infinity:1
Checkbox.Fluent 660 0 Infinity:1
Dropdown.Fluent 3067 0 Infinity:1
Icon.Fluent 749 0 Infinity:1
Image.Fluent 404 0 Infinity:1
Slider.Fluent 1646 0 Infinity:1
Text.Fluent 370 0 Infinity:1
Tooltip.Fluent 584 0 Infinity:1
TableManyItemsPerf.default 2204 1 2204:1
ListWith60ListItems.default 986 1 986:1
HeaderSlotsPerf.default 843 1 843:1
Dialog.Fluent 816 1 816:1
StatusMinimalPerf.default 748 1 748:1
IconMinimalPerf.default 729 1 729:1
AvatarMinimalPerf.default 494 1 494:1
CarouselMinimalPerf.default 456 1 456:1
GridMinimalPerf.default 372 1 372:1
RefMinimalPerf.default 271 1 271:1
AccordionMinimalPerf.default 165 1 165:1

@size-auditor
Copy link

size-auditor bot commented Aug 18, 2020

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 4ed02fee9163038991cf09fd0517e517055a27ef (build)

@ecraig12345 ecraig12345 reopened this Aug 28, 2020
@ecraig12345
Copy link
Member

@Raghurk Can you please review?

@mergmiller
Copy link
Contributor Author

I've updated the snapshot test so that all tests pass locally. However, the Vertical Line Chart snapshot still fails. Please advise, @Raghurk , @ecraig12345. Thank you!

@mergmiller mergmiller changed the base branch from master to 7.0 October 1, 2020 18:50
@mergmiller
Copy link
Contributor Author

Updated base, @khmakoto

@mergmiller
Copy link
Contributor Author

Hi, @Raghurk. Since this was approved, when will it be merged in? Also, it says that I do not have a yarn change file update and am receiving this error when running yarn change:

image

@ecraig12345
Copy link
Member

You need to run yarn to install updated dependencies, then try yarn change again.

@ecraig12345
Copy link
Member

Looks like you need to update snapshots. cd to the charting package folder then run yarn update-snapshots.

@msft-github-bot
Copy link
Contributor

Hello @ecraig12345!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msft-github-bot) and give me an instruction to get started! Learn more here.

@mergmiller
Copy link
Contributor Author

Hi, @ecraig12345! Do you know why these tasks haven't reported back and why one is still queued?

@ecraig12345
Copy link
Member

There's been an ongoing issue the past couple days with Azure Devops builds not getting queued by GitHub PRs. I've hopefully worked around it now but your last push may have happened to be at one of the times it was broken. In general you can trigger new builds by either closing and reopening the PR or commenting /azp run (without the code formatting).

Also the "Screener for N*" check shouldn't be running for this branch and you can ignore it (we're working on removing it).

@ecraig12345 ecraig12345 closed this Oct 7, 2020
@ecraig12345 ecraig12345 reopened this Oct 7, 2020
@ecraig12345 ecraig12345 merged commit 4c6a2e3 into microsoft:7.0 Oct 7, 2020
@mergmiller mergmiller deleted the ColorFillBarFeature branch October 7, 2020 21:10
@msft-github-bot
Copy link
Contributor

🎉@uifabric/[email protected] has been released which incorporates this pull request.:tada:

Handy links:

@msft-github-bot
Copy link
Contributor

🎉@fluentui/[email protected] has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants