Skip to content
Snippets Groups Projects
Commit ef0d0dfe authored by Naab, Daniel James's avatar Naab, Daniel James
Browse files

Add fixed-positioned wrappers on some components, so the tooltip mouse handler...

Add fixed-positioned wrappers on some components, so the tooltip mouse handler will always be above them.
parent 3f169ff3
No related branches found
No related tags found
No related merge requests found
......@@ -102,11 +102,12 @@ const plotDataLine = function (elem, {visible, lines, tsKey, xScale, yScale}) {
};
const plotDataLines = function (elem, {visible, tsLinesMap, tsKey, xScale, yScale}) {
const elemId = `ts-${tsKey}-group`;
const plotDataLines = function (elem, {visible, tsLinesMap, tsKey, xScale, yScale}, container) {
container = container || elem.append('g');
elem.selectAll(`#${elemId}`).remove();
const tsLineGroup = elem
const elemId = `ts-${tsKey}-group`;
container.selectAll(`#${elemId}`).remove();
const tsLineGroup = container
.append('g')
.attr('id', elemId)
.classed('tsKey', true);
......@@ -114,6 +115,8 @@ const plotDataLines = function (elem, {visible, tsLinesMap, tsKey, xScale, yScal
for (const lines of Object.values(tsLinesMap)) {
plotDataLine(tsLineGroup, {visible, lines, tsKey, xScale, yScale});
}
return container;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment