LinesSettings is a class which defines the default settings for all MapLine objects.

Example

var map = AmCharts.makeChart("mapdiv",{
  ...
  linesSettings: {
    arrowAlpha: 0.5
  }
});

Properties

PropertyTypeDefaultDescription
accessibleLabelStringText which screen readers will read if user rolls-over the line or sets focus using tab key (this is possible only if tabIndex property of LinesSettings or individual line is set to some number). Text is added as aria-label tag. Note - not all screen readers and browsers support this.
alphaNumber1Opacity of the line.
arcNumber0Using this setting you can make lines to be curved, or actually to make them look like arcs. Note, there is one limitation - this works well with two-point lines only. You can also set arc for MapLine individually.
arrowStringnonePosition of the arrows. Possible values are "start", "end", "middle", "both" and "none".
arrowAlphaNumber1Opacity of the arrows.
arrowColorColorArrow color. Will use line color if not set.
arrowSizeNumber10Size of the arrows.
balloonTextString[[title]]Text which is displayed in a roll-over balloon. You can use the following tags: [[title]], [[description]], [[value]] and [[percent]].

To disable the balloons, set it to an empty string.
bringForwardOnHoverBooleantrueSpecifies if line should change it's z-index to the most top when user hovers it.
colorColor#990000Line color.
dashLengthNumber0Length of a dash. 0 means line is not dashed.
descriptionWindowBottomNumberDistance from the bottom side of map container to the description window. In case it is not set (also if descriptionWindowTop is not set), window will be placed near the mouse pointer.
descriptionWindowHeightNumberHeight of a description window.
descriptionWindowLeftNumberDistance from the left side of map container to the description window. In case it is not set (also if descriptionWindowRight is not set), window will be placed near the mouse pointer.
descriptionWindowRightNumberDistance from the right side of map container to the description window. In case it is not set (also if descriptionWindowLeft is not set), window will be placed near the mouse pointer.
descriptionWindowTopNumberDistance from the top side of map container to the description window. In case it is not set (also if descriptionWindowBottom is not set), window will be placed near the mouse pointer.
descriptionWindowWidthNumber250Width of a description window.
tabIndexNumberIn case you set it to some number, the map will set focus on lines (one by one) when user clicks tab key. When a focus is set, screen readers like NVDA Screen reader will read label which is set using accessibleLabel property of LinesSettings or individual line. If area is clickable, pressing Enter/Return while focus is set will select the line. Note, not all browsers and readers support this.
thicknessNumber1Line thickness.

Methods

LinesSettings class does not have any methods.

Events

LinesSettings class does not have any events.