mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
Add event-flow visualization (#3102)
* [event-flow] add event flow visualizaton type from @data-ui/event-flow. * [event-flow] update vis thumbnail * [event-flow] update row limit label, remove duplicate chart controls * [dependencies] add @data-ui/event-flow 0.0.2 * [linting] fix multiple imports * [deps] bump mapbox-gl and react-map-gl to fix build * [event-flow] bump to 0.0.3 for es2015 + stage-0 babel presets * [deps] revert mapbox version bumps * [event-flow] update png, bump to newest version, address reviewer comments, add min event count form. * [event-flow] pin version * [event-flow][spec] add test for coveralls * [event-flow] revert spec
This commit is contained in:
committed by
Maxime Beauchemin
parent
a141695b2b
commit
40d9e15126
@@ -659,7 +659,7 @@ export const controls = {
|
||||
label: 'Entity',
|
||||
default: null,
|
||||
validators: [v.nonEmpty],
|
||||
description: 'This define the element to be plotted on the chart',
|
||||
description: 'This defines the element to be plotted on the chart',
|
||||
mapStateToProps: state => ({
|
||||
choices: (state.datasource) ? state.datasource.gb_cols : [],
|
||||
}),
|
||||
@@ -1273,5 +1273,23 @@ export const controls = {
|
||||
hidden: true,
|
||||
description: 'The number of seconds before expiring the cache',
|
||||
},
|
||||
|
||||
order_by_entity: {
|
||||
type: 'CheckboxControl',
|
||||
label: 'Order by entity id',
|
||||
description: 'Important! Select this if the table is not already sorted by entity id, ' +
|
||||
'else there is no guarantee that all events for each entity are returned.',
|
||||
default: true,
|
||||
},
|
||||
|
||||
min_leaf_node_event_count: {
|
||||
type: 'SelectControl',
|
||||
freeForm: false,
|
||||
label: 'Minimum leaf node event count',
|
||||
default: 1,
|
||||
choices: formatSelectOptionsForRange(1, 10),
|
||||
description: 'Leaf nodes that represent fewer than this number of events will be initially ' +
|
||||
'hidden in the visualization',
|
||||
},
|
||||
};
|
||||
export default controls;
|
||||
|
||||
Reference in New Issue
Block a user