Interface AbstractFunctionDatum

Hierarchy

  • AbstractFunctionDatum

Properties

attr?: any

Additional attributes set on the svg node that represents this datum

closed?: boolean

(only if graphType: 'polyline' or graphType: 'scatter') True to close the path, for any segment of the closed area graph y0 will be 0 and y1 will be f(x)

color?: string

The color of the function to render

derivative?: DerivativeDatum

The derivative configuration

fnType?: "linear" | "implicit" | "parametric" | "polar" | "points" | "vector"

The type of function to render

graphType?: "interval" | "polyline" | "text" | "scatter"

The type of graph to render

  • polyline: uses the builtIn sampler to render a disjoint set of line segments
  • interval: uses the interval arithmetic sampler to render a disjoint set of rectangles
  • scatter: uses the builtIn sampler to render a disjoint set of points
  • text: text
id?: string

The id of the graph to render, a random id is assigned during the setup.

index?: number

The datum index

isHelper?: boolean

True if the datum is a helper function

nSamples?: number

The number of values to be taken from range to evaluate the function, note that if interval-arithmetic is used the function will be evaluated with intervals instead of single values

range?: [number, number]

An array with two numbers, the function will only be evaluated with values that belong to this interval

default value for fnType: 'polar': [-Math.PI, Math.PI] default value for fnType: 'parametric': [0, 2 * Math.PI] default value for the other functions: [-Infinity, Infinity]

sampler?: "interval" | "builtIn" | "asyncInterval"

The sampler to take samples from range, available values are builtIn|interval|asyncInterval

  • NOTE: builtIn should only be used when graphType is polyline|scatter

Additional information available during function evaluation

secants?: SecantDatum[]

The secants configuration

skipBoundsCheck?: boolean

True to bypass the range limits, used for helper functions

skipTip?: boolean

True to make the tip ignore this function

Generated using TypeDoc