@@ -523,12 +523,10 @@ def __eq__(self, other):
523
523
colors = colors and cycle (_as_list (colors )) or (
524
524
cycle ([next (ohlc_colors )]) if is_overlay else colorgen ())
525
525
legend_label = LegendStr (value .name )
526
-
527
526
indicator_max = value .df .max (axis = 'columns' )
528
527
indicator_min = value .df .min (axis = 'columns' )
529
528
source .add (indicator_max , f'indicator_{ i } _range_max' )
530
- source .add (indicator_min ,f'indicator_{ i } _range_min' )
531
-
529
+ source .add (indicator_min , f'indicator_{ i } _range_min' )
532
530
for j , arr in enumerate (value , 1 ):
533
531
color = next (colors )
534
532
source_name = f'{ legend_label } _{ i } _{ j } '
@@ -619,9 +617,8 @@ def __eq__(self, other):
619
617
indicator_ranges = {}
620
618
for idx ,indicator in enumerate (indicator_figs ):
621
619
indicator_range_key = f'indicator_{ idx } _range'
622
- indicator_ranges .update ({indicator_range_key :indicator .y_range })
623
- custom_js_args .update ({'indicator_ranges' :indicator_ranges })
624
-
620
+ indicator_ranges .update ({indicator_range_key : indicator .y_range })
621
+ custom_js_args .update ({'indicator_ranges' : indicator_ranges })
625
622
fig_ohlc .x_range .js_on_change ('end' , CustomJS (args = custom_js_args ,
626
623
code = _AUTOSCALE_JS_CALLBACK ))
627
624
0 commit comments