Adds two charts to the per-account transactions view: a stacked bar chart of monthly totals and a pie chart of overall totals, both grouped by booking text, so recurring bookings (rent, subscriptions, etc.) are visible at a glance. Chart components are keyed on the account id so switching accounts remounts them instead of reusing a stale Plotly instance.
8 lines
211 B
Text
8 lines
211 B
Text
@if (config is not null && layout is not null)
|
|
{
|
|
<PlotlyChart style="height: 400px; min-height: 300px" @bind-Config="config" @bind-Layout="layout" @bind-Data="data" @ref="chart" />
|
|
}
|
|
else
|
|
{
|
|
<Loading/>
|
|
}
|