# Line Visualization Options

**Component Reference:** Line or @splunk/visualizations/line

Source: `@splunk/visualization-schemas/lineOptionsSchema`

| Option | Type | Default | Description |
| --- | --- | --- | --- |
| `acceleratedRender` | boolean | `false` | Specify whether to enable canvas rendering to render large datasets more efficiently. This mode improves initial render time and interaction responsiveness for large time-series datasets. |
| `additionalTooltipFields` | array<string> | `[]` | Specify the fields to add to the default set of tooltips. Tooltips appear when you hover over events. These fields and their corresponding values are shown in addition to the ones displayed by default. Items: string |
| `annotationColor` | array<string> | — | Specify the annotation colors. You may use a dataSource to apply the color. For example, [“#FF0000”, “#0000FF", “#008000”]. Items: string |
| `annotationLabel` | array<string> | — | Specify a list of labels used for the annotations. You may use a dataSource to apply the labels. For example, [“houston, we have a problem”, “just close the jira”, “looking good now”]. Items: string |
| `annotationX` | array<string \| number> | — | Specify the dataSource field applied to the event annotation on the x-axis. Items: string \| number |
| `backgroundColor` | string | `> themes.defaultBackgroundColor` | Specify the color for the background. You may use a dataSource to apply the color. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e". Pattern: `^#(?:[0-9a-fA-F]{3,4}\|[0-9a-fA-F]{6}\|[0-9a-fA-F]{8})$\|^transparent$\|^rgb\\(\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$\|^rgba\\(\\s*(\\d{1,3}%?),\\s*(\\d{1,3}%?),\\s*(\\d{1,3}%?),\\s*(\\d*(?:\\.\\d+)?)\\)$\|\\$(\\w+:)?([^$\|:]+?)(\\\|[\|\\w]+)?\\$` |
| `dataValuesDisplay` | string | `off` | Specify whether chart should display no labels, all labels, or only the min and max labels. Allowed values: `off`, `all`, `minmax` |
| `legendDisplay` | string | — | Specify the location of the legend on the panel. By default, legendDisplay is off when splitByLayout is trellis, and right otherwise. You must select the Standard legend mode to make this change. Allowed values: `right`, `left`, `top`, `bottom`, `off` |
| `legendLabels` | array<string> | — | Specify a list of labels to pre-populate the legend. For example, ["percent", "count"]. Items: string |
| `legendMode` | string | `standard` | Specify visual and behavioral settings for the tooltip and legend. "seriesCompare" is useful when comparing series. Allowed values: `standard`, `seriesCompare` |
| `legendTruncation` | string | `ellipsisEnd` | Specify how to display legend labels when they overflow the layout boundaries by replacing overflow text with an ellipsis. Allowed values: `ellipsisEnd`, `ellipsisMiddle`, `ellipsisStart`, `ellipsisOff` |
| `lineDashStyle` | string | `solid` | Specify a dash style for all line series in the chart. Allowed values: `solid`, `shortDash`, `shortDot`, `shortDashDot`, `shortDashDotDot`, `dot`, `dash`, `longDash`, `dashDot`, `longDashDot`, `longDashDotDot` |
| `lineDashStylesByField` | object | — | Specify a dash style to use for each field. For example, {"count": "longDashDot", "percent": "longDashDotDot"}.<br />        Valid values: "solid", "shortDash", "shortDot", "shortDashDot", "shortDashDotDot", "dot", "dash",<br />        "longDash", "dashDot", "longDashDot", "longDashDotDot". |
| `lineWidth` | number | `2` | Specify the line width (px), for all line series. |
| `markerDisplay` | string | `off` | Specify the marker display style for data points. Allowed values: `off`, `filled`, `outlined` |
| `nullValueDisplay` | string | `gaps` | Specify how area and line charts handle null values. Allowed values: `gaps`, `zero`, `connect` |
| `overlayFields` | array<string> \| string | — | Specify field(s) that should be differentiated on the chart and displayed as chart overlays. Items: string |
| `resultLimit` | number | `50000` | Specify the number of data points rendered in a chart. |
| `seriesColors` | array<string> | `["#7B56DB","#009CEB","#00CDAF","#DD9900","#FF677B","#CB2196","#813193","#0051B5","#008C80","#99B100","#FFA476","#FF6ACE","#AE8CFF","#00689D","#00490A","#465D00","#9D6300","#F6540B","#FF969E","#E47BFE"]` | Specify the colors used for a series. For example, ["#FF0000", "#0000FF", "#008000"]. Items: string |
| `seriesColorsByField` | object | — | Specify the colors used for specific fields in a series. For example, {“count”: “#008000”, “percent”: “#FFA500”}. |
| `showIndependentYRanges` | boolean | `false` | Specify whether split series charts have independent y-ranges. |
| `showLineSmoothing` | boolean | `false` | Specify whether lines are straight or smoothed using curves. |
| `showOverlayY2Axis` | boolean | `false` | Enable a y2-axis for chart overlays. All overlay fields will be mapped to a second y-axis. |
| `showRoundedY2AxisLabels` | boolean | `true` | Specify whether to round y2-axis values to the nearest integer. |
| `showSplitSeries` | boolean | `false` | Set to "true" to split a multi-series chart into separate charts that are stacked from top to bottom; one for each series. |
| `showXMajorGridLines` | boolean | `false` | Specify whether major grid lines are visible on the x-axis. |
| `showY2AxisWithZero` | boolean | `false` | Specify whether the y2-axis range includes zero. |
| `showY2MajorGridLines` | boolean | `false` | Specify whether major grid lines are visible on the y2-axis. |
| `showY2MinorGridLines` | boolean | `false` | Specify whether minor grid lines are visible on y2-axis. |
| `showYAxisExtendedRange` | boolean | `true` | Specify whether the y-axis should be extended to include whole major tick marks. |
| `showYAxisWithZero` | boolean | `false` | Specify whether the y-axis range includes zero. |
| `showYMajorGridLines` | boolean | `true` | Specify whether major grid lines are visible on the y-axis. |
| `showYMinorGridLines` | boolean | `false` | Specify whether minor grid lines are visible on the y-axis. |
| `splitByLayout` | string | `off` | Specify the layout method by which to display the visualization, which splits the data into individual visualizations based on a certain category. Allowed values: `off`, `trellis` |
| `stepPosition` | string | `off` | Specify stepped interpolation position for all line series in accelerated render mode. Valid values: "off", "before", "after". Allowed values: `off`, `before`, `after` |
| `stepPositionsByField` | object | — | Specify stepped interpolation position for each field in accelerated render mode. For example, {"count": "before", "percent": "off"}.<br />        Valid values: "off", "before", "after". |
| `trellisBackgroundColor` | string | `> themes.defaultBackgroundColor` | Specify the color used for the trellis container background by using a hexadecimal code. For example, #0000FF. Pattern: `^#(?:[0-9a-fA-F]{3,4}\|[0-9a-fA-F]{6}\|[0-9a-fA-F]{8})$\|^transparent$\|^rgb\\(\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$\|^rgba\\(\\s*(\\d{1,3}%?),\\s*(\\d{1,3}%?),\\s*(\\d{1,3}%?),\\s*(\\d*(?:\\.\\d+)?)\\)$\|\\$(\\w+:)?([^$\|:]+?)(\\\|[\|\\w]+)?\\$` |
| `trellisColumns` | number | `3` | Specify the number of visualizations to display in a given row of the trellis container. The remaining visualizations will wrap accordingly. If nothing is specified, it will be auto-set based on the trellisMinColumnWidth. The minimum value is 1. Range: min 1 |
| `trellisMinColumnWidth` | number | `250` | Specify the minimum width, in pixels, of each visualization in the trellis container. If the window or panel is resized, the remaining visualizations may be viewed by scrolling. The minimum value is 1. Range: min 1 |
| `trellisPageCount` | number | `20` | Specify the maximum number of visualizations to display in a single page in the trellis container. The remaining visualizations will paginate accordingly. The minimum value is 1. Range: min 1 |
| `trellisRowHeight` | number | `180` | Specify the height, in pixels, of each visualization in the trellis container. If the window or panel is resized, the remaining visualizations may be viewed by scrolling. The minimum value is 1. Range: min 1 |
| `trellisSharedScale` | boolean | `true` | Specify whether all visualizations will share the same scale in the trellis container. |
| `trellisSortBy` | string | `result` | Specify the sort method for the individual visualizations in the trellis container. Use result to sort by search result order, or name to sort alphabetically by visualization label. Allowed values: `result`, `name` |
| `trellisSortOrder` | string | `ascending` | Specify the sort order for the individual visualizations in the trellis container. This setting applies to the sort method specified in trellisSortBy. Allowed values: `ascending`, `descending` |
| `trellisSplitBy` | string | — | Specify the field name of the column with categories used, or “aggregations”, to split the data into individual visualizations for trellis display, if applicable. If a SPL `timechart` command is used, this may default to the SPL `by` clause field. If a SPL `chart` command is used, this may default to the first string field. |
| `x` | array<string \| number> | `> primary \| seriesByIndex(0)` | Specify the dataSource applied to the x-axis. Items: string \| number |
| `xAxisLabelRotation` | number | `0` | Specify the rotation of the x-axis label in degrees. Allowed values: `-90`, `-45`, `0`, `45`, `90` |
| `xAxisLabelVisibility` | string | `auto` | Specify whether to show or hide labels on the x-axis. Allowed values: `auto`, `show`, `hide` |
| `xAxisLineVisibility` | string | `hide` | Specify whether to show or hide the x-axis line. Allowed values: `hide`, `show` |
| `xAxisMajorTickSize` | number | `6` | Specify the size, in pixels, of major tick marks on the x-axis. |
| `xAxisMajorTickVisibility` | string | `auto` | Specify whether to show or hide major tick marks on the x-axis. Allowed values: `auto`, `show`, `hide` |
| `xAxisMaxLabelParts` | number | `3` | Specify the maximum number of time-parts for a tick label. The 3 possible parts are year, month, and time. Values can range from 1 to 3. Range: min 1, max 3 |
| `xAxisTitleText` | string | — | Specify the title of the x-axis. |
| `xAxisTitleVisibility` | string | `show` | Specify whether to show or hide the title of the x-axis. Allowed values: `hide`, `show` |
| `xField` | string | `> x \| getField()` | Specify the field that should be mapped to the x-axis. |
| `y` | array<string \| number> | `> primary \| frameBySeriesIndexRange(1)` | Specify the dataSource applied to the y-axis. Items: string \| number |
| `y2` | array<string \| number> | — | Specify the dataSource applied to the y2-axis Items: string \| number |
| `y2AxisAbbreviation` | string | `auto` | Specify whether to abbreviate large y2-axis values with the closest SI prefix. Allowed values: `off`, `auto` |
| `y2AxisLabelVisibility` | string | `auto` | Specify whether to show or hide labels on the y2-axis. Allowed values: `auto`, `show`, `hide` |
| `y2AxisLineVisibility` | string | `hide` | Specify whether to show or hide the y2-axis line. Allowed values: `hide`, `show` |
| `y2AxisMajorTickInterval` | string \| number | `auto` | Specify the spacing unit between major tick marks along the numeric y2-axis. |
| `y2AxisMajorTickSize` | number | `6` | Specify the size, in pixels, of major tick marks on the y2-axis. |
| `y2AxisMajorTickVisibility` | string | `auto` | Specify whether to show or hide major tick marks on the y2-axis. Allowed values: `auto`, `show`, `hide` |
| `y2AxisMax` | string \| number | `auto` | Specify the maximum number for the visible y2-axis range. |
| `y2AxisMin` | string \| number | `auto` | Specify the minimum number for the visible y2-axis range. |
| `y2AxisMinorTickSize` | number | `6` | Specify the size, in pixels, of minor tick marks on the y2-axis. |
| `y2AxisMinorTickVisibility` | string | `auto` | Specify whether to show or hide minor tick marks on the y2-axis. Allowed values: `auto`, `show`, `hide` |
| `y2AxisScale` | string | `linear` | Specify the type of scale that applies to a numerical y2-axis. Allowed values: `linear`, `log` |
| `y2AxisTitleText` | string | — | Specify the title of the y2-axis. |
| `y2AxisTitleVisibility` | string | `show` | Specify whether to show or hide the title of the y2-axis. Allowed values: `hide`, `show` |
| `y2Fields` | array<string> \| string | `> y2 \| getField()` | Specify field(s) that should be mapped to a second y-axis. Items: string |
| `yAxisAbbreviation` | string | `auto` | Specify whether to abbreviate large y-axis values with the closest SI prefix. Allowed values: `off`, `auto` |
| `yAxisLabelVisibility` | string | `auto` | Specify whether to show or hide labels on the y-axis. Allowed values: `auto`, `show`, `hide` |
| `yAxisLineVisibility` | string | `hide` | Specify whether to show or hide the y-axis line. Allowed values: `hide`, `show` |
| `yAxisMajorTickInterval` | string \| number | `auto` | Specify the spacing unit between major tick marks along the numeric y-axis. |
| `yAxisMajorTickSize` | number | `6` | Specify the size, in pixels, of major tick marks on the y-axis. |
| `yAxisMajorTickVisibility` | string | `auto` | Specify whether to show or hide major tick marks on the y-axis. Allowed values: `auto`, `show`, `hide` |
| `yAxisMax` | string \| number | `auto` | Specify the maximum number for the visible y-axis range. |
| `yAxisMin` | string \| number | `auto` | Specify the minimum number for the visible y-axis range. |
| `yAxisMinorTickSize` | number | `6` | Specify the size, in pixels, of minor tick marks on the y-axis. |
| `yAxisMinorTickVisibility` | string | `auto` | Specify whether to show or hide minor tick marks on the y-axis. Allowed values: `auto`, `show`, `hide` |
| `yAxisScale` | string | `linear` | Specify the type of scale that applies to a numerical y-axis. Allowed values: `linear`, `log` |
| `yAxisTitleText` | string | — | Specify the title of the y-axis. |
| `yAxisTitleVisibility` | string | `show` | Specify whether to show or hide the title of the y-axis. Allowed values: `hide`, `show` |
| `yFields` | string | `> y \| getField()` | Specify the field that should be mapped to the y-axis. |

_Auto-generated; do not edit by hand._
