Graflume · Alpha
Price blocks · Edge-case application
Focus on price movement rather than time by drawing fixed-size rising and falling blocks. Exercise numeric range, sparse structure, and large inputs with valid data. Each tab materializes data only when needed and never silently repairs invalid values.
Chart family · Specialized families
Price blocks
Focus on price movement rather than time by drawing fixed-size rising and falling blocks.
- Quick API
priceBlocks()- Browser snapshot
graflume/complete- mark
renko- Presets
- 5
Edge cases
Numeric range, irregular structure, and data volume
Exercise numeric range, sparse structure, and large inputs with valid data. Each tab materializes data only when needed and never silently repairs invalid values.
Wide numeric range
Mix zero, very small finite values, and very large finite values to verify automatic domains, precision, and stable geometry. NaN and Infinity remain intentionally invalid. It applies 2 data-integrity rules that preserve finite values and axis domains.
StatusLoading
extreme-rangeextreme-smallextreme-largepositive-domainbudget:marks<=6
Loading
Wide numeric range · Row data
Row data and zero-copy TypedArray columns share one data contract.
datetemporal | closequantitative |
|---|---|
| 2026-01-01 | 5.150000000000001e-10 |
| 2026-02-01 | 9.9e-07 |
| 2026-03-01 | 1.03 |
| 2026-04-01 | 990 |
| 2026-05-01 | 1.03e+06 |
| 2026-06-01 | 1.98e+09 |
Browser API · Portable schema
Browser API
Graflume.priceBlocks()
const data = [
{
"close": 5.150000000000001e-10,
"date": "2026-01-01",
"high": 5.253000000000001e-10,
"low": 4.949e-10,
"open": 5.05e-10,
"value": 5.150000000000001e-10
},
{
"close": 9.9e-7,
"date": "2026-02-01",
"high": 0.0000010302,
"low": 9.702e-7,
"open": 0.0000010099999999999999,
"value": 9.9e-7
},
{
"close": 1.03,
"date": "2026-03-01",
"high": 1.0506,
"low": 0.9898,
"open": 1.01,
"value": 1.03
},
{
"close": 990,
"date": "2026-04-01",
"high": 1030.2,
"low": 970.1999999999999,
"open": 1010,
"value": 990
},
{
"close": 1030000,
"date": "2026-05-01",
"high": 1050600,
"low": 989800,
"open": 1010000,
"value": 1030000
},
{
"close": 1980000000,
"date": "2026-06-01",
"high": 2060400000,
"low": 1940400000,
"open": 2020000000,
"value": 1980000000
}
];
const options = {
"accessibility": {
"description": "A coherent price path reveals regimes without fabricated independent bars. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Price blocks"
},
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"interaction": {
"hover": true,
"tooltip": {
"fields": [
{
"dateStyle": "long",
"field": "date",
"format": "date",
"label": "Date",
"timeZone": "UTC"
},
{
"field": "close",
"format": "number",
"label": "Close"
},
{
"field": "brickStart",
"format": "number",
"label": "Brick start"
},
{
"field": "brickEnd",
"format": "number",
"label": "Brick end"
},
{
"field": "brickSize",
"format": "number",
"label": "Brick size"
}
],
"title": "Price blocks",
"trigger": "mark"
}
},
"locale": "en",
"title": {
"subtitle": "edge case · range",
"text": "Price blocks"
},
"width": "container",
"x": {
"field": "date",
"title": "Trading day",
"type": "temporal"
},
"y": {
"field": "close",
"title": "Price",
"type": "quantitative"
}
};
Graflume.priceBlocks('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "A coherent price path reveals regimes without fabricated independent bars. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Price blocks"
},
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"interaction": {
"hover": true,
"tooltip": {
"fields": [
{
"dateStyle": "long",
"field": "date",
"format": "date",
"label": "Date",
"timeZone": "UTC"
},
{
"field": "close",
"format": "number",
"label": "Close"
},
{
"field": "brickStart",
"format": "number",
"label": "Brick start"
},
{
"field": "brickEnd",
"format": "number",
"label": "Brick end"
},
{
"field": "brickSize",
"format": "number",
"label": "Brick size"
}
],
"title": "Price blocks",
"trigger": "mark"
}
},
"locale": "en",
"title": {
"subtitle": "edge case · range",
"text": "Price blocks"
},
"width": "container",
"x": {
"field": "date",
"title": "Trading day",
"type": "temporal"
},
"y": {
"field": "close",
"title": "Price",
"type": "quantitative"
}
}Sparse and irregular structure
Exercise only duplicate, missing, sparse, or out-of-order structures whose meaning is defined for this family. Broken references and malformed tuples are never disguised as successful examples. It applies 3 structural rules that preserve the meaning of missing, duplicate, and ordered values.
StatusLoading
irregular-structuresparseout-of-orderflat-runbudget:marks<=6
Loading
Sparse and irregular structure · Row data
Row data and zero-copy TypedArray columns share one data contract.
datetemporal | closequantitative |
|---|---|
| 2025-01-03 | 97.4641 |
| 2025-01-01 | 95.1 |
| 2025-01-04 | 98.1631 |
| 2025-01-05 | 98.4747 |
| 2025-01-06 | 98.3969 |
| 2025-01-02 | 96.4177 |
Browser API · Portable schema
Browser API
Graflume.priceBlocks()
const data = [
{
"close": 97.4641,
"date": "2025-01-03"
},
{
"close": 95.1,
"date": "2025-01-01"
},
{
"close": 98.1631,
"date": "2025-01-04"
},
{
"close": 98.4747,
"date": "2025-01-05"
},
{
"close": 98.3969,
"date": "2025-01-06"
},
{
"close": 96.4177,
"date": "2025-01-02"
}
];
const options = {
"accessibility": {
"description": "A coherent price path reveals regimes without fabricated independent bars. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Price blocks · Sparse and irregular structure"
},
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"interaction": {
"hover": true,
"tooltip": {
"fields": [
{
"dateStyle": "long",
"field": "date",
"format": "date",
"label": "Date",
"timeZone": "UTC"
},
{
"field": "close",
"format": "number",
"label": "Close"
},
{
"field": "brickStart",
"format": "number",
"label": "Brick start"
},
{
"field": "brickEnd",
"format": "number",
"label": "Brick end"
},
{
"field": "brickSize",
"format": "number",
"label": "Brick size"
}
],
"title": "Price blocks · Sparse and irregular structure",
"trigger": "mark"
}
},
"locale": "en",
"title": {
"subtitle": "edge case · structure",
"text": "Price blocks · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "date",
"title": "Trading day",
"type": "temporal"
},
"y": {
"field": "close",
"title": "Price",
"type": "quantitative"
}
};
Graflume.priceBlocks('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "A coherent price path reveals regimes without fabricated independent bars. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Price blocks · Sparse and irregular structure"
},
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"interaction": {
"hover": true,
"tooltip": {
"fields": [
{
"dateStyle": "long",
"field": "date",
"format": "date",
"label": "Date",
"timeZone": "UTC"
},
{
"field": "close",
"format": "number",
"label": "Close"
},
{
"field": "brickStart",
"format": "number",
"label": "Brick start"
},
{
"field": "brickEnd",
"format": "number",
"label": "Brick end"
},
{
"field": "brickSize",
"format": "number",
"label": "Brick size"
}
],
"title": "Price blocks · Sparse and irregular structure",
"trigger": "mark"
}
},
"locale": "en",
"title": {
"subtitle": "edge case · structure",
"text": "Price blocks · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "date",
"title": "Trading day",
"type": "temporal"
},
"y": {
"field": "close",
"title": "Price",
"type": "quantitative"
}
}High data volume
Materialize a deterministic compact recipe only when this tab opens. Graflume's performance profile bounds mark count, hit testing, and animation work for the input size. It applies 6 high-volume rules for deterministic generation and bounded output. This family materializes 100,000 logical rows and bounds rendered line points at 8,000.
StatusLoading
high-row-cardinalityall-input-rows-generatedall-input-rows-processeddeterministic-generationbounded-renderinginput:100000zoom-pan-resetbudget:line-points<=8000
- Legend:
legend · explicit · 2 channels - Point and range highlights:
highlights[] · datum · date - Custom callouts:
annotations[] · datum · date · callout · placement:auto
Loading
Browser API · Portable schema
Browser API
Graflume.priceBlocks()
const recipe = {
"cardinality": {
"axes": {},
"sourceRows": 100000,
"unit": "rows"
},
"expectedInvariants": [
"finite-json",
"price-positive"
],
"id": "ohlcv-sequence",
"initialView": {
"kind": "domain",
"zoom": 1
},
"outputBudget": {
"maximum": 8000,
"resource": "line-points"
},
"parameters": {
"explicitPerformance": true,
"family": "price-blocks",
"nullableFields": [],
"positiveFields": [],
"scenario": "volume",
"valueFields": [
"close"
],
"valuePolicy": "positive-price"
},
"preview": {
"maximumRows": 12,
"method": "quantiles"
},
"reduction": {
"method": "ohlcv-time-bins",
"stage": "bin"
},
"seed": 137495845,
"shape": "rows",
"version": 2
};
const { data, previewRows, plan } = Graflume.materializeDemoRecipe(recipe);
const options = {
"accessibility": {
"description": "Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.",
"label": "Price blocks · High data volume"
},
"annotations": [
{
"connector": {
"visible": true
},
"detail": "Attach user-authored safe text to a datum, axis range, or normalized plot position.",
"id": "manual-callout",
"placement": "auto",
"style": {
"maxWidth": 220,
"padding": 8
},
"target": {
"field": "date",
"type": "datum",
"value": "2025-05-14"
},
"text": "Point and range highlights · 2025-05-14"
}
],
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"create": {
"adaptive": {
"environment": {
"rowCount": 100000
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "date",
"type": "datum",
"value": "2025-05-14"
}
}
],
"interaction": {
"controls": {
"annotations": false,
"export": true,
"fullscreen": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
},
"playback": false,
"reset": true,
"zoom": true
},
"hover": true,
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
},
"tooltip": {
"fields": [
{
"dateStyle": "long",
"field": "date",
"format": "date",
"label": "Date",
"timeZone": "UTC"
},
{
"field": "close",
"format": "number",
"label": "Close"
},
{
"field": "brickStart",
"format": "number",
"label": "Brick start"
},
{
"field": "brickEnd",
"format": "number",
"label": "Brick end"
},
{
"field": "brickSize",
"format": "number",
"label": "Brick size"
}
],
"title": "Price blocks · High data volume",
"trigger": "mark"
}
},
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "Rising"
},
{
"id": "semantic-1",
"label": "Falling"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Price blocks · High data volume",
"visible": true
},
"locale": "en",
"padding": {
"top": 52
},
"performance": "ultra",
"theme": "graflume-light",
"title": {
"subtitle": "A coherent price path reveals regimes without fabricated independent bars · 100,000 logical rows, screen-aware detail",
"text": "Price blocks · High data volume"
},
"width": "container",
"x": {
"field": "date",
"title": "Trading day",
"type": "temporal"
},
"y": {
"field": "close",
"title": "Price",
"type": "quantitative"
}
};
Graflume.priceBlocks('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.",
"label": "Price blocks · High data volume"
},
"annotations": [
{
"connector": {
"visible": true
},
"detail": "Attach user-authored safe text to a datum, axis range, or normalized plot position.",
"id": "manual-callout",
"placement": "auto",
"style": {
"maxWidth": 220,
"padding": 8
},
"target": {
"field": "date",
"type": "datum",
"value": "2025-05-14"
},
"text": "Point and range highlights · 2025-05-14"
}
],
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"create": {
"adaptive": {
"environment": {
"rowCount": 100000
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "date",
"type": "datum",
"value": "2025-05-14"
}
}
],
"interaction": {
"controls": {
"annotations": false,
"export": true,
"fullscreen": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
},
"playback": false,
"reset": true,
"zoom": true
},
"hover": true,
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
},
"tooltip": {
"fields": [
{
"dateStyle": "long",
"field": "date",
"format": "date",
"label": "Date",
"timeZone": "UTC"
},
{
"field": "close",
"format": "number",
"label": "Close"
},
{
"field": "brickStart",
"format": "number",
"label": "Brick start"
},
{
"field": "brickEnd",
"format": "number",
"label": "Brick end"
},
{
"field": "brickSize",
"format": "number",
"label": "Brick size"
}
],
"title": "Price blocks · High data volume",
"trigger": "mark"
}
},
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "Rising"
},
{
"id": "semantic-1",
"label": "Falling"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Price blocks · High data volume",
"visible": true
},
"locale": "en",
"padding": {
"top": 52
},
"performance": "ultra",
"theme": "graflume-light",
"title": {
"subtitle": "A coherent price path reveals regimes without fabricated independent bars · 100,000 logical rows, screen-aware detail",
"text": "Price blocks · High data volume"
},
"width": "container",
"x": {
"field": "date",
"title": "Trading day",
"type": "temporal"
},
"y": {
"field": "close",
"title": "Price",
"type": "quantitative"
}
}