Skip to main content

Scatter

The scatter trace type encompasses line charts, scatter charts, text charts, and bubble charts. The data visualized as scatter point or lines is taken from the data grid. Text (appearing either on the chart or on hover only) is set via the Text field. Bubble charts are achieved by setting the Point s size to Variable and use data from a grid column as bubble size .

Name#

Sets the trace name. The trace name appears as the legend item and on hover.

In the Name text box, the name can be entered and formatted. This is automatically reflected in the Structure > Traces[link] section and in the legend[link] of the plot. The trace name can be also edited directly by double-clicking the trace name in the plot legend.

HTML tags and CSS formatting can be used to enrich text styling.

The trace name appears in the Traces column, as the legend item and on hover.

Legend#

Display#

  • Point[link] determines whether to show or hide trace points.
  • Lines[link] determines whether to show or hide trace lines.
  • Text[link] determines whether to show or hide trace text.

The three tick boxes enable or disable extra settings. Depending on the trace type, Points[link], Lines[link] and Text[link] can be styled. For styling each of these elements, see the documentation below.

If the ticked boxes in Display include "text" then the Text elements appear near the data points in the chart. Otherwise, the Text elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is "lines+markers". Otherwise, "lines".

Points#

Only available when in Display[link] Points is ticked.

Color#

  • Constant The color of points in a trace can be set as a constant using the color picker[link].
  • Variable Allows colors for each point to be defined in a grid column[link].
  • Choose data... Pick a grid column holding the color values with the syntax explained in the standard color picker.

Choose data... option is only available when Variable is chosen first.

Data from a grid column can also be used to specify a color for many chart elements. When color values (syntax as described in Constant) are provided in the grid cells, they will be used to style the elements. When the data in the grid is numerical, categorical color bars will be used.

Colorscale Direction#

Only available when Color is set to Variable.

  • Normal shows increasing values in the chart according to increasing colorscale values.
  • Reversed shows increasing values in the chart according to decreasing colorscale values.

Colorscale Range#

Only available when Color is set to Variable.

  • Auto lets the system map colors to the entire range in the chosen grid area.
  • Custom maps the colorscale between the given min and max, projecting higher values on max and lower values on min.

Min#

Only available when Colorscale Range is set to Custom.

Determines which number is connected to the lower end of the colorscale.

Max#

Only available when Colorscale Range is set to Custom.

Determines which number is connected to the upper end of the colorscale.

Point Opacity#

  • % influences the opacity (transparency) of the chosen color and is combined with the Alpha value of the color[link].

Size#

  • Constant The Constant size is entered in pixel units. Either use the up and down arrows, which uses one-pixel increments, or type into the size text box to enter fractional sizes.
  • Variable Clicking Variable size opens new set of options, which only become visible after a grid column is chosen. Click Variable, then choose a numerical grid column from the pulldown menu.

This reveals Size Scale[link], Size Mode[link] and Minimum Size[link].

Size Scale#

Only available when picking a Data column at Points > Size > Variable[link].

  • factor Sets the scale factor used to determine the rendered size of marker points. Only available when a grid column has been selected in Variable mode. To scale the point size in the grid column for the entire trace click the up and down arrows, which use one-pixel increments, or type into the size scale text box to enter fractional size scale.

Size Mode#

Only available when picking a Data column at Points > Size > Variable[link].

  • Area Points represent numerical values by area, a root scale.
  • Diameter Points represent numerical values by diameter.

Minimum Size#

Only available when picking a Data column at Points > Size > Variable[link].

Only available when a grid column has been selected in Variable mode, to prevent points that represent small numbers from becoming invisible. Enter a minimum size in the text area of this field, or use the up- and down buttons for one-pixel increments.

Symbol#

Use this option to select the shape or symbol representing each data point.

Border Width#

Sets the width of point borders.

Border Color#

Sets the color of point borders.

Max Number Of Points#

To prevent traces from becoming overcrowded, the maximum number of visible points for this trace can be set using this option.

Stacking#

Set several scatter traces (on the same subplot) to the same Stack Group in order to add up their y values (or their x values if orientation is Horizontal). If blank or omitted, this trace will not be stacked. Stacking also turns fill on by default, and sets the default mode to lines, irrespective of point count. You can only stack on a numeric (linear or log) axis. Traces in a stackgroup will only fill to (or be filled to) other traces in the same group. With multiple Stack Groups (or some traces stacked and some not), if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order.

Group#

  • None All traces are plotted individually.
  • 'Other choice' Set several scatter traces (on the same subplot) to the same Stack Group in order to add their y values (or their x values if orientation is Horizontal). If blank or omitted, this trace will not be stacked. Stacking also turns fill on by default and sets the default mode to lines, irrespective of point count. You can only stack on a numeric (linear or log) axis. Traces in a stackgroup will only fill to (or be filled to) other traces in the same group. With multiple Stack Groups (or with some traces stacked and some not) if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order.

Gaps#

Only available when an option different from None is chosen under Group.

Determines whether or not missing data (i.e. 'nan' or missing values) in the provided grid columns are included.

  • Infer Zero will simulate a zero value here.
  • Interpolate will linearly interpolate between existing values and extrapolate a constant beyond the existing values.

Orientation#

