Skip to content
DezfilDocsv0.1.0

API and agentsAPI reference

FillPaint

object

A color paint, serving the fill and the data-driven outline: {type: 'constant', color} · categorical {attribute, palette, map: [{value, color}], other} · ramp {type: 'quantile', attribute, palette, method: quantile|equal|natural|custom, breaks, colors, optional classes} (breaks strictly ascending, one fewer than colors) · continuous {type: 'continuous', attribute, palette, domain: [low, high], stops, optional clamp: [low, high], log, center, positions, reversed} (values interpolate smoothly along the stops over the domain; clamp narrows the effective domain, values outside take the end colors; log needs a strictly positive effective domain; center splits the ramp for diverging reads and starts at the mean when a diverging palette is applied). Colors are {r, g, b, a}. Computed breaks come back as nice rounded values. To set custom class boundaries, write the ramp with method: 'custom', your breaks, and baseMethod naming the method they derived from (quantile|equal|natural) — a later class-count change recomputes from it. When a low-cardinality result can realize fewer visible classes, classes remembers the requested count.

  • typestring

Dezfil · Apache-2.0docs from 7439201b