code: def add_timeseries(
      fig, ts, color="green", name="time series", showlegend=False
  ):
      timestamps = ts.index
  
      trace = go.Scatter(
          name=name,
          x=timestamps,
          y=ts[ts.columns[0]],
          mode="lines",
          line=dict(color=color),
          showlegend=showlegend,
      )
  
      fig.add_trace(trace)
  
file_path: AIX360/examples/tsice/plots.py
imports: from typing import Union
  import numpy
  import pandas
  from sklearn.linear_model import LinearRegression
label_desc: Use image node_id 1 for calling a global function with example usage: add_timeseries(fig, ts, color, name, showlegend) without return types