@@ -90,7 +90,7 @@ window.dash_clientside = Object.assign({}, window.dash_clientside, {
90
90
const layout_axis_anchors = getLayoutAxisAnchors ( main_graphDiv . layout ) ;
91
91
92
92
// Use the maingraphDiv its layout to obtain a list of a list of all shared (x)axis names
93
- // in practice, these are the xaxis names that are linked to each other (i.e. the inner list is the
93
+ // in practice, these are the xaxis names that are linked to each other (i.e. the inner list is the
94
94
// xaxis names of the subplot columns)
95
95
// e.g.: [ [xaxis1, xaxis2], [xaxis3, xaxis4] ]
96
96
let shared_axes_list = _ . chain ( main_graphDiv . layout )
@@ -127,7 +127,7 @@ window.dash_clientside = Object.assign({}, window.dash_clientside, {
127
127
} ;
128
128
129
129
// iterate over the selected data range
130
- console . log ( ' selected data range' , selectedData . range ) ;
130
+ console . log ( " selected data range" , selectedData . range ) ;
131
131
for ( const anchor_key in selectedData . range ) {
132
132
const selected_range = selectedData . range [ anchor_key ] ;
133
133
// Obtain the anchor key of the orthogonal axis (x or y), based on the coarse graphdiv anchor pairs
@@ -157,6 +157,7 @@ window.dash_clientside = Object.assign({}, window.dash_clientside, {
157
157
Object . keys ( relayout ) . length > 0 ? Plotly . relayout ( main_graphDiv , relayout ) : null ;
158
158
return mainFigID ;
159
159
} ,
160
+
160
161
main_to_coarse : function ( mainRelayout , coarseFigID , mainFigID ) {
161
162
const coarse_graphDiv = getGraphDiv ( coarseFigID ) ;
162
163
const main_graphDiv = getGraphDiv ( mainFigID ) ;
@@ -180,6 +181,8 @@ window.dash_clientside = Object.assign({}, window.dash_clientside, {
180
181
} ;
181
182
} ;
182
183
184
+ // console.log("main to coarse", mainRelayout);
185
+
183
186
// Base case; no selections yet on the coarse graph
184
187
if ( ! currentSelections ) {
185
188
// if current selections is None
@@ -220,11 +223,9 @@ window.dash_clientside = Object.assign({}, window.dash_clientside, {
220
223
) {
221
224
performed_update = true ;
222
225
if (
223
- // mainRelayout[x_axis_key + ".showspikes"] === false &&
224
- // mainRelayout[y_axis_key + ".showspikes"] === false
225
- // NOTE: for some reason, showspikes info is only availabel for the xaxis & yaxis keys
226
- mainRelayout [ "xaxis.showspikes" ] === false &&
227
- mainRelayout [ "yaxis.showspikes" ] === false
226
+ // NOTE: for some reason, showspikes info is only available for the xaxis & yaxis keys
227
+ _ . has ( mainRelayout , "xaxis.showspikes" ) &&
228
+ _ . has ( mainRelayout , "yaxis.showspikes" )
228
229
) {
229
230
// reset axis -> we use the coarse graphDiv layout
230
231
x_range = coarse_graphDiv . layout [ x_axis_key ] . range ;
0 commit comments