class_docstr: TimeSeries plot, displaying each column in the input dataframe as a curve over time.
class_docstr_tok: ["TimeSeries","plot",",","displaying","each","column","in","the","input","dataframe","as","a","curve","over","time","."]
code: def _base_opts(self) -> dict:
      rangeselector = {}
      if self.rangeselector:
          rangeselector = {
              "rangeselector": {
                  "buttons": [
                      {"step": "all"},
                      {
                          "step": "year",
                          "count": 1,
                          "label": "YTD",
                          "stepmode": "todate",
                      },
                      {
                          "step": "year",
                          "count": 2,
                          "label": "2y",
                          "stepmode": "backward",
                      },
                      {
                          "step": "year",
                          "count": 1,
                          "label": "1y",
                          "stepmode": "backward",
                      },
                      {
                          "step": "month",
                          "count": 6,
                          "label": "6m",
                          "stepmode": "backward",
                      },
                  ],
                  "y": 1.02,
                  "yanchor": "bottom",
              },
          }
  
      return {
          "legend": self.LEGEND_POSITION[self.legend_position],
          "showlegend": self.show_legend,
          "xaxis": {
              "type": "date"
              if isinstance(self.df.index, pd.DatetimeIndex)
              else "-",
              **rangeselector,
              "visible": bool(self.xaxis),
              "title": self.label_xaxis,
              "tickformat": self.fmt_x,
              "rangeslider": {"visible": self.rangeslider},
              "side": self.xaxis
              if isinstance(self.xaxis, str)
              else "bottom",
          },
          "yaxis": {
              "visible": bool(self.yaxis),
              "title": self.label_yaxis,
              "tickformat": self.fmt_y,
              "side": self.yaxis
              if isinstance(self.yaxis, str)
              else "left",
          },
      }
  
file_path: tslumen/tslumen/plot/interactive/line.py
imports: from typing import Union, Optional, Any
  import pandas
  from tslumen.plot.interactive.base import VizBase, go, make_subplots
label_desc: Use image node_id 2 for calling the TS obj's underlying member method code with example usage: obj._base_opts() and returns: dict