5.20231.904
wijmo.knockout.chart.analytics Class wjFlexChartMovingAverage Wijmo API Class

wjFlexChartMovingAverage Class

KnockoutJS binding for the MovingAverage object.

Use the wjFlexChartMovingAverage binding to add MovingAverage object to your KnockoutJS applications. For example:

<p>Here is a MovingAverage:</p>
<div data-bind="wjFlexChart: { itemsSource: trendItemsSource, bindingX: 'x' }">
    <div data-bind="wjFlexChartAxis: { wjProperty: 'axisX', title: 'country' }"></div>
    <div data-bind="wjFlexChartSeries: { chartType: 'Scatter', name: 'Base Data', binding: 'y' }"></div>
    <div data-bind="wjFlexChartMovingAverage: { binding: 'y', bindingX: 'x', period:2 }  "></div>
</div>

The wjFlexChartMovingAverage binding supports all read-write properties and events of the MovingAverage class.

Heirarchy

  • WjTrendLineBase
    • wjFlexChartMovingAverage