@@ -14,10 +14,11 @@ let annotationsParams = []
1414
1515const updatemenus = [
1616 {
17+ active: 0 ,
1718 buttons: [
1819 {
19- args: [' annotations' , [ ... annotationsEvents, ... annotationsModes, ... annotationsParams] ],
20- label: ' Events + Params ' ,
20+ args: [' annotations' , annotationsModes],
21+ label: ' Nothing ' ,
2122 method: ' relayout'
2223 },
2324 {
@@ -26,8 +27,8 @@ const updatemenus = [
2627 method: ' relayout'
2728 },
2829 {
29- args: [' annotations' , annotationsModes],
30- label: ' Nothing ' ,
30+ args: [' annotations' , [ ... annotationsEvents, ... annotationsModes, ... annotationsParams] ],
31+ label: ' Events + Params ' ,
3132 method: ' relayout'
3233 }
3334 ],
@@ -808,13 +809,13 @@ export default {
808809 )
809810 }
810811 Plotly .relayout (this .gd , {
811- annotations: [ ... annotationsEvents, ... annotationsModes] ,
812+ annotations: annotationsModes,
812813 updatemenus: updatemenus
813814 })
814- updatemenus[0 ].buttons [0 ].args = [' annotations' , [... annotationsEvents, ... annotationsModes,
815- ... annotationsParams]]
815+ updatemenus[0 ].buttons [0 ].args = [' annotations' , annotationsModes]
816816 updatemenus[0 ].buttons [1 ].args = [' annotations' , [... annotationsEvents, ... annotationsModes]]
817- updatemenus[0 ].buttons [2 ].args = [' annotations' , annotationsModes]
817+ updatemenus[0 ].buttons [2 ].args = [' annotations' , [... annotationsEvents, ... annotationsModes,
818+ ... annotationsParams]]
818819 },
819820 addParamChanges () {
820821 let i = - 300
@@ -859,16 +860,15 @@ export default {
859860 i = - 300
860861 }
861862 }
863+ updatemenus[0 ].active = 0
862864 Plotly .relayout (this .gd , {
863865 annotations:
864866 [
865- ... annotationsEvents,
866- ... annotationsModes,
867- ... annotationsParams
867+ ... annotationsModes
868868 ],
869869 updatemenus: updatemenus
870870 })
871- updatemenus[0 ].buttons [0 ].args =
871+ updatemenus[0 ].buttons [2 ].args =
872872 [
873873 ' annotations' ,
874874 [
0 commit comments