This is an example of Viz-Charts with line-chart with filters. There are a lot of techniques this is one to solve the filtering issue.
Point to be noted is that you need to bind the Dataset of VizFrame by its ID and then apply the filtering on the FlattenedDataset
In the controller:
// defining...