-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPointsDash.py
1112 lines (867 loc) · 34.1 KB
/
PointsDash.py
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Creating a Baseball Dashboard for
# MLB Fantasy Points based leagues
# Goal is to create a tool managers can use to help
# rank players based on specific league settings
import pandas as pd
import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State
import dash_table
import plotly.express as px #(need to pip install plotly==4.4.1)
from scipy import stats
import plotly.figure_factory as ff
# you need to include __name__ in your Dash constructor if
# you plan to use a custom CSS or JavaScript in your Dash apps
app = dash.Dash(__name__, external_stylesheets=[dbc.themes.LUX])
# Allows Heroku to connect to servers:
server = app.server
df = pd.read_csv("All_Stats.csv")
df.Season = pd.to_numeric(df.Season)
df = df[df['Season'] >= 2000]
min_year = df.Season.min()
max_year = df.Season.max()
df.insert(1, "Points", 0)
df.insert(2, "Zscore", 0)
dttable = ['Points','Zscore','Season','Name','Age','Team','AB','H_bat','1B','2B','3B','HR_bat','R_bat','RBI','BB_bat','IBB_bat','SB','CS','SO_bat','GS','CG','ShO','W','L','SV','BS','IP','SO_pit','H_pit','ER','BB_pit','IBB_pit','HBP_pit','BK','WP']
print(df.head())
#---------------------------------------------------------------
app.layout = html.Div([
html.Div([
dbc.Row([
dbc.Col([
# Page Title
html.H3("Fantasy Baseball: League Specific Points Based Rankings",
style={'fontSize': 24, 'margin-right': '5%', 'margin-left': '5%', 'margin-top': '2%', 'margin-bottom': '0.5%'})
]), # End Top Col
]), # End Top Row
dbc.Row([
dbc.Col( [
html.Div([
# Select Year Ranges
dcc.RangeSlider(
id='Season',
marks={
1850: {'label': '1850', 'style': {'color': '#77b0b1'}},
1860: {'label': '1860'},
1870: {'label': '1870'},
1880: {'label': '1880', 'style': {'color': '#f50'}},
1890: {'label': '1890', 'style': {'color': '#77b0b1'}},
1900: {'label': '1900'},
1910: {'label': '1910'},
1920: {'label': '1920', 'style': {'color': '#f50'}},
1930: {'label': '1930', 'style': {'color': '#77b0b1'}},
1940: {'label': '1940'},
1950: {'label': '1950'},
1960: {'label': '1960', 'style': {'color': '#f50'}},
1970: {'label': '1970', 'style': {'color': '#77b0b1'}},
1980: {'label': '1980'},
1990: {'label': '1990'},
2000: {'label': '2000'},
2010: {'label': '2010', 'style': {'color': '#f50'}},
2020: {'label': '2020'},
2030: {'label': '2030'},
2040: {'label': '2040', 'style': {'color': '#f50'}}
},
step=1,
min = min_year,
max = max_year,
value = [2020, 2020],
dots = True,
allowCross = False,
disabled = False,
pushable = 0,
updatemode = 'drag',
included = True,
vertical = False,
# verticalHeight = 900,
className = 'None',
# tooltip = {"always visible":False, "placement":'bottom'}
),
]),
], width=10) # End Range Slider Col
]), # End Range Slider Row
dbc.Row([
dbc.Col( [
html.H5("League Points", style={'font-weight': 'bold'}),
html.H6("Batting: "),
html.H6("AB: "),
html.Div([
dcc.Input(
id='AB_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=0,
debounce=False,
placeholder='Points Per AB'),
]),
html.H6("H: "),
html.Div([
dcc.Input(
id='H_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=0,
debounce=False,
placeholder='Points Per H'),
]),
html.H6("Single: "),
html.Div([
dcc.Input(
id='Single_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=1,
debounce=False,
placeholder='Points Per 1b'),
]),
html.H6("Double: "),
html.Div([
dcc.Input(
id='Double_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=2,
debounce=False,
placeholder='Points Per 2B'),
]),
html.H6("Triple: "),
html.Div([
dcc.Input(
id='Triple_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=3,
debounce=False,
placeholder='Points Per 3B'),
]),
html.H6("HR: "),
html.Div([
dcc.Input(
id='HR_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=6,
debounce=False,
placeholder='Points Per HR'),
]),
html.H6("Runs: "),
html.Div([
dcc.Input(
id='R_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=1,
debounce=False,
placeholder='Points Per R'),
]),
html.H6("RBI: "),
html.Div([
dcc.Input(
id='RBI_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=1,
debounce=False,
placeholder='Points Per RBI'),
]),
html.H6("Walk: "),
html.Div([
dcc.Input(
id='BB_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=1,
debounce=False,
placeholder='Points Per BB'),
]),
html.H6("Intentional Walk: "),
html.Div([
dcc.Input(
id='IBB_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=1,
debounce=False,
placeholder='Points Per IBB'),
]),
html.H6("Stolen Base: "),
html.Div([
dcc.Input(
id='SB_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=1,
debounce=False,
placeholder='Points Per SB'),
]),
html.H6("Caught Stealing: "),
html.Div([
dcc.Input(
id='CS_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=-1,
debounce=False,
placeholder='Points Per CS'),
]),
html.H6("Strike Out: "),
html.Div([
dcc.Input(
id='SO_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=-1,
debounce=False,
placeholder='Points Per SO'),
]),
# Missing Stats:
# Cycle, GS Hr, and Errors
], width=1, style={'margin-left': '2%', 'margin-right': '0.5%'}), # End Batting Point Col
dbc.Col( [
html.H6(" "),
html.H6(" "),
html.H6("Pitching: "),
html.H6("Games Started: "),
html.Div([
dcc.Input(
id='GS_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=0,
debounce=False,
placeholder='Points Per GS'),
]),
html.H6("Complete Game: "),
html.Div([
dcc.Input(
id='CG_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=10,
debounce=False,
placeholder='Points Per CG'),
]),
html.H6("Shut Outs: "),
html.Div([
dcc.Input(
id='ShO_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=5,
debounce=False,
placeholder='Points Per ShO'),
]),
html.H6("Wins: "),
html.Div([
dcc.Input(
id='W_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=5,
debounce=False,
placeholder='Points Per W'),
]),
html.H6("Loss: "),
html.Div([
dcc.Input(
id='L_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=-5,
debounce=False,
placeholder='Points Per L'),
]),
html.H6("Save: "),
html.Div([
dcc.Input(
id='SV_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=5,
debounce=False,
placeholder='Points Per SV'),
]),
html.H6("Blown Save: "),
html.Div([
dcc.Input(
id='BS_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=-5,
debounce=False,
placeholder='Points Per BS'),
]),
html.H6("Innings Pitched: "),
html.Div([
dcc.Input(
id='IP_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=3,
debounce=False,
placeholder='Points Per IP'),
]),
html.H6("Strike Outs: "),
html.Div([
dcc.Input(
id='K_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=1,
debounce=False,
placeholder='Points Per K'),
]),
html.H6("Hits Allowed: "),
html.Div([
dcc.Input(
id='H_Allow_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=-1,
debounce=False,
placeholder='Points Per Hits Allowed'),
]),
html.H6("Earned Runs Allowed: "),
html.Div([
dcc.Input(
id='ER_Allow_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=-2,
debounce=False,
placeholder='Points Per ER Allowed'),
]),
html.H6("Walks Issued: "),
html.Div([
dcc.Input(
id='BB_Allow_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=-1,
debounce=False,
placeholder='Points Per BB Issued'),
]),
html.H6("Intential Walks Issued: "),
html.Div([
dcc.Input(
id='IBB_Allow_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=-1,
debounce=False,
placeholder='Points Per IDD Issued'),
]),
html.H6("Hit Batsman: "),
html.Div([
dcc.Input(
id='HBP_Allow_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=-1,
debounce=False,
placeholder='Points Per HBP'),
]),
html.H6("Balks: "),
html.Div([
dcc.Input(
id='BK_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=-1,
debounce=False,
placeholder='Points Per BK'),
]),
html.H6("Wild Pitch: "),
html.Div([
dcc.Input(
id='WP_p',
type='number',
step=1,
min=-200,
max=200,
minLength=0,
maxLength=3,
value=-1,
debounce=False,
placeholder='Points Per WP'),
]),
# Missing Stats:
# No Hitters, Perfect Games, Quality Starts, Holds
], width=1, style={'margin-left': '0.5%', 'margin-right': '1%'}), # End Pitching Point Col
dbc.Col( [
html.Div([
# Center Large Scatter Plot
dbc.Spinner(children=[
dcc.Graph(id="scatter-plot", figure={},style={'width': '100%', 'height': '80vh'})
], size="lg", color="primary", type="grow", fullscreen=False,),
]),
dbc.Row([
# X-Axis /
dbc.Col( [
html.H6("Select X-Axis:", style={'fontSize': 11}),
# Select 'X' Axis
html.Div([
dcc.Dropdown(
id='dropdown_X',
options=[
{'label': column, 'value': column}
for column in df.columns.unique()
],
value='AB',
placeholder="X-Axis",
multi=False,
clearable=False,
),
]),
html.H6("Select Y-Axis:", style={'fontSize': 11}),
# Select 'Y' Axis
html.Div([
dcc.Dropdown(
id='dropdown_Y',
options=[
{'label': column, 'value': column}
for column in df.columns.unique()
],
value='Points',
placeholder="Y-Axis",
multi=False,
clearable=False,
),
]),
html.H6("Color Grouping:", style={'fontSize': 11}),
# Select Color Grouping
html.Div([
dcc.Dropdown(
id='dropdown_Color',
options=[
{'label': column, 'value': column}
for column in df.columns.unique()
],
value='Team',
placeholder="Color",
multi=False,
clearable=False,
),
]),
], width=3, style={'margin-left': '2%', 'margin-right': '1%'}),
# Sekect Teams
dbc.Col( [
html.H6("Select Teams:"),
# Select Teams
html.Div([
dcc.Dropdown(
id='Team_Checkbox',
multi=True,
value = [],
placeholder="Select Teams"
),
]),
html.H6("Select trendline:", style={'fontSize': 11}),
# Select Facet
html.Div([
dcc.Dropdown(
id='dropdown_trendline',
options=[
{'label': 'None', 'value': 'None'},
{'label': 'ols', 'value': 'ols'},
{'label': 'lowess', 'value': 'lowess'}
],
value=None,
placeholder="trendline",
multi=False,
clearable=False,
),
]),
html.H6("Select Facet:", style={'fontSize': 11}),
# Select Facet
html.Div([
dcc.Dropdown(
id='dropdown_facet',
options=[
{'label': 'None', 'value': 'None'},
{'label': 'Season', 'value': 'Season'},
{'label': 'Team', 'value': 'Team'},
{'label': 'Age', 'value': 'Age'},
{'label': 'Name', 'value': 'Name'},
{'label': 'League', 'value': 'lgID'},
{'label': 'Bats', 'value': 'bats'},
{'label': 'Throws', 'value': 'throws'},
{'label': 'Division', 'value': 'divID'},
{'label': 'Division Win', 'value': 'DivWin_team'},
{'label': 'Wild Card Win', 'value': 'WCWin_team'},
{'label': 'League Win', 'value': 'LgWin_team'},
{'label': 'World Series Win', 'value': 'WSWin_team'}
],
value=None,
placeholder="facet",
multi=False,
clearable=False,
),
]),
], style={'margin-left': '1%', 'margin-right': '1%'}),
# Select Players
dbc.Col( [
html.H6("Select Players: "),
# Select Players
html.Div([
dcc.Dropdown(
id='Player_Checkbox',
multi=True,
value = [],
placeholder="Select Players"
),
]),
html.H6("Position Eligibility: "),
# Select Position Eligibility
html.Div([
dcc.Input(
id='input_pos_appear',
type='number',
step=1,
min=0,
max=200,
minLength=0,
maxLength=3,
value=20,
debounce=False,
placeholder='Position Eligibility',
),
]),
html.H6("Select Positions: "),
# Select Positions
html.Div([
dcc.Dropdown(
id='Positions_Checkbox',
multi=True,
options=[
{'label': 'Pitcher', 'value': 'G_p'},
{'label': 'Catcher', 'value': 'G_c'},
{'label': '1st Baseman', 'value': 'G_as_1B'},
{'label': '2nd Baseman', 'value': 'G_as_2B'},
{'label': '3rd Baseman', 'value': 'G_as_3B'},
{'label': 'ShortStop', 'value': 'G_as_SS'},
{'label': 'Left Fielder', 'value': 'G_as_LF'},
{'label': 'Center Fielder', 'value': 'G_as_CF'},
{'label': 'Right Fielder', 'value': 'G_as_RF'},
{'label': 'Outfielder', 'value': 'G_as_OF'},
{'label': 'Pitch Hitter', 'value': 'G_as_PH'},
{'label': 'Pitch Runner', 'value': 'G_as_pr'},
{'label': 'Designated Hitter', 'value': 'G_as_DH'}
],
value = [],
placeholder="Select Positions"
),
]),
], style={'margin-left': '1%', 'margin-right': '2%'}),
]),
], width= 8, style={'margin-left': '0.5%', 'margin-right': '2%'}), # Center Graph
]), # End Points Row
#DataTable
dbc.Row([
# DataTable
dbc.Col( [
dbc.Spinner(children=[
# Data Table
dash_table.DataTable(
id='datatable',
filter_action="native",
sort_action="native",
sort_mode="multi",
columns= [{"name": i, "id": i} for i in dttable],
style_table={
'maxHeight': '500px',
'maxWidth': '90%',
'overflowY': 'scroll',
'overflowX': 'scroll',
'border': 'thin lightgrey solid'
}
)
], size="lg", color="primary", type="grow", fullscreen=False,),
], width=12, style={'margin-left': '2%', 'margin-right': '2%','margin-top': '2%','margin-bottom': '2%',}), # end Table
]),
# Zscore Histogram
dbc.Row([
dbc.Col([
dbc.Spinner(children=[
dcc.Graph(id="ZScore-plot", figure={},style={'width': '100%', 'height': '80vh'})
], size="lg", color="primary", type="grow", fullscreen=False,),
]),
]),
]) # End html.div
]) # End App Layout
#---------------------------------------------------------------
@app.callback(
Output("Player_Checkbox", "options"),
[Input(component_id='Season',component_property='value'),
Input(component_id='Player_Checkbox',component_property='value'),
Input(component_id='Team_Checkbox',component_property='value')],
[State("Player_Checkbox", "options")])
def player_options(Season, Player_Checkbox, Team_Checkbox, options):
dff = df
# print(Season[0])
Smin = Season[0] # - From Range Slider
Smax = Season[1] # - From Range Slider
dff = dff[(dff.Season >= Smin) & (dff.Season <= Smax)]
if Team_Checkbox == []:
dff = dff
else:
dff = dff[dff.Team.apply(lambda x: any(item for item in Team_Checkbox if item in x))]
playerList = dff.Name.unique()
# print(teamList)
options = options=[
{'label': i, 'value': i}
for i in playerList]
# print(options)
return options
@app.callback(
Output("Team_Checkbox", "options"),
[Input(component_id='Season',component_property='value'),
Input(component_id='Player_Checkbox',component_property='value'),
Input(component_id='Team_Checkbox',component_property='value')],
[State("Team_Checkbox", "options")])
def team_options(Season, Player_Checkbox, Team_Checkbox, options):
dff = df
# print(Season[0])
Smin = Season[0] # - From Range Slider
Smax = Season[1] # - From Range Slider
dff = dff[(dff.Season >= Smin) & (dff.Season <= Smax)]
TeamList = dff.Team.unique()
# print(teamList)
options = options=[
{'label': i, 'value': i}
for i in TeamList]
# print(options)
return options
@app.callback(
Output("scatter-plot", "figure"),
Output("datatable", "data"),
Output("ZScore-plot", "figure"),
[Input(component_id='dropdown_X', component_property='value'),
Input(component_id='dropdown_Y', component_property='value'),
Input(component_id='dropdown_Color', component_property='value'),
Input(component_id='Season',component_property='value'),
Input(component_id='Player_Checkbox',component_property='value'),
Input(component_id='Team_Checkbox',component_property='value'),
Input(component_id='AB_p',component_property='value'),
Input(component_id='H_p',component_property='value'),
Input(component_id='Single_p',component_property='value'),
Input(component_id='Double_p',component_property='value'),
Input(component_id='Triple_p',component_property='value'),
Input(component_id='HR_p',component_property='value'),
Input(component_id='R_p',component_property='value'),
Input(component_id='RBI_p',component_property='value'),
Input(component_id='BB_p',component_property='value'),
Input(component_id='IBB_p',component_property='value'),
Input(component_id='SB_p',component_property='value'),
Input(component_id='CS_p',component_property='value'),
Input(component_id='SO_p',component_property='value'),
Input(component_id='GS_p',component_property='value'),
Input(component_id='CG_p',component_property='value'),
Input(component_id='ShO_p',component_property='value'),
Input(component_id='W_p',component_property='value'),
Input(component_id='L_p',component_property='value'),
Input(component_id='SV_p',component_property='value'),
Input(component_id='BS_p',component_property='value'),
Input(component_id='IP_p',component_property='value'),
Input(component_id='K_p',component_property='value'),
Input(component_id='H_Allow_p',component_property='value'),
Input(component_id='ER_Allow_p',component_property='value'),
Input(component_id='BB_Allow_p',component_property='value'),
Input(component_id='IBB_Allow_p',component_property='value'),
Input(component_id='HBP_Allow_p',component_property='value'),
Input(component_id='BK_p',component_property='value'),
Input(component_id='WP_p',component_property='value'),
Input(component_id='dropdown_facet', component_property='value'),
Input(component_id='dropdown_trendline', component_property='value'),
Input(component_id='Positions_Checkbox',component_property='value'),
Input(component_id='input_pos_appear',component_property='value')])