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.
15 lines
447 B
C#
15 lines
447 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Schaad.Accounting.Datasets.Charts;
|
|
|
|
namespace Schaad.Accounting.Interfaces
|
|
{
|
|
public interface IChartService
|
|
{
|
|
Task<IReadOnlyList<DataSerie>> GetExpensesPerMonthAsync();
|
|
|
|
Task<IReadOnlyList<DataSerie>> GetBookingTextExpensesPerMonthAsync(string accountId);
|
|
|
|
Task<IReadOnlyList<CategoryTotal>> GetBookingTextTotalsAsync(string accountId);
|
|
}
|
|
}
|