Skip to main content

Line chart

Line chart shows data points as connected line segments. It is commonly used to track trends, changes over time, and compare multiple data series.

Developers: To add the viewer from the console, use: grok.shell.tv.addViewer('Line chart');

General:

Right clickContext menu
Alt+Mouse DragZoom
Alt+FShow in full screen
Shift+Mouse DragSelect
Up, Down, Left, RightScroll
Ctrl -Zoom out
Ctrl +Zoom in
Shift+drag axesSelect segments

Line Chart

Custom aggregated tooltip

The line chart supports tooltips for both single and aggregated values. The default single-value tooltip is inherited from the grid. The default aggregated tooltip displays axis values and can be customized to show additional summary statistics.

To configure a custom aggregated tooltip, go to Context menu > Tooltip > Edit. This opens the aggregated tooltip dialog, where you can select the columns and corresponding aggregation functions. Available aggregation functions depend on the column type.

Supported aggregation functions
Column typeAggregation functions
Numericalmin, max, sum, avg, med, geomean,
count, values, unique, nulls,
stdev, variance, skew, kurt,
q1, q2, q3, first
Categoricalfirst, count, values, unique,nulls, values or unique count,
concat all, concat unique,
longest, shortest,
most frequent, concat counts
Datefirst, count, values, unique, nulls,
min, max, avg,
range

Statistical Process Control

Line chart supports Statistical Process Control (SPC) features out of the box, including contol limits and adjustable rules. SPC Chart

Videos

Line Chart

Properties