Only relevant when Stack Group is used, and only the first orientation found in the Stack Group will be used. Sets the stacking direction.

  • Horizontal The x values of subsequent traces are added. Also affects the default value of Filled Area.
  • Vertical The y values of subsequent traces are added. Also affects the default value of Filled Area.

Normalization#

Sets the normalization for the sum of this Stack Group.

  • None Raw values will be plotted.
  • Fraction The value of each trace at each location is divided by the sum of all trace values at that location.
  • Percent is the same as Fraction, but multiplied by 100 to show percentages.

Lines#

Width#

The width of the line conecting the trace data points can be specified using the up- and down arrows for one pixel increments, or enter the width directly in the text box, which allows fractional pixel values. Values smaller than 0.1 point are effectively invisible on pixel based devices.

Color#

The line color can be set using this popup menu.

Type#

Continuous, dashed or dotted line types can be set using this popup menu.

Shape#

Various shapes of the lines connecting the data points can be selected here.

Connect Gaps#

  • Connect connects the two data points on either side of a data gap caused by missing or NaN (not a number) data.
  • Blank Missing values will break the line and appear as a gap.

Filled Area#

Sets the fill color of the trace area. Defaults to 'none', unless this trace is stacked.

Fill To#

Traces in a Stack Group will only fill to (or be filled to) other traces in the same group. With multiple Stack Groups (or some traces stacked and some not), the later ones will be pushed down in the drawing order.

  • None Only the lines are shown.
  • Y = 0 The trace area is filled to the x-axis in a Horizontal stacking trace and Y=0 is chosen.
  • X = 0 The trace area is filled to the y-axis in a Vertical stacking trace and X=0 is chosen.
  • Previous Y The trace area is filled between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area chart).
  • Previous X fills between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area chart). If there is no trace before it, they behave like Y=0 and X=0.

Color#

Only available if Fill To is not set to None.

The color of the filled area can be set aysing the default color picker[link].

Text#

Only available when in [Display][link] Text is ticked.

Sets text elements associated with each (x,y) pair. If trace hoverinfo option "text" is ticked and Text > Text is not set, these elements will be seen in the hover labels.

Text Position#

Mode#

Either show information as plain values, or uses formatting options from a template.

  • Values uses text strings from grid cells in the column chosen at Text below.

Text#

Typeface#

Font Size#

Font Color#

The color of the text in the trace can be chosen using the default Color picker[link]

Clip On Axes#

Determines whether or not markers and text nodes are clipped about the subplot axes

  • Yes clips markers

  • No lets markers flow over axes

Hover/Tooltip#

Extra information is shown when the viewer hovers the mouse over trace components. This information is taken from the Text[link] field above.

When the mouse cursor is hovered over various trace components, extra information can be shown as tooltip as defined in the fields below.

Hover On#

Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions, or both?

Mode#

  • Values will display the values (as plain text) from data grid, as defined in Text settings above.
  • Template shows an edit panel for the template string used for rendering the information text. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". Dates and times are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".

Show#

When under Text >Text[link] a grid area is chosen, Text appears as an extra option in the Show menu to be displayed when hovering over the plot. When hovering over a trace, each of the values from the grid are shown for X, Y, a text column and the name[link] of the trace if their box is ticked.

Text Alignment#

Sets the horizontal alignment of the text content within the hover label box. Has an effect only if the hover label text spans two or more lines. Alignment of Hover/Tooltip can be set to Auto, Left or Right.

Error Bars X#

Determines the rule used to generate the error bars in X-direction

  • None will not draw any error bars.
  • Symmetric will draw an error bar centered around the data points.
  • Asymmetric will draw separarate bars for +error and -error taken from two data grid columns.

Error Type#

Appears when Symmetric or Asymmetric are chosen.

  • % the bar lengths correspond to a percentage of underlying data. Set this percentage in the Value field.
  • Constant will use a bar length of constant value. Set this constant in Value field.
  • โˆš will use the square root of the underlying data for bar length; only available with Symmetric error bars.
  • Data uses grid column values for the length of the error bars. One grid column is sufficient for Symmetric error bars, two grid columns are necessary for Asymmetric error bars.

Color#

Appears on any error bar option except for None.

Determines the color of the error bar.

Thickness#

Appears on any error bar option except for None.

Sets the thickness (in pixels) of the error bars.

Crossbar Width#

Appears on any error bar option except for None.

Sets the width (in px) of the cross-bar at both ends of the error bar.

Error Bars Y#

Determines the rule used to generate the error bars in Y-direction

  • None will not draw any error bars.
  • Symmetric will draw an error bar centered around the data points.
  • Asymmetric will draw separarate bars for +error and -error taken from two data grid columns.

Error Type#

Appears when Symmetric or Asymmetric are chosen.

  • % the bar lengths correspond to a percentage of underlying data. Set this percentage in the Value field.
  • Constant will use a bar length of constant value. Set this constant in Value field.
  • โˆš will use the square root of the underlying data for bar length; only available with Symmetric error bars.
  • Data uses grid column values for the length of the error bars. One grid column is sufficient for Symmetric error bars, two grid columns are necessary for Asymmetric error bars.

Color#

Appears on any error bar option except for None.

Determines the color of the error bar.

Thickness#

Appears on any error bar option except for None.

Sets the thickness (in pixels) of the error bars.

Crossbar Width#

Appears on any error bar option except for None.

Sets the width (in px) of the cross-bar at both ends of the error bar.