Chartsv26.10.18
Kits

Analytics kits

Four domain kits and the table kit - fixed income, portfolio, swaps and options maths with the tables and figures that render them, each on its own page.

The kits add the maths and the ready-made analytic views that fixed income, portfolio, swaps and option workflows need on top of the chart engine. Every kit is a separate package with no runtime dependencies: install only what you use. The table kit is the table layer of the core and the React binding, so it needs no extra package.

KitPackageHighlightsPage
Fixed income@unifin/chart-kit-bondsYield and price maths, duration and convexity, accrual, yield curve with spreads, maturity ladder, coupon timelineFixed income kit
Portfolio@unifin/chart-kit-portfolioReturns, drawdown, volatility, Sharpe, Sortino, beta, benchmark curve, underwater chart, allocation views, monthly heatmap, risk figuresPortfolio kit
Swaps@unifin/chart-kit-swapsAccrual schedule of both legs (ACT/365 and 30/360), forward rates from a discount curve, present value, par swap rate, cumulative PV curve, ladder and net-flow paintersSwaps kit
Options@unifin/chart-kit-optionsBlack-Scholes price and greeks, implied volatility, multi-leg payoff at expiry and now, greeks profiles, smile and surface, open interest by strikeOptions kit
Table@unifin/chart-core + @unifin/chart-reactFigure columns, histogram and brush cells, group totals, row journal, export, and a table that drives the chart next to itTable kit

All kits render through the same analytic axis of the core: a numeric scale (yield, price, percent) or a categorical scale (strikes, sectors, months) with no time dependency.

Try the kits live

Four live panels below paint the real kit output - the sliders and checkboxes call the same public painters and maths functions you would:

Kits explorer - live interaction, zoom, legend, tables
Theme
Fixed income - yield curve
Drag to pan, wheel to zoom, click a point to pin it
Portfolio - benchmark curve and drawdown
Hover for values, click to pin, double click to reset
Swaps - legs, net flows and the cumulative present value
100M notional, 5y pay-fixed, semiannual - fixed leg -21.9M, floating leg 22.1M, net 0.3M, par rate 5.06% - 10 payment dates - zoom x1.00
Options - payoff, volatility smile and the chain

How a kit is built

A kit is a headless model plus painters. The model turns input rows into numbers a panel can print (a price, a duration, a set of risk contributions, a schedule, a payoff curve), and the painters draw those numbers on the analytic axis of the core. Nothing in a kit touches the DOM, so the same model feeds a React panel, a terminal, an export or a test.

LayerOwns
@unifin/chart-coreThe analytic axis, the analytic painters (curve, band, points, markers, bars, heatmap), the table model, the theming tokens
A kitThe domain maths, the row builders and the kit-specific painters
@unifin/chart-reactThe table widget, the UI kit and the PRO panels that host a kit model
The hostPointer state, windows, live data and the layout of the surface

Editions and bundles

The kits are optional bundles on top of the core: they reuse the same theme tokens, the same accessibility rules and the same rendering pipeline. A page that never imports a kit does not pay for it - bundlers keep the unused packages out of the build. Kit versions move in lockstep with the library and are listed on Versions.

See also

On this page