PropertyTypeDescription
Data
Split Column NameslistA categorical column by which lines are split
Overview Column NamestringDefines a Y column for the chart on the bottom used for zooming
Y Aggr TypeslistAggregation types for all columns
Axes Follow FilterbooleanWhen true, X axis is synchronized with the corresponding filter''s range values. Otherwise, when the filter is changed points are filtered out on a chart but the min-max stays.
Multi AxisbooleanWhen true, multiple Y Columns charts get rendered on top of each other, otherwise they are stacked
Whiskers TypestringMarker type for showing the distribution of the aggregated values when multiple values have the same X value
Aggr Typestring
FilterstringFormula that filters out rows to show. Examples: ${AGE} > 20 or ${WEIGHT / 2)} > 100, ${SEVERITY} == ''Medium'', ${RACE}.endsWith(''sian'')
Tablestring
General
Pack Categoriesboolean
Overview Aggr Typestring
Overview Typestring
Left PanelstringShow additional chart on the left
Chart Typeslist
Line Colornumber
Back Colornumber
Axis Line Colornumber
Axis Text Colornumber
Marker Colornumber
Mouse Over Line Colornumber
Current Line Colornumber
Show Top PanelbooleanShows top panel with the Split by selector
Show Close LinkbooleanShow the x close icon for each chart
X Axis Custom Tickmarkslist
Y Axis Custom Tickmarkslist
Inner Chart Margin Topnumber
Inner Chart Margin Bottomnumber
Outer Chart Margin Leftnumber
Outer Chart Margin Topnumber
Outer Chart Margin Rightnumber
Outer Chart Margin Bottomnumber
Show Dataframe Formula LinesbooleanControl the visibility of dataframe-originated formula lines. Edit formula lines by right-clicking and selecting Tools | Formula Lines from the popup menu. Requires the PowerPack plugin.
Show Viewer Formula LinesbooleanControl the visibility of dataframe-originated formula lines. Edit formula lines by right-clicking and selecting Tools | Formula Lines from the popup menu. Requires the PowerPack plugin.
Legend Visibilityvisibilitymode
Legend Positionflexautoposition
Row SourcestringDetermines the rows shown on the plot.
Allow Dynamic Menusboolean
Show Context MenubooleanProperties common for all viewers todo: use code generation
Titlestring
DescriptionstringViewer description that gets shown at the Descriptor Position. Markup is supported.
HelpstringHelp to be shown when user clicks on the ''?'' icon on top. Could either be in markdown, or a URL (starting with ''/'' or ''http'').
Description Positionflexposition
Description Visibility Modevisibilitymode
X
X Column NamestringColumn to be used on the X axis
X MapstringTime unit map function for x column (applicable to dates only).
X Axis Typestring
Segment Column NamestringWhen defined, background is colored according to the segment column. Example: time series data with the stimuli column
Invert X Axisboolean
Show X Axisboolean
Show X Selectorboolean
X Axis Label Orientationstring
X Axis Tickmarks Modeaxistickmarksmode
Y
Y Column NameslistNumerical columns to be used on Y axes. Depending on the *
Y Axis Typestring
Show Y Axisboolean
Y Global Scaleboolean
Y Axis TitlestringAxis title to be shown on the left axis in multi-axis mode
Y2 Axis TitlestringAxis title to be shown on the left axis in multi-axis mode
Y Axis Tickmarks Modeaxistickmarksmode
Show Y Selectorsboolean
Show Aggr Selectorsboolean
Show Split Selectorboolean
Interpolationlineinterpolationmode
Spline Tensionnumber
Marker
Markers Column NamestringA categorical column that determines the shape of the markers.
Markers MapstringMarker category time unit map function (applicable to dates only).
Marker Typestring
Marker Sizenumber
Show MarkersvisibilitymodeA boolean column that determines whether to show markers.
Markers Visibility Column Namestring
Selection
Show Current Row LinebooleanShow vertical line reflecting the position of the current row See also Current Line Color
Show Mouse Over CategorybooleanDetermines whether the line is highlighted when you hover over the corresponding category. Example: Split by = SEX and you hover over the Male category in the filter.
Show Mouse Over Row LinebooleanShow vertical line reflecting the position of the mouse-over row See also Mouse Over Line Color
Statistical process control
Show Statical Process ControlbooleanShows/hides upper and lower control limits, and Western Electric rules.
Show Control LimitsbooleanShows/hides upper and lower control limits.
Show Sigma1boolean
Show Sigma2boolean
Show Averageboolean
Lower Control Limitnumber
Upper Control Limitnumber
Show OutlierbooleanRile 1: One point is more than 3 standard deviations from the mean. When sample(s) is grossly out of control.
Show BiasbooleanRule 2: Nine (or more) points in a row are on the same side of the mean. Some prolonged bias exists.
Show Consistent TrendbooleanRule 3: Six (or more) points in a row are continually increasing (or decreasing). When a trend exists.
Show OscillationbooleanRule 4: Fourteen (or more) points in a row alternate in direction, increasing then decreasing. This much oscillation is beyond noise. Note that the rule is considered with directionality only. The position of the mean and the size of the standard deviation have no bearing.
Show Medium ShiftbooleanRule 5:Two (or three) out of the three points in a row are more than 2 standard deviations from the mean in the same direction. There is a medium tendency for samples to be mediumly out of control. The side of the mean for the third point is unspecified.
Show Sustained ShiftbooleanRule 6: Four (or five) out of five points in a row are more than 1 standard deviation from the mean in the same direction. There is strong tendency for samples to be slightly out of control. The side of the mean for the fifth point is unspecified.
Show Suppressed VariationbooleanRule 7: Fifteen points in a row are all within 1 standard deviation of the mean on either side of the mean. With 1 standard deviation, greater variation would be expected.
Misc
Axes Use Column FormatbooleanUse column format for axis labels, where possible
Show Aggr Type Selectorboolean
Style
Auto Layoutboolean
Segments Fontstring
Line Widthnumber
Line Transparencynumber
Overview HeightnumberHeight of the overview chart
Histogram Widthnumber
Auto Axis SizebooleanIf true, X Axis Height is calculated automatically to fit the required precision. If false, the specified X Axis Height
Annotation Fontstring
X Axis HeightnumberRequires Auto Axis Size to be turned off.
Line Coloring Typestring
Axis Fontstring
Selected Rows Colornumber
Statistical Process Line Colornumber
Statistical Process Area Colornumber
Statistical Process Rule Colornumber
Controls FontstringViewer controls elements font.
Tooltip
Show TooltipstringControls scatter plot tooltip visibility
Show Labelsvisibilitymode
Row TooltipstringNewline-separated list of column names to be used in a tooltip. Requires showTooltip to be enabled.
Row Group Tooltipstring
Legend
Add Y Columns To LegendbooleanWhen selected, column names are added to the legend. Requires Multi Axis to be enabled.
Annotation regions
Show Viewer Annotation Regionsboolean
Show Dataframe Annotation Regionsboolean
Lasso ToolbooleanEnables lasso region drawing mode (instead of polygon drawing default one).
Description
Show Titleboolean

See also: