Financial & gauges

ChartControl

Show prices, budgets against plan, flows and gauges on finance and operations screens.

Overview

The Blazor ChartControl draws the charts finance and operations screens need: candlestick and OHLC prices, bullet charts against target, floating ranges, Sankey flows and gauges. Use them for a trading view, a budget review or a material flow; prices bind through ChartDataPoint.Financial, and rising and falling days take the UpColor and DownColor you set.

Examples

#Candlestick and OHLC

Compare one week of BAKE prices drawn twice from the same series: candlesticks fill the open-to-close body, OHLC marks open and close with ticks.

BAKE, one week of trading
115.0125.0135.0145.0155.0 Mon Tue Wed Thu Fri
BAKE, the same week as OHLC
115.0125.0135.0145.0155.0 Mon Tue Wed Thu Fri

#Bullet, range and Sankey

Read a monthly budget against plan as bullets, a week's low-to-high temperatures as floating bars, and recycling flows as a Sankey whose bands widen with weight.

Monthly budget, spent against planned
Groceries Transport Eating out Savings
Temperature this week, low to high °C
48121620MonTueWedThuFri
Recycling, kg by bin and what it becomes
PaperCardboardGlassBottlesCansCar partsFoodCompostPlasticFleece

#Radial and linear gauges

Show one rain-barrel reading as a radial and a linear gauge from the same series; the standalone gauge controls have their own page.

Rain barrel, percent full
Same reading, linear

Documentation

The seven types on this page and what each reads from a ChartDataPoint; the full ChartControl, ChartSeries, ChartAxis and ChartLegend tables are on the Charts page. The financial, bullet, range and Sankey points are built with the static factories listed under ChartDataPoint.

ValueDescription
LinearGaugeA horizontal bar gauge drawn by GaugeVisualControl through the same branch as Gauge: a gray track, GaugeRanges as colored bands, a value bar, GaugePointers as vertical ticks, and the value printed above. Reads GaugeValue (falling back to the first point's Value, then 0) between GaugeMin and GaugeMax. Draws on a 320x105 viewBox, Height default 260px, with GaugeTickCount + 1 tick labels.
RadialGaugeThe same arc as ArcGauge plus a needle, which is drawn whether or not GaugeCircular is set. Same inputs as Gauge. 300x300 viewBox, Height default 260px.
BulletOne horizontal row per point: three fixed gray bands at 60, 85 and 100 percent of the width, a bar for the actual value (dark slate unless a point's Color, the series Color or ColorPalette entry 0 is set) and a target line (red unless ColorPalette entry 1 is set). Reads from the first series Value as actual and Value2 as target (default Value); the scale ends at 1.2 times the largest of the two; Category is not read. Draws on a 600 by max(120, rows x 60) viewBox with rows 50 apart and prints no numbers at all: no ticks, no values, only each row's Label, not cut.
CandlestickA wick from high to low and a body from open to close per point, green when close is at or above open and red otherwise, or UpColor and DownColor when set. Reads from the first series Value = open, Value2 = high, Value3 = low, Value4 = close (each defaulting to Value); DateValue, a point's Color and ColorPalette are not read. Draws on a 600x320 viewBox, Height default 320px, Y ticks fixed at 5 with one decimal, the scale from the lowest low to the highest high with no padding, every point labeled, cut at 8 characters.
OhlcA vertical high-low line with a left tick at open and a right tick at close, green or red by direction (UpColor, DownColor), from the financial branch. Same fields as Candlestick: Value open, Value2 high, Value3 low, Value4 close, first series only. 600x320 viewBox, Y ticks fixed at 5, labels cut at 8 characters.
RangeColumnDrawn by the range branch with no check on the type, so it is identical to RangeBar: vertical minimum-to-maximum bars from Value and Value2 of the first series, same colors, 600x300 viewBox, Y ticks fixed at 5, labels cut at 8 characters.
SankeyA ribbon per point from a left source node to a right target node, with curved sides, in blues unless colored: source nodes and ribbons take the series Color or ColorPalette entry 0, target nodes entry 1, and a point's Color paints its own ribbon. Reads the first series: Label is the source, Category the destination, Value the flow (ribbon height is the flow's share of 80 percent of the plot height, at least 8 units). Draws on a 650x340 viewBox, Height default 340px, labels not cut. Every flow gets its own source and target node, so a name that appears in several flows is drawn once per flow rather than merged, and the column grows by 10 units per flow without being clamped to the height.
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.