You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "villebro (via GitHub)" <gi...@apache.org> on 2023/03/17 17:21:02 UTC
[GitHub] [superset] villebro commented on a diff in pull request #23410: feat(echarts): Implement stream graph for Echarts Timeseries
villebro commented on code in PR #23410:
URL: https://github.com/apache/superset/pull/23410#discussion_r1140502511
##########
superset-frontend/plugins/plugin-chart-echarts/src/constants.ts:
##########
@@ -71,18 +71,29 @@ export enum OpacityEnum {
NonTransparent = 1,
}
-export enum AreaChartExtraControlsValue {
+export enum StackControlsValue {
Stack = 'Stack',
+ Stream = 'Stream',
Expand = 'Expand',
}
+export const ExtraControlsOptions: [
+ JsonValue,
+ Exclude<ReactNode, null | undefined | boolean>,
+][] = [
+ [null, t('None')],
+ [StackControlsValue.Stack, t('Stack')],
+ [StackControlsValue.Stream, t('Stream')],
+];
+
export const AreaChartExtraControlsOptions: [
JsonValue,
Exclude<ReactNode, null | undefined | boolean>,
][] = [
[null, t('None')],
- [AreaChartExtraControlsValue.Stack, t('Stack')],
- [AreaChartExtraControlsValue.Expand, t('Expand')],
+ [StackControlsValue.Stack, t('Stack')],
+ [StackControlsValue.Stream, t('Stream')],
+ [StackControlsValue.Expand, t('Expand')],
];
Review Comment:
Maybe a nit, but this had me confused: could these be called `StackControlOptions` and `AreaChartStackControlOptions`?
##########
superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/Area/controlPanel.tsx:
##########
@@ -116,6 +117,7 @@ const config: ControlPanelConfig = {
},
],
[onlyTotalControl],
+ [percentageThresholdControl],
Review Comment:
Oh nice bycatch
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org