# Wijmo_Chart.Linemarker

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								LineMarker Class
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>Represents an extension of the LineMarker for the FlexChart.</p>
								</div>
								<p>The <a href="wijmo_chart.linemarker.html">LineMarker</a> consists of a text area with content reflecting
									data point values, and optional vertical or horizontal lines
								(or both for a cross-hair effect) positioned over the plot area.</p>
								<p>It can be static (interaction = None), follow the mouse or touch
									position (interaction = Move), or move when the user drags the
								line (interaction = Drag).</p>
								<p>For example:</p>
								<pre>  // create an interactive marker with a horizontal line and y-value
  var lm = new LineMarker($scope.ctx.chart, {
      lines: LineMarkerLines.Horizontal,
      interaction: LineMarkerInteraction.Move,
      alignment : LineMarkerAlignment.Top
  });
  lm.content = function (ht) {
      // show y-value
      return lm.y.toFixed(2);
  }
</pre>
							</div>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<span class="target">LineMarker</span>
									<ul class="tsd-hierarchy">
										<li>
											<a href="wijmo_angular2_chart.wjflexchartlinemarker.html" class="tsd-signature-type">WjFlexChartLineMarker</a>
										</li>
									</ul>
								</li>
							</ul>
						</section>
						<section class="tsd-index-group">
							<section class="tsd-index-panel">
								<div class="tsd-index-content">
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Constructors
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#constructor" class="tsd-kind-icon">constructor</a></li>
										</ul>
									</section>
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Properties
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#alignment" class="tsd-kind-icon">alignment</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#chart" class="tsd-kind-icon">chart</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#content" class="tsd-kind-icon">content</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#dragcontent" class="tsd-kind-icon">drag<wbr>Content</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#draglines" class="tsd-kind-icon">drag<wbr>Lines</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#dragthreshold" class="tsd-kind-icon">drag<wbr>Threshold</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#horizontalposition" class="tsd-kind-icon">horizontal<wbr>Position</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#interaction" class="tsd-kind-icon">interaction</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#isvisible" class="tsd-kind-icon">is<wbr>Visible</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#lines" class="tsd-kind-icon">lines</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#seriesindex" class="tsd-kind-icon">series<wbr>Index</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#verticalposition" class="tsd-kind-icon">vertical<wbr>Position</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#x" class="tsd-kind-icon">x</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#y" class="tsd-kind-icon">y</a></li>
										</ul>
									</section>
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Methods
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#onpositionchanged" class="tsd-kind-icon">on<wbr>Position<wbr>Changed</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#remove" class="tsd-kind-icon">remove</a></li>
										</ul>
									</section>
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Events
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-event tsd-parent-kind-class"><a href="wijmo_chart.linemarker.html#positionchanged" class="tsd-kind-icon">position<wbr>Changed</a></li>
										</ul>
									</section>
								</div>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Constructors</h2>
							<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
								<a name="constructor" class="tsd-anchor"></a>
								<h3>constructor</h3>
								<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">new <wbr>Line<wbr>Marker<span class="tsd-signature-symbol">(</span>chart<span class="tsd-signature-symbol">: </span><a href="wijmo_chart.flexchartcore.html" class="tsd-signature-type">FlexChartCore</a>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="wijmo_chart.linemarker.html" class="tsd-signature-type">LineMarker</a></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Initializes a new instance of the <a href="wijmo_chart.linemarker.html">LineMarker</a> class.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>chart: <a href="wijmo_chart.flexchartcore.html" class="tsd-signature-type">FlexChartCore</a></h5>
												<div class="tsd-comment">
													<div class="lead">
														<p>The chart on which the LineMarker appears.</p>
													</div>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment">
													<div class="lead">
														<p>A JavaScript object containing initialization data for the control.</p>
													</div>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <a href="wijmo_chart.linemarker.html" class="tsd-signature-type">LineMarker</a></h4>
									</li>
								</ul>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Properties</h2>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="alignment" class="tsd-anchor"></a>
								<h3>alignment</h3>
								<div class="tsd-signature tsd-kind-icon">alignment<span class="tsd-signature-symbol">:</span> <a href="../enums/wijmo_chart.linemarkeralignment.html" class="tsd-signature-type">LineMarkerAlignment</a></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the alignment of the LineMarker content.</p>
									</div>
									<p>By default, the LineMarker shows to the right, at the bottom of the target point.
									Use '|' to combine alignment values.</p>
									<pre>// set the alignment to the left.
