Skip to content

Commit

Permalink
Fix #8017 (data sample error when using series.encode)
Browse files Browse the repository at this point in the history
  • Loading branch information
100pah committed Mar 25, 2018
1 parent 81fb75e commit f5a9111
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/processor/dataSample.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ export default function (seriesType) {
sampler = sampling;
}
if (sampler) {
// Only support sample the first dim mapped from value axis.
seriesModel.setData(data.downSample(
valueAxis.dim, 1 / rate, sampler, indexSampler
data.mapDimension(valueAxis.dim), 1 / rate, sampler, indexSampler
));
}
}
Expand Down

0 comments on commit f5a9111

Please sign in to comment.