src/charts/tooltip.js
/**
         * Updates size and position of tooltip depending on the side of the chart we are in
         * @param  {Object} dataPoint DataPoint of the tooltip
         * @param  {Number} xPosition DataPoint's x position in the chart
         * @return void
         */
Updates size and position of tooltip depending on the side of the chart we are in
@param  {Object} dataPoint DataPoint of the tooltip
@param  {Number} xPosition DataPoint's x position in the chart
@return void
Updates size and position of tooltip depending on the side of the chart we are in @param { Object } dataPoint DataPoint of the tooltip @param { Number } xPosition DataPoint ' s x position in the chart @return void
function updatePositionAndSize(dataPoint, xPosition){
            tooltip
                .attr('width', tooltipWidth)
                .attr('height', tooltipHeight + 10);
            if ((xPosition - tooltipWidth) < 0) {
                tooltipTextContainer
                    .attr('transform', 'translate(' + (tooltipWidth - 185) + ',' + tooltipOffset.y + ')');
            } else {
                tooltipTextContainer
                    .attr('transform', 'translate(' + (-205) + ',' + tooltipOffset.y + ')');
            }
            tooltipDivider
                .attr('x2', tooltipWidth - 60);
        }
function updatePositionAndSize ( dataPoint , xPosition ) { tooltip . attr ( 'width' , tooltipWidth ) . attr ( 'height' , tooltipHeight + 10 ) ; if ( ( xPosition - tooltipWidth ) < 0 ) { tooltipTextContainer . attr ( 'transform' , 'translate(' + ( tooltipWidth - 185 ) + ',' + tooltipOffset . y + ')' ) ; } else { tooltipTextContainer . attr ( 'transform' , 'translate(' + ( - 205 ) + ',' + tooltipOffset . y + ')' ) ; } tooltipDivider . attr ( 'x2' , tooltipWidth - 60 ) ; }
Updates size and position of tooltip depending on the side of the chart we are in
 @param  {Object} dataPoint DataPoint of the tooltip
 @param  {Number} xPosition DataPoint's x position in the chart
 @return void
Updates size and position of tooltip depending on the side of the chart we are in @param { Object } dataPoint DataPoint of the tooltip @param { Number } xPosition DataPoint ' s x position in the chart @return void
// show tooltip to the right // Tooltip on the right // Tooltip on the left