-
Notifications
You must be signed in to change notification settings - Fork 364
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: [DI-21463] - Added capability to transform area chart into line chart #11136
feat: [DI-21463] - Added capability to transform area chart into line chart #11136
Conversation
Coverage Report: ✅ |
height: number; | ||
hideFill?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hideFill
seems fine to me. We could do something like this to potentially be more extendable / descriptive but it would accomplish the same thing.
hideFill?: boolean; | |
/** | |
* Makes the chart appear as a line or area chart | |
* @default area | |
*/ | |
variant?: 'area' | 'line'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nikhagra-akamai Yea let's do this, I have a feeling we'll want this.
@@ -41,7 +42,9 @@ interface AreaChartProps { | |||
areas: AreaProps[]; | |||
ariaLabel: string; | |||
data: any; | |||
fillOpacity?: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: add jsdoc style comments to our props describing what they do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved pending small variant addition
"@linode/manager": Added | ||
--- | ||
|
||
Add hideFill & fillOpacity property to AreaChart component ([#11136](https://github.com/linode/manager/pull/11136)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add hideFill & fillOpacity property to AreaChart component ([#11136](https://github.com/linode/manager/pull/11136)) | |
Add `hideFill` & `fillOpacity` properties to `AreaChart` component ([#11136](https://github.com/linode/manager/pull/11136)) |
@jaalah-akamai @bnussman-akamai @dwiley-akamai updated review comments & added jsdocs for the interfaces. Please merge |
Cloud Manager E2E Run #6713
Run Properties:
|
Project |
Cloud Manager E2E
|
Branch Review |
develop
|
Run status |
Passed #6713
|
Run duration | 25m 22s |
Commit |
0036546919: feat: [DI-21463] - Added capability to transform area chart into line chart (#11...
|
Committer | Nikhil Agrawal |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
2
|
Pending |
2
|
Skipped |
0
|
Passing |
438
|
View all changes introduced in this branch ↗︎ |
Description 📝
Added capability to transform area chart into line chart
Changes 🔄
List any change relevant to the reviewer.
Target release date 🗓️
28 October 2024
Preview 📷
Include a screenshot or screen recording of the change
💡 Use
<video src="" />
tag when including recordings in table.Area chart with full opacity in the area
Area chart with no opacity in area
Area chart with 30% opacity in area
How to test 🧪
Note: Do not use hideFill property with fillOpacity otherwise it'll be no effect of fillOpacity value.
As an Author I have considered 🤔
Check all that apply