line

Classes

LineChart

Type Definitions

LineChartOptions

Type:

Properties:

Name Type Description
hidePoints boolean <optional> Hide the data marker points on the line
brush object <optional> Brush (i.e. selection) options
Properties
Name Type Default Description
disabled boolean <optional>
type "data" | "visual" <optional> "data" Brush selection will anchor to data or visual coordinates
showTooltip boolean <optional> Allow showing tooltip when actively brushing
disableZoom boolean <optional> Disable auto-zoom when brush finishes
clipMask boolean <optional> Visually clip the brush selection to the data area
passive boolean <optional> Do not allow pointer interaction
Source: line.mjs, line 19

LineChartSegment

Type:
Description: A visual block highlight for a line chart. Essentially a way to colorize regions of line chart.

Properties:

Name Type Default Description
x number The left x data value to begin this segment at
width number Width in data value units
color ColorParsable <optional> Fill color or gradient for region
y number <optional> yMax The top y data value to begin the segment at
height number <optional> yMax-yMin Height in data value units
Source: line.mjs, line 31

Events

brush

Type:
Description: Brush event

Properties:

Name Type Description
x1 number
x2 number
internal boolean Was the event triggered internally by pointer events
chart Chart
Source: line.mjs, line 8