-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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(plugin-chart-echarts): [feature-parity] support extra control for the area chart V2 #16493
Conversation
Codecov Report
@@ Coverage Diff @@
## master #16493 +/- ##
==========================================
- Coverage 66.54% 66.52% -0.02%
==========================================
Files 1726 1727 +1
Lines 64875 64918 +43
Branches 6830 6843 +13
==========================================
+ Hits 43169 43188 +19
- Misses 19975 19997 +22
- Partials 1731 1733 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
Any news on getting this merged? |
@jhult I will finish this PR next week. |
/testenv up FEATURE_GENERIC_CHART_AXES=true |
@stephenLYZ Ephemeral environment spinning up at http://34.208.141.177:8080. Credentials are |
LGTM! |
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.
Thanks for the awesome new feature! left some unblocked comments. If have time to add more unit-test in the separate PR.
@@ -191,7 +191,7 @@ export default function transformProps( | |||
areaOpacity: opacity, | |||
seriesType, | |||
showValue, | |||
stack, | |||
stack: Boolean(stack), |
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.
no blocking nit
stack: Boolean(stack), | |
!!stack |
setControlValue?: HandlerFunction; | ||
}) { | ||
const { stack, area } = formData; | ||
const [extraValue, setExtraValue] = useState<JsonValue | undefined>( |
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.
const [extraValue, setExtraValue] = useState<JsonValue | undefined>( | |
if (area === undefined) { | |
return [] | |
} | |
const [extraValue, setExtraValue] = useState<JsonValue | undefined>( |
Ephemeral environment shutdown and build artifacts deleted. |
🏆 Enhancements
This PR implements
Extra Control
on the area chart V2, and the chart's update mechanism is usingsetControlValue
hook. There are some differences or improvements:Extra Control
is updated. But for NVD3, updating extra control does not update the stack control.Stack
andExpend
two options (Stream Graph will come soon) and add a newNone
option, which can cancel the stack style.explore
before
2022-05-08.8.31.21.mov
after
2022-05-08.8.06.14.mov
dashboard
before
2022-05-08.8.31.59.mov
after
2022-05-08.8.35.59.mov
TESTING INSTRUCTIONS
Exta Control
to the time-series area chartADDITIONAL INFORMATION
Extra Controls
on the Time-Series Area Chart for feature parity #16298