render_sparkline_gradient

Documentation for eth_defi.research.sparkline.render_sparkline_gradient function.

render_sparkline_gradient(vault_prices_df, width=300, height=300, ffill=True, line_color='#22B452', bg_color='#282827', line_width=2, margin_ratio=50)

Render a sparkline chart with green-to-black gradient fill.

Parameters
  • vault_prices_df (pandas.core.frame.DataFrame) –

  • width (int) –

  • height (int) –

  • line_width (int) –

Return type

matplotlib.figure.Figure