-
Notifications
You must be signed in to change notification settings - Fork 1
/
onResize.js
42 lines (32 loc) · 1.45 KB
/
onResize.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import legendFilter from './onResize/legendFilter';
import addYAxisTickTooltips from './onResize/addYAxisTickTooltips';
import addYAxisTickClick from './onResize/addYAxisTickClick';
import annotateYAxisInfo from './onResize/annotateYAxisInfo';
import truncateYAxisTickLabels from './onResize/truncateYAxisTickLabels';
import hideBars from './onResize/hideBars';
import annotateNumberOfQueries from './onResize/annotateNumberOfQueries';
import addBarClick from './onResize/addBarClick';
import addBarDeselection from './onResize/addBarDeselection';
import addNoDataIndicator from './onResize/addNoDataIndicator';
export default function onResize() {
//Add filter functionality to legend.
legendFilter.call(this);
//Add y-tick-label tooltips.
addYAxisTickTooltips.call(this);
//Plot data by field when viewing data by form and user clicks y-axis tick label.
addYAxisTickClick.call(this);
//Annotate the number of hidden y-axis tick labels.
annotateYAxisInfo.call(this);
//Truncate tick labels to fit in left margin of chart.
truncateYAxisTickLabels.call(this);
//Hide bars that aren't in first N groups.
hideBars.call(this);
//Annotate number of queries.
annotateNumberOfQueries.call(this);
//Add bar click-ability.
addBarClick.call(this);
//Add bar deselection.
addBarDeselection.call(this);
//Add informational text to the chart canvas when filters are in conflict.
addNoDataIndicator.call(this);
}