Combined Profit and Loss view with chart, summaries, and table
The ProfitAndLossView component provides a complete Profit and Loss experience in a single component. It combines the P&L chart with summaries, a month picker, and the tabular report. It also includes a sidebar panel for detailed revenue/expense breakdowns.
Copy
Ask AI
import { ProfitAndLossView } from '@layerfi/components'<ProfitAndLossView />{/* Hide the chart, only show the table */}<ProfitAndLossView hideChart />{/* Hide the table, only show the chart */}<ProfitAndLossView hideTable />{/* With string overrides */}<ProfitAndLossView stringOverrides={{ profitAndLossTable: { grossProfitLabel: 'Gross Income', }, }}/>