marker.alignment = LineMarkerAlignment.Left;
// set the alignment to the left top.
marker.alignment = LineMarkerAlignment.Left | LineMarkerAlignment.Top;
</pre>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="chart" class="tsd-anchor"></a>
								<h3>chart</h3>
								<div class="tsd-signature tsd-kind-icon">chart<span class="tsd-signature-symbol">:</span> <a href="wijmo_chart.flexchartcore.html" class="tsd-signature-type">FlexChartCore</a></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets the <a href="wijmo_chart.flexchart.html">FlexChart</a> object that owns the LineMarker.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="content" class="tsd-anchor"></a>
								<h3>content</h3>
								<div class="tsd-signature tsd-kind-icon">content<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Function</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the content function that allows you to customize the text content of the LineMarker.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="dragcontent" class="tsd-anchor"></a>
								<h3>dragContent</h3>
								<div class="tsd-signature tsd-kind-icon">drag<wbr>Content<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets a value indicating whether the content of the marker
										is draggable when the interaction mode is "Drag."</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="draglines" class="tsd-anchor"></a>
								<h3>dragLines</h3>
								<div class="tsd-signature tsd-kind-icon">drag<wbr>Lines<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets a value indicating whether the lines are linked
											when the horizontal or vertical line is dragged when the
										interaction mode is "Drag."</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="dragthreshold" class="tsd-anchor"></a>
								<h3>dragThreshold</h3>
								<div class="tsd-signature tsd-kind-icon">drag<wbr>Threshold<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the maximum distance from the horizontal or vertical
										line that the marker can be dragged.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="horizontalposition" class="tsd-anchor"></a>
								<h3>horizontalPosition</h3>
								<div class="tsd-signature tsd-kind-icon">horizontal<wbr>Position<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the horizontal position of the LineMarker relative to the plot area.</p>
									</div>
									<p>Its value range is (0, 1).
										If the value is null or undefined and <a href="wijmo_chart.linemarker.html#interaction">interaction</a> is set to
										LineMarkerInteraction.Move or LineMarkerInteraction.Drag,
										the horizontal position of the marker is calculated automatically based on the
									pointer's position.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="interaction" class="tsd-anchor"></a>
								<h3>interaction</h3>
								<div class="tsd-signature tsd-kind-icon">interaction<span class="tsd-signature-symbol">:</span> <a href="../enums/wijmo_chart.linemarkerinteraction.html" class="tsd-signature-type">LineMarkerInteraction</a></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the interaction mode of the LineMarker.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="isvisible" class="tsd-anchor"></a>
								<h3>isVisible</h3>
								<div class="tsd-signature tsd-kind-icon">is<wbr>Visible<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the visibility of the LineMarker.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="lines" class="tsd-anchor"></a>
								<h3>lines</h3>
								<div class="tsd-signature tsd-kind-icon">lines<span class="tsd-signature-symbol">:</span> <a href="../enums/wijmo_chart.linemarkerlines.html" class="tsd-signature-type">LineMarkerLines</a></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the visibility of the LineMarker lines.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="seriesindex" class="tsd-anchor"></a>
								<h3>seriesIndex</h3>
								<div class="tsd-signature tsd-kind-icon">series<wbr>Index<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the index of the series in the chart in which the LineMarker appears.
											This takes effect when the <a href="wijmo_chart.linemarker.html#interaction">interaction</a> property is set to
										LineMarkerInteraction.Move or LineMarkerInteraction.Drag.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="verticalposition" class="tsd-anchor"></a>
								<h3>verticalPosition</h3>
								<div class="tsd-signature tsd-kind-icon">vertical<wbr>Position<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the vertical position of the LineMarker relative to the plot area.</p>
									</div>
									<p>Its value range is (0, 1).
										If the value is null or undefined and <a href="wijmo_chart.linemarker.html#interaction">interaction</a> is set to LineMarkerInteraction.Move
									or LineMarkerInteraction.Drag, the vertical position of the LineMarker is calculated automatically based on the pointer's position.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="x" class="tsd-anchor"></a>
								<h3>x</h3>
								<div class="tsd-signature tsd-kind-icon">x<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets the current x-value as chart data coordinates.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="y" class="tsd-anchor"></a>
								<h3>y</h3>
								<div class="tsd-signature tsd-kind-icon">y<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets the current y-value as chart data coordinates.</p>
									</div>
								</div>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Methods</h2>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="onpositionchanged" class="tsd-anchor"></a>
								<h3>onPositionChanged</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">on<wbr>Position<wbr>Changed<span class="tsd-signature-symbol">(</span>point<span class="tsd-signature-symbol">: </span><a href="wijmo.point.html" class="tsd-signature-type">Point</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Raises the <a href="wijmo_chart.linemarker.html#positionchanged">positionChanged</a> event.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>point: <a href="wijmo.point.html" class="tsd-signature-type">Point</a></h5>
												<div class="tsd-comment">
													<p>The target point at which to show the LineMarker.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="remove" class="tsd-anchor"></a>
								<h3>remove</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">remove<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Removes the LineMarker from the chart.</p>
											</div>
										</div>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
									</li>
								</ul>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Events</h2>
							<section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-class">
								<a name="positionchanged" class="tsd-anchor"></a>
								<h3>positionChanged</h3>
								<div class="tsd-signature tsd-kind-icon">position<wbr>Changed<span class="tsd-signature-symbol">:</span> <a href="wijmo.event.html" class="tsd-signature-type">Event</a><span class="tsd-signature-symbol">&lt;</span><a href="wijmo_chart.linemarker.html" class="tsd-signature-type">LineMarker</a><span class="tsd-signature-symbol">, </span><a href="wijmo.point.html" class="tsd-signature-type">Point</a><span class="tsd-signature-symbol">&gt;</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Occurs after the <a href="wijmo_chart.linemarker.html">LineMarker</a>'s position changes.</p>
									</div>
								</div>
							</section>
						</section>
					</div>