I wonder how can I achieve such a goal: when I change the choice from the select combox, the data distribution in the pie gragh will change correspondingly.

The HTML code snippet:
<oj-option value="flow1">Flow1</oj-option>
<oj-option value="flow2">Flow2</oj-option>
<oj-option value="flow3">Flow3</oj-option>
The JS code snippet:
var barSeries = [{name: "field1", items: [90, 34]},
{name: "field2", items: [55, 30]},
{name: "field3", items: [36, 50]},
{name: "field4", items: [22, 46]},
{name: "field5", items: [60, 46]}];
self.barSeriesValue = ko.observableArray(barSeries);
To be simplified, the problem should be: how to obtain oj-option value from HTML and use it as a condition in JS to change the variable barSeries ?