Wijmo UI for the Web
KO ScatterChart Binding
Wijmo User Guide > Concepts > Integrating Frameworks > Knockout > Two-Way Live Binding > KO ScatterChart Binding

Data-binding options:

Example:

In this example, the ViewModel is defined specifically for use with the scatter chart. It has a seriesList property that is bound in the View. If this value changes, the widgets automatically respond to them. The widgets also update the ViewModel values as they modify them.

Create a ViewModel:

ViewModel Script
Copy Code
var viewModel = {
    seriesList: ko.observableArray([createRandomSeriesList('legend' + index)])
};

Create View with Bound Controls:

View Markup
Copy Code
<div id="wijscatterchart" data-bind="wijscatterchart: { seriesList: seriesList }"></div>
See Also

Concepts

Widgets

Reference