# Wijmo_Angular_Chart.Wjflexchart

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								WjFlexChart Class
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>AngularJS directive for the <a href="wijmo_chart.flexchart.html">FlexChart</a> control.</p>
								</div>
								<p>Use the <b>wj-flex-chart</b> directive to add charts to your AngularJS applications.
									Note that directive and parameter names must be formatted using lower-case letters
								with dashes instead of camel case. For example:</p>
								<pre>&lt;p&gt;Here is a FlexChart control:&lt;/p&gt;
&lt;wj-flex-chart
  style="height:300px"
  items-source="data"
  binding-x="country"&gt;
  &lt;wj-flex-chart-axis
    wj-property="axisY"
    major-unit="5000"&gt;
  &lt;/wj-flex-chart-axis&gt;
  &lt;wj-flex-chart-series
    binding="sales"
    name="Sales"&gt;
  &lt;/wj-flex-chart-series&gt;
  &lt;wj-flex-chart-series
    binding="expenses"
    name="Expenses"&gt;
  &lt;/wj-flex-chart-series&gt;
  &lt;wj-flex-chart-series
    binding="downloads"
    name="Downloads"
    chart-type="LineSymbols"&gt;
  &lt;/wj-flex-chart-series&gt;
&lt;/wj-flex-chart&gt;</pre>
								<p>The example below creates a <a href="wijmo_chart.flexchart.html">FlexChart</a> control and binds it to a 'data' array
									exposed by the controller. The chart has three series objects, each corresponding to
									a property in the objects contained in the source array. The last series in the
									example uses the 'chart-type' attribute to override the default chart type used
								for the other series objects.</p>
								<p><a href="https://jsfiddle.net/Wijmo5/QNb9X/" target="_blank">Example</a></p>
								<p>The wj-flex-chart directive supports the following attributes:</p>
								<dl class="dl-horizontal">
									<dt>binding</dt>           <dd><code>@</code> The name of the property that contains Y
									values for the chart. You can override this at the series level.</dd>
									<dt>binding-x</dt>         <dd><code>@</code> The name of the property that contains X
									values for the chart. You can override this at the series level.</dd>
									<dt>chart-type</dt>        <dd><code>@</code> The default chart type to use in rendering series
									objects. You can override this at the series level. See <a href="../enums/wijmo_chart.charttype.html">ChartType</a>.</dd>
									<dt>control</dt>           <dd><code>=</code> A reference to the <a href="wijmo_chart.flexchart.html">FlexChart</a> control
									that this directive creates.</dd>
									<dt>footer</dt>            <dd><code>@</code> The text to display in the chart footer (plain
									text).</dd>
									<dt>footer-style</dt>       <dd><code>=</code> The style to apply to the chart footer.</dd>
									<dt>header</dt>            <dd><code>@</code> The text to display in the chart header (plain
									text).</dd>
									<dt>header-style</dt>      <dd><code>=</code> The style to apply to the chart header.</dd>
									<dt>initialized</dt>       <dd><code>&amp;</code> This event occurs after the binding has finished
									initializing the control with attribute values.</dd>
									<dt>is-initialized</dt><dd><code>=</code> A value indicating whether the binding has finished
									initializing the control with attribute values. </dd>
									<dt>interpolate-nulls</dt> <dd><code>@</code> The value indicating whether to interpolate or
									leave gaps when there are null values in the data.</dd>
									<dt>item-formatter</dt>    <dd><code>=</code> The formatter function that customizes the
									appearance of data points.</dd>
									<dt>items-source</dt>      <dd><code>=</code> An array or <a href="../interfaces/wijmo.icollectionview.html">ICollectionView</a> object that contains
									the data used to create the chart.</dd>
									<dt>legend-toggle</dt>     <dd><code>@</code> The value indicating whether clicking legend items
									toggles series visibility.</dd>
									<dt>options</dt>           <dd><code>=</code> Chart options that only apply to certain chart types.
									See <b>options</b> under <a href="wijmo_chart.flexchart.html">FlexChart</a> for details.</dd>
									<dt>palette</dt>           <dd><code>=</code> An array that contains the default colors used for
									displaying each series.</dd>
									<dt>plot-margin</dt>       <dd><code>=</code> The number of pixels of space to leave between the
									edges of the control and the plot area, or CSS-style margins.</dd>
									<dt>rotated</dt>           <dd><code>@</code> The value indicating whether to flip the axes so that
									X is vertical and Y is horizontal.</dd>
									<dt>selection</dt>         <dd><code>=</code> The series object that is selected.</dd>
									<dt>selection-mode</dt>    <dd><code>@</code> The <a href="../enums/wijmo_grid.selectionmode.html">SelectionMode</a> value indicating whether or what is
									selected when the user clicks a series.</dd>
									<dt>stacking</dt>          <dd><code>@</code> The <a href="../enums/wijmo_chart.stacking.html">Stacking</a> value indicating whether or how series
									objects are stacked or plotted independently.</dd>
									<dt>symbol-size</dt>       <dd><code>@</code> The size of the symbols used to render data points in Scatter,
										LineSymbols, and SplineSymbols charts, in pixels. You can override
									this at the series level.</dd>
									<dt>tooltip-content</dt>   <dd><code>@</code> The value to display in the
									<a href="wijmo_chart.charttooltip.html">ChartTooltip</a> content property.</dd>
									<dt>got-focus</dt>         <dd><code>&amp;</code> The <a href="wijmo_chart.flexchart.html#gotfocus">FlexChart.gotFocus</a> event handler.</dd>
									<dt>lost-focus</dt>        <dd><code>&amp;</code> The <a href="wijmo_chart.flexchart.html#lostfocus">FlexChart.lostFocus</a> event handler.</dd>
									<dt>rendering</dt>         <dd><code>&amp;</code> The <a href="wijmo_chart.flexchart.html#rendering">FlexChart.rendering</a> event handler.</dd>
									<dt>rendered</dt>          <dd><code>&amp;</code> The <a href="wijmo_chart.flexchart.html#rendered">FlexChart.rendered</a> event handler.</dd>
									<dt>series-visibility-changed</dt>
									<dd><code>&amp;</code> The <a href="wijmo_chart.flexchart.html#seriesvisibilitychanged">FlexChart.seriesVisibilityChanged</a> event handler.</dd>
									<dt>selection-changed</dt> <dd><code>&amp;</code> The <a href="wijmo_chart.flexchart.html#selectionchanged">FlexChart.selectionChanged</a> event handler.</dd>
								</dl>
								<p>The wj-flex-chart directive may contain the following child directives:
								<a href="wijmo_angular_chart.wjflexchartaxis.html">wijmo.angular.chart.WjFlexChartAxis</a>, <a href="wijmo_angular_chart.wjflexchartseries.html">wijmo.angular.chart.WjFlexChartSeries</a>, <a href="wijmo_angular_chart.wjflexchartlegend.html">wijmo.angular.chart.WjFlexChartLegend</a> and <a href="wijmo_angular_chart.wjflexchartdatalabel.html">wijmo.angular.chart.WjFlexChartDataLabel</a>.</p>
							</div>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<span class="tsd-signature-type">WjFlexChartCore</span>
									<ul class="tsd-hierarchy">
										<li>
											<span class="target">WjFlexChart</span>
										</li>
									</ul>
								</li>
							</ul>
						</section>
					</div>