            
                  const setLabels = (values) => {
                    setLabel("min", values[0]);
                    setLabel("max", values[1]);
                  }
                  
                  
                  $('#ex2').slider().on('slide', function(ev) {
                    setLabels(ev.value);
                  });
                  setLabels($('#ex2').attr("data-value").split(","));
                
                  let dates = {{ df_dates | safe }};
                  const setL