Fix a class name bug in the distribution bar

This commit is contained in:
Michael Lange
2018-01-16 16:04:43 -08:00
parent f8e563ba71
commit cff01570d6

View File

@@ -99,7 +99,7 @@ export default Component.extend(WindowResizable, {
});
slices = slices.merge(slicesEnter);
slices.attr('class', d => d.className || `slice-${filteredData.indexOf(d)}`);
slices.attr('class', d => d.className || `slice-${_data.indexOf(d)}`);
const setWidth = d => `${width * d.percent - (d.index === sliceCount - 1 || d.index === 0 ? 1 : 2)}px`
const setOffset = d => `${width * d.offset + (d.index === 0 ? 0 : 1)}px`