Skip to content

Commit

Permalink
Merge pull request #426 from deneb-viz/feature/advanced-selection
Browse files Browse the repository at this point in the history
Advanced cross-filtering functionality (when using Vega)
  • Loading branch information
dm-p authored Mar 19, 2024
2 parents f409bc2 + 4345309 commit fe3b7b0
Show file tree
Hide file tree
Showing 22 changed files with 852 additions and 122 deletions.
20 changes: 20 additions & 0 deletions capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,26 @@
"bool": true
}
},
"selectionMode": {
"displayNameKey": "Objects_Vega_SelectionMode",
"descriptionKey": "Objects_Vega_SelectionMode_Description",
"displayName": "Selection Mode",
"description": "Selection Mode description.",
"type": {
"enumeration": [
{
"displayNameKey": "Enum_SelectionMode_Simple",
"displayName": "Simple",
"value": "simple"
},
{
"displayNameKey": "Enum_SelectionMode_Advanced",
"displayName": "Advanced",
"value": "advanced"
}
]
}
},
"selectionMaxDataPoints": {
"displayNameKey": "Objects_Vega_SelectionMaxDataPoints",
"descriptionKey": "Objects_Vega_SelectionMaxDataPoints_Description",
Expand Down
14 changes: 7 additions & 7 deletions config/features.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"developer_mode": false,
"combined_apply_button": false,
"data_drilldown": false,
"enable_external_uri": false,
"visual_update_history_overlay": false,
"advanced_cross_filtering": false
{
"developer_mode": false,
"combined_apply_button": false,
"data_drilldown": false,
"enable_external_uri": false,
"visual_update_history_overlay": false,
"advanced_cross_filtering": true
}
3 changes: 3 additions & 0 deletions config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import capabilities from '../capabilities.json';
import features from './features.json';
import { dependencies } from '../package.json';
import { visual } from '../pbiviz.json';
import { SelectionMode } from '../src/features/interactivity';

/**
* This is an object that contains the visual's metadata. This is used to
Expand All @@ -21,6 +22,7 @@ export const CAPABILITIES = capabilities;
export const CROSS_FILTER_LIMITS = {
minDataPointsValue: 1,
maxDataPointsValue: 250,
maxDataPointsAdvancedValue: 2500,
dataPointsStepValue: 1
};

Expand Down Expand Up @@ -209,6 +211,7 @@ export const PROPERTY_DEFAULTS = {
enableTooltips: true,
enableSelection: false,
enableHighlight: false,
selectionMode: <SelectionMode>'simple',
selectionMaxDataPoints: 50,
tooltipDelay: 0,
isNewDialogOpen: true
Expand Down
198 changes: 183 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@
"react-vega": "7.6.0",
"styled-components": "^6.0.0-rc.3",
"ts-loader": "^9.2.5",
"ts-node": "^10.9.2",
"typescript": "^4.2.4",
"typescript-json-schema": "^0.50.0",
"uuid": "^8.3.2",
"zustand": "^4.3.7"
}
}
}
Loading

0 comments on commit fe3b7b0

Please sign in to comment.