File tree Expand file tree Collapse file tree
samples/charts/data-chart/selection-matcher/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,22 +138,24 @@ export default class Sample extends React.Component<any, any> {
138138 var chart = this . chart ;
139139
140140 this . _timer = setInterval ( ( ) => {
141+ var data = this . energyRenewableConsumption ;
141142
142- var matcher = new IgrSeriesMatcher ( ) ;
143- var data = this . energyRenewableConsumption ;
143+ var matcher = new IgrSeriesMatcher ( ) ;
144144
145- var selection = new IgrChartSelection ( ) ;
145+ var selection = new IgrChartSelection ( ) ;
146146 selection . item = data [ 1 ] ;
147147 matcher . memberPath = "hydro" ;
148148 matcher . memberPathType = "ValueMemberPath" ;
149149 selection . matcher = matcher ;
150150 chart . selectedSeriesItems . add ( selection ) ;
151151
152+ var matcher2 = new IgrSeriesMatcher ( ) ;
153+
152154 var selection2 = new IgrChartSelection ( ) ;
153155 selection2 . item = data [ 2 ] ;
154- matcher . memberPath = "wind" ;
155- matcher . memberPathType = "ValueMemberPath" ;
156- selection2 . matcher = matcher ;
156+ matcher2 . memberPath = "wind" ;
157+ matcher2 . memberPathType = "ValueMemberPath" ;
158+ selection2 . matcher = matcher2 ;
157159
158160 chart . selectedSeriesItems . add ( selection2 ) ;
159161
You can’t perform that action at this time.
0 commit comments