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-range
  • extreme-small
  • extreme-large
  • positive-domain
  • budget:marks<=6
Graflume.priceBlocks() Canvas 2D
Control help

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.

Use Tab to reach a control and Enter or Space to activate it. With the chart focused, use plus and minus to zoom and arrow keys to pan.

Auto placement compares perimeter candidates and avoids the plot, legend, and other callouts when possible. Explicit placement is preserved with only necessary safety correction. Callout text wraps safely inside the bubble. Long unbroken tokens are visually shortened within the line budget, while the complete source text remains available to assistive technology.

Loading

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"
  }
}