Skip to main content

Attributes reference

Every attribute in the tag DSL, with a one-line description and where it's covered.

The <compute> tags have attributes of their own (v, sep, as, width, fill, from, to, size, pattern, default). Each one belongs to a single tag and is covered where that tag is explained — see the compute reference.

Environment & config

AttributeWhat it setsSee
version / vThe DSL version the file requiresConfiguration
countNumber of recordsDeterminism
seedRNG seed, for reproducibilityDeterminism
localLocale for template dataTemplate
injectCustom interpolation markerOutput & formatting
modememory / disk — which engine familyLarge outputs
engine1 / 2 / 3 — force one engine (advanced)Large outputs
commentFree-form commentConfiguration

Sequences & dependencies

AttributeWhat it setsSee
nameOn <sequence>: its name. On <gen>: makes it a field, Sequence.Field. On <data> inside a sequence: a constant field, the only one that costs no drawSequences
parentParent filter, Parent.ValueHierarchical dependencies
uniqCombination that must be unique across all rowsUnique values
on / isSubject / branch key for <switch>Switch
filterOn <gen type="pool">: which members this row may draw fromCoherent records
ofOn <gen type="running">: the column to accumulateRunning total
resetOn <gen type="running">: a column whose change restarts the totalRunning total

Generator values

AttributeWhat it setsSee
typeWhich generator to useGenerators
valueThe generator's main value (type-specific)Generators
percentExact distribution of the valuesText
accumulateReplace a repeat list with its running total, or say how a running column accumulatesSeveral values in a cell
alphabetNamed Unicode alphabetSymbol
lengthOutput length or widthNumber
first_zeroAllow a leading zeroNumber
stepCounter stepCounters
regex_max_lengthLength cap for a regexRegex
include / excludeKeep or drop values from the poolNumber
decimalsDigits after the decimal pointNumber
oldest / youngestBirthday age windowDate
formatDate output formatDate
from / toRange endpoints, given separatelyDate
precisionStep size for a date-time rangeDate
rangeDate range for date.rangeTemplate

Statistical shape

AttributeWhat it setsSee
distributionNamed distribution (normal, zipf, …)Distributions
min / maxClip the drawn values to a rangeDistributions
missingShare of rows left emptyMissing data
missing_asHow an empty cell is writtenMissing data
anomalyShare of rows turned into outliersAnomalies
anomaly_factorHow far an outlier is pushedAnomalies
anomaly_flagAnswer column that marks the outliersAnomalies

Each distribution takes its own parameters, and they are only read when distribution= names that one. Every distribution also accepts decimals, min and max. Each is explained, with a histogram, on the distributions guide.

distribution=ParametersWhat they mean
normalmean sdThe centre and the spread
lognormalmeanlog sdlogThe centre and spread of the logarithm — the value itself is skewed right
exponentialrateEvents per unit of time; the mean is 1/rate
paretoalpha xminTail thickness, and the smallest possible value
weibullshape scaleshape below 1 = early failures, above 1 = wear-out; scale sets the typical lifetime
poissonlambdaAverage count per interval (capped at 700)
zipfn sHow many ranks, and how steeply they fall off
gammashape scaleTotal wait for shape events that each take scale on average
betaalpha betaPull toward 1 and toward 0 — the result is between 0 and 1

Timeseries

AttributeWhat it setsSee
baseStarting level of the seriesTimeseries
trendDrift per stepTimeseries
periodLength of one seasonal cycleTimeseries
amplitudeHeight of the seasonal swingTimeseries
noiseRandom jitter added on topTimeseries

Pattern (a drawing as the source)

AttributeWhat it setsSee
pointsInline x,y pairs instead of a filePattern
upper / lowerTwo boundary curves — a corridorPattern
modesignal (a trajectory) / density (a distribution)Pattern
y_rangemin..max — the vertical scalePattern
interplinear / smooth / step between pointsPattern
spreadWiden the line into a band of ±NPattern
ink_thresholdHow dark a PNG pixel has to be to count as inkPattern

mode is really two different attributes that share a name: on <env> it picks the engine family; on a pattern generator it picks what you're asking the drawing for.

Files & CSV

AttributeWhat it setsSee
srcPath to a data fileFile
columnCSV column (name or number)File
headerSkip the first CSV rowFile
delimiterCSV separatorFile
rowLinked-row keyFile
weightFrequency column for weighted rowsCoherent data

HTTP service

AttributeWhat it setsSee
srcService URL (the same attribute as the file path above)HTTP service
inSequence whose value is sent with each rowHTTP service
on_errorfail (default) or empty when a request failsHTTP service
timeoutSeconds to wait for a response (default 30)HTTP service

Output & formatting

AttributeWhat it setsSee
ifDisplay condition (an expression)Output & formatting
pairPaired marker for a literal </data>Output & formatting
maskDisplay mask (x/w/*)Masks & case
caseLetter case (upper/lower/…)Masks & case
orderValue order (random / sequential)Generators
cycleWith sequential: cycle or raise an errorGenerators
repeat / separatorSeveral values in one cellMultiple values
eachRepeat a line for each list elementRelational tables
flagAnswer column that marks <mix> outliersMix