We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7427277 commit 419f9d0Copy full SHA for 419f9d0
adminforth/documentation/docs/tutorial/03-Customization/08-pageInjections.md
@@ -37,6 +37,17 @@ Now create file `ApartsPie.vue` in the `custom` folder of your project:
37
:options="{
38
chart: {
39
height: 250,
40
+ events: {
41
+ dataPointSelection: function (event, chartContext, config) {
42
+ if (config.selectedDataPoints[0].length) {
43
+ const selectedRoomsCount = data[config.dataPointIndex].rooms;
44
+ adminforth.list.updateFilter({field: 'number_of_rooms', operator: 'eq', value: selectedRoomsCount});
45
+ } else {
46
+ // clear filter
47
+ adminforth.list.updateFilter({field: 'number_of_rooms', value: undefined});
48
+ }
49
50
51
},
52
dataLabels: {
53
enabled: true,
0 commit comments