src/charts/tooltip.js
/**
         * Draws the data entries inside the tooltip for a given topic
         * @param  {Object} topic Topic to extract data from
         * @return void
         */
Draws the data entries inside the tooltip for a given topic
@param  {Object} topic Topic to extract data from
@return void
Draws the data entries inside the tooltip for a given topic @param { Object } topic Topic to extract data from @return void
function updateContent(topic){
            let name = topic.name,
                tooltipRight,
                tooltipLeftText,
                tooltipRightText,
                elementText;
            tooltipLeftText = topic.topicName || name;
            tooltipRightText = getValueText(topic);
            elementText = tooltipBody
                .append('text')
                .classed('tooltip-left-text', true)
                .attr('dy', '1em')
                .attr('x', ttTextX - 20)
                .attr('y', ttTextY)
                .style('fill', tooltipTextColor)
                .text(tooltipLeftText)
                .call(textWrap, tooltipMaxTopicLength, -25);
            tooltipRight = tooltipBody
                .append('text')
                .classed('tooltip-right-text', true)
                .attr('dy', '1em')
                .attr('x', ttTextX + 8)
                .attr('y', ttTextY)
                .style('fill', tooltipTextColor)
                .text(tooltipRightText);
            textSize = elementText.node().getBBox();
            tooltipHeight += textSize.height + 5;
            tooltipRight.attr('x', tooltipWidth - tooltipRight.node().getBBox().width - 10 - tooltipWidth / 4)
            tooltipBody
                .append('circle')
                .classed('tooltip-circle', true)
                .attr('cx', 23 - tooltipWidth / 4)
                .attr('cy', (ttTextY + circleYOffset))
                .attr('r', 5)
                .style('fill', colorMap[name])
                .style('stroke-width', 1);
            ttTextY += textSize.height + 7;
        }
function updateContent ( topic ) { let name = topic . name , tooltipRight , tooltipLeftText , tooltipRightText , elementText ; tooltipLeftText = topic . topicName || name ; tooltipRightText = getValueText ( topic ) ; elementText = tooltipBody . append ( 'text' ) . classed ( 'tooltip-left-text' , true ) . attr ( 'dy' , '1em' ) . attr ( 'x' , ttTextX - 20 ) . attr ( 'y' , ttTextY ) . style ( 'fill' , tooltipTextColor ) . text ( tooltipLeftText ) . call ( textWrap , tooltipMaxTopicLength , - 25 ) ; tooltipRight = tooltipBody . append ( 'text' ) . classed ( 'tooltip-right-text' , true ) . attr ( 'dy' , '1em' ) . attr ( 'x' , ttTextX + 8 ) . attr ( 'y' , ttTextY ) . style ( 'fill' , tooltipTextColor ) . text ( tooltipRightText ) ; textSize = elementText . node ( ) . getBBox ( ) ; tooltipHeight += textSize . height + 5 ; tooltipRight . attr ( 'x' , tooltipWidth - tooltipRight . node ( ) . getBBox ( ) . width - 10 - tooltipWidth / 4 ) tooltipBody . append ( 'circle' ) . classed ( 'tooltip-circle' , true ) . attr ( 'cx' , 23 - tooltipWidth / 4 ) . attr ( 'cy' , ( ttTextY + circleYOffset ) ) . attr ( 'r' , 5 ) . style ( 'fill' , colorMap [ name ] ) . style ( 'stroke-width' , 1 ) ; ttTextY += textSize . height + 7 ; }
Draws the data entries inside the tooltip for a given topic
 @param  {Object} topic Topic to extract data from
 @return void
Draws the data entries inside the tooltip for a given topic @param { Object } topic Topic to extract data from @return void
// Not sure if necessary