# Wijmo_Angular2_Chart.Wjflexpiedatalabel

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								WjFlexPieDataLabel Class
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>Angular 2 component for the <a href="wijmo_chart.piedatalabel.html">wijmo.chart.PieDataLabel</a> class.</p>
								</div>
								<p>The <b>wj-flex-pie-data-label</b> component must be
								contained in a <a href="wijmo_angular2_chart.wjflexpie.html">wijmo.angular2.chart.WjFlexPie</a> component.</p>
								<p>Use the <b>wj-flex-pie-data-label</b> component to add <b>PieDataLabel</b> controls to your
									Angular 2 applications. For details about Angular 2 markup syntax, see
								<a href="/wijmo/docs/GettingStarted/Angular-Components">Angular 2 Markup</a>.</p>
								<p>The <b>WjFlexPieDataLabel</b> component is derived from the <b>PieDataLabel</b> class and
								inherits all its properties, events and methods.</p>
							</div>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<a href="wijmo_chart.piedatalabel.html" class="tsd-signature-type">PieDataLabel</a>
									<ul class="tsd-hierarchy">
										<li>
											<span class="target">WjFlexPieDataLabel</span>
										</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>
												Properties
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="wijmo_angular2_chart.wjflexpiedatalabel.html#border" class="tsd-kind-icon">border</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="wijmo_angular2_chart.wjflexpiedatalabel.html#connectingline" class="tsd-kind-icon">connecting<wbr>Line</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="wijmo_angular2_chart.wjflexpiedatalabel.html#content" class="tsd-kind-icon">content</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_angular2_chart.wjflexpiedatalabel.html#initialized" class="tsd-kind-icon">initialized</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_angular2_chart.wjflexpiedatalabel.html#isinitialized" class="tsd-kind-icon">is<wbr>Initialized</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="wijmo_angular2_chart.wjflexpiedatalabel.html#offset" class="tsd-kind-icon">offset</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="wijmo_angular2_chart.wjflexpiedatalabel.html#position" class="tsd-kind-icon">position</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_angular2_chart.wjflexpiedatalabel.html#renderingng" class="tsd-kind-icon">rendering<wbr>Ng</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_angular2_chart.wjflexpiedatalabel.html#wjproperty" class="tsd-kind-icon">wj<wbr>Property</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_angular2_chart.wjflexpiedatalabel.html#created" class="tsd-kind-icon">created</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="wijmo_angular2_chart.wjflexpiedatalabel.html#onrendering" class="tsd-kind-icon">on<wbr>Rendering</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 tsd-is-inherited"><a href="wijmo_angular2_chart.wjflexpiedatalabel.html#rendering" class="tsd-kind-icon">rendering</a></li>
										</ul>
									</section>
								</div>
							</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 tsd-is-inherited">
								<a name="border" class="tsd-anchor"></a>
								<h3>border</h3>
								<div class="tsd-signature tsd-kind-icon">border<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_chart.datalabelbase.html">DataLabelBase</a>.<a href="wijmo_chart.datalabelbase.html#border">border</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets a value indicating whether the data labels have borders.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
								<a name="connectingline" class="tsd-anchor"></a>
								<h3>connectingLine</h3>
								<div class="tsd-signature tsd-kind-icon">connecting<wbr>Line<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_chart.datalabelbase.html">DataLabelBase</a>.<a href="wijmo_chart.datalabelbase.html#connectingline">connectingLine</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets a value indicating whether to draw lines that connect
										labels to the data points.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
								<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">any</span></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_chart.datalabelbase.html">DataLabelBase</a>.<a href="wijmo_chart.datalabelbase.html#content">content</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the content of data labels.</p>
									</div>
									<p>The content can be specified as a string or as a function that
									takes <a href="wijmo_grid.hittestinfo.html">HitTestInfo</a> object as a parameter.</p>
									<p>When the label content is a string, it can contain any of the following
									parameters:</p>
									<ul>
										<li><b>seriesName</b>: Name of the series that contains the data point (FlexChart only).</li>
										<li><b>pointIndex</b>: Index of the data point.</li>
										<li><b>value</b>: <b>Value</b> of the data point.</li>
										<li><b>x</b>: <b>x</b>-value of the data point (FlexChart only).</li>
										<li><b>y</b>: <b>y</b>-value of the data point (FlexChart only).</li>
										<li><b>name</b>: <b>Name</b> of the data point.</li>
										<li><b>propertyName</b>: any property of data object.</li>
									</ul>
									<p>The parameter must be enclosed in curly brackets, for example 'x={x}, y={y}'.</p>
									<p>In the following example, we show the y value of the data point in the labels.</p>
									<pre> // Create a chart and show y data in labels positioned above the data point.
 var chart = new FlexChart('#theChart');
 chart.initialize({
     itemsSource: data,
     bindingX: 'country',
     series: [
         { name: 'Sales', binding: 'sales' },
         { name: 'Expenses', binding: 'expenses' },
         { name: 'Downloads', binding: 'downloads' }],
 });
 chart.dataLabel.position = "Top";
 chart.dataLabel.content = "{country} {seriesName}:{y}";
</pre>
									<p>The next example shows how to set data label content using a function.</p>
									<pre> // Set the data label content
 chart.dataLabel.content = function (ht) {
   return ht.name + ":" + ht.value.toFixed();
 }
</pre>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="initialized" class="tsd-anchor"></a>
								<h3>initialized</h3>
								<div class="tsd-signature tsd-kind-icon">initialized<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">EventEmitter</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>This event is triggered after the component has been initialized by Angular, that is
										all bound properties have been assigned and child components (if any) have been initialized.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="isinitialized" class="tsd-anchor"></a>
								<h3>isInitialized</h3>
								<div class="tsd-signature tsd-kind-icon">is<wbr>Initialized<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>Indicates whether the component has been initialized by Angular.
										Changes its value from false to true right before triggering the <b>initialized</b> event.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
								<a name="offset" class="tsd-anchor"></a>
								<h3>offset</h3>
								<div class="tsd-signature tsd-kind-icon">offset<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_chart.datalabelbase.html">DataLabelBase</a>.<a href="wijmo_chart.datalabelbase.html#offset">offset</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the offset from label to the data point.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
								<a name="position" class="tsd-anchor"></a>
								<h3>position</h3>
								<div class="tsd-signature tsd-kind-icon">position<span class="tsd-signature-symbol">:</span> <a href="../enums/wijmo_chart.pielabelposition.html" class="tsd-signature-type">PieLabelPosition</a></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_chart.piedatalabel.html">PieDataLabel</a>.<a href="wijmo_chart.piedatalabel.html#position">position</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the position of the data labels.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="renderingng" class="tsd-anchor"></a>
								<h3>renderingNg</h3>
								<div class="tsd-signature tsd-kind-icon">rendering<wbr>Ng<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">EventEmitter</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Angular (EventEmitter) version of the Wijmo <b>rendering</b> event for programmatic access.
											Use this event name if you want to subscribe to the Angular version of the event in code.
										In template bindings use the conventional <b>rendering</b> Wijmo event name.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="wjproperty" class="tsd-anchor"></a>
								<h3>wjProperty</h3>
								<div class="tsd-signature tsd-kind-icon">wj<wbr>Property<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets a name of a property that this component is assigned to.
										Default value is 'dataLabel'.</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="created" class="tsd-anchor"></a>
								<h3>created</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">created<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>If you create a custom component inherited from a Wijmo component, you can override this
													method and perform necessary initializations that you usually do in a class constructor.
													This method is called in the last line of a Wijmo component constructor and allows you
													to not declare your custom component's constructor at all, thus preventing you from a necessity
												to maintain constructor parameters and keep them in synch with Wijmo component's constructor parameters.</p>
											</div>
										</div>
										<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 tsd-is-inherited">
								<a name="onrendering" class="tsd-anchor"></a>
								<h3>onRendering</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
									<li class="tsd-signature tsd-kind-icon">on<wbr>Rendering<span class="tsd-signature-symbol">(</span>e<span class="tsd-signature-symbol">: </span><a href="wijmo_chart.datalabelrendereventargs.html" class="tsd-signature-type">DataLabelRenderEventArgs</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
											<p>Inherited from <a href="wijmo_chart.datalabelbase.html">DataLabelBase</a>.<a href="wijmo_chart.datalabelbase.html#onrendering">onRendering</a></p>
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Raises the <a href="wijmo_angular2_chart.wjflexpiedatalabel.html#rendering">rendering</a> event.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>e: <a href="wijmo_chart.datalabelrendereventargs.html" class="tsd-signature-type">DataLabelRenderEventArgs</a></h5>
												<div class="tsd-comment">
													<p>The <a href="wijmo_chart.datalabelrendereventargs.html">DataLabelRenderEventArgs</a> object used to render the label.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
										<p>True if the event was not canceled.</p>
									</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 tsd-is-inherited">
								<a name="rendering" class="tsd-anchor"></a>
								<h3>rendering</h3>
								<div class="tsd-signature tsd-kind-icon">rendering<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.datalabel.html" class="tsd-signature-type">DataLabel</a><span class="tsd-signature-symbol">, </span><a href="wijmo_chart.datalabelrendereventargs.html" class="tsd-signature-type">DataLabelRenderEventArgs</a><span class="tsd-signature-symbol">&gt;</span></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_chart.datalabelbase.html">DataLabelBase</a>.<a href="wijmo_chart.datalabelbase.html#rendering">rendering</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Occurs before the data label is rendered.</p>
									</div>
								</div>
							</section>
						</section>
					</div>