class_docstr: Displays charts from downloaded data, in a single line code call. Ideal for quickly generating charts from sources
  including Bloomberg, Quandl, ALFRED/FRED etc.
class_docstr_tok: ["Displays","charts","from","downloaded","data",",","in","a","single","line","code","call",".","Ideal","for","quickly","generating","charts","from","sources","including","Bloomberg",",","Quandl",",","ALFRED\/FRED","etc","."]
code: def plot_chart_with_ret_stats(
      self,
      df=None,
      chart_file=None,
      chart_type="line",
      title="",
      height=400,
      width=600,
      scale_factor=-1,
      ann_factor=252,
      source="Web",
      brand_label="Cuemacro",
      display_brand_label=True,
      plotly_plot_mode="offline_png",
  ):
      style = Style(
          title=title,
          chart_type=chart_type,
          html_file_output=chart_file,
          scale_factor=scale_factor,
          height=height,
          width=width,
          file_output=datetime.date.today().strftime("%Y%m%d")
          + " "
          + title
          + ".png",
          plotly_plot_mode=plotly_plot_mode,
          source=source,
          brand_label=brand_label,
          display_brand_label=display_brand_label,
      )
  
      returns_df = df / df.shift(1) - 1.0
  
      ret_stats = RetStats(returns_df=returns_df, ann_factor=ann_factor)
  
      df.columns = ret_stats.summary()
  
      return self._chart.plot(df, style=style), df
  
file_path: finmarketpy/finmarketpy/economics/quickchart.py
imports: from chartpy import Chart, Style, ChartConstants
  from findatapy.util.dataconstants import DataConstants
  from findatapy.market import Market, MarketDataRequest, MarketDataGenerator
  from findatapy.timeseries import Calculations, RetStats
  import datetime
  from datetime import timedelta
label_desc: Use image node_id 3 for calling the QuickChart obj's underlying member method code with example usage: obj.plot_chart_with_ret_stats(df, chart_file, chart_type, title, height, width, scale_factor, ann_factor, source, brand_label, display_brand_label, plotly_plot_mode) and returns: self,  df