ChartPanel

Documentation for eth_defi.vault_report.report.ChartPanel Python class.

class ChartPanel

Bases: object

Header and footer texts of a branded chart panel.

The Plotly figures carry no titles of their own: Kaleido renders only the plot, and eth_defi.vault_report.branding.compose_chart_panel() draws these texts with Pillow into the branded frame, so every chart in the post has the same header, footer and margins whatever its Plotly layout. Following the writing rules in README-blog-post-outline.md, the subtitle carries the selection rules that the title, axes and legend do not show, which is why most sections need no criteria notes.

Attributes summary

title

Panel title, heading case

subtitle

One-line description of the data

link

Live chart page shown in the footer, without https://

Methods summary

__init__(title, subtitle, link)

title: str

Panel title, heading case

subtitle: str

One-line description of the data

link: str

Live chart page shown in the footer, without https://

__init__(title, subtitle, link)
Parameters
  • title (str) –

  • subtitle (str) –

  • link (str) –

Return type

None