Skip to content

Commit c7a3746

Browse files
azure-pipelines[bot]tfsbuild
andauthored
Adding changes from build igniteui-xplat-examples-output+PRs_2025.2.26.2 (#740)
Co-authored-by: tfsbuild <tfsbuild@infragistics.com>
1 parent 0033662 commit c7a3746

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

  • samples/charts/data-chart/selection-matcher/src

samples/charts/data-chart/selection-matcher/src/index.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)