diff --git a/libsrc/core/paje_trace.cpp b/libsrc/core/paje_trace.cpp index 6840b16c..c58912a4 100644 --- a/libsrc/core/paje_trace.cpp +++ b/libsrc/core/paje_trace.cpp @@ -942,6 +942,7 @@ namespace ngcore .data(data) .size('size') .color(d => color(d.name)) + .tooltipTitle((d, node) => { return node.parent ? node.parent.data.name + " → " + d.name : d.name; }) .tooltipContent((d, node) => { return `Time: ${getTime(d.time)}
` + `calls: ${d.calls}
` @@ -950,6 +951,12 @@ namespace ngcore + `avg: ${getTime(d.avg)}` }) (document.getElementById('chart')); + + // Line breaks in tooltip + var all = document.getElementsByClassName('sunbirst-tooltip'); + for (var i = 0; i < all.length; i++) { + all[i].white_space = ""; + } )CODE_" << std::endl;