
Properties
ProfitAndLossChartConfig
Optional styling overrides for the chart.
CSS variables
Colors and line thickness are set with CSS variables rather thanchartConfig, since they apply to a single fixed element rather than a per-category palette.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Chart of revenue, expenses, and profit for the last 12 months.

import { ProfitAndLoss } from "@layerfi/components";
ā¦
<ProfitAndLoss>
<ProfitAndLoss.Chart />
</ProfitAndLoss>
chartConfig, since they apply to a single fixed element rather than a per-category palette.
body .Layer__component {
/* Revenue bars. Also colors the diagonal stripe pattern on the uncategorized portion of the bar. */
--bar-color-income: blue;
/* Expense bars. Also colors the diagonal stripe pattern on the uncategorized portion of the bar. */
--bar-color-expenses: red;
/* Net profit line color. Defaults to var(--color-base-1000). */
--pnl-chart-line-color: green;
/* Net profit line thickness, in pixels. Defaults to 1. */
--pnl-chart-line-stroke-width: 2;
}