render_sparkline_png

Documentation for eth_defi.research.sparkline.render_sparkline_png function.

render_sparkline_png(vault_prices_df, *, width=300, height=300, line_width=2, margin_ratio=50, line_color='#22B452', bg_color='#282827', x_axis_range=None)

Render a deterministic two-times-supersampled Pillow PNG.

Parameters
Returns

Stable PNG bytes.

Return type

bytes