# Wijmo_Chart.Piedatalabel

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								PieDataLabel Class
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>The point data label for FlexPie.</p>
								</div>
							</div>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<a href="wijmo_chart.datalabelbase.html" class="tsd-signature-type">DataLabelBase</a>
									<ul class="tsd-hierarchy">
										<li>
											<span class="target">PieDataLabel</span>
											<ul class="tsd-hierarchy">
												<li>
													<a href="wijmo_angular2_chart.wjflexpiedatalabel.html" class="tsd-signature-type">WjFlexPieDataLabel</a>
												</li>
											</ul>
										</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_chart.piedatalabel.html#border" class="tsd-kind-icon">border</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="wijmo_chart.piedatalabel.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_chart.piedatalabel.html#content" class="tsd-kind-icon">content</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="wijmo_chart.piedatalabel.html#offset" class="tsd-kind-icon">offset</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_chart.piedatalabel.html#position" class="tsd-kind-icon">position</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 tsd-is-inherited"><a href="wijmo_chart.piedatalabel.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_chart.piedatalabel.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_chart.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 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">
								<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">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the position of the data labels.</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 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_chart.piedatalabel.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>