src/charts/tooltip.js
/**
         * Updates tooltip title, content, size and position
         *
         * @param  {lineChartPointByDate} dataPoint  Current datapoint to show info about
         * @param  {Number} xPosition           Position of the mouse on the X axis
         * @return void
         */
Updates tooltip title, content, size and position
@param  {lineChartPointByDate} dataPoint  Current datapoint to show info about
@param  {Number} xPosition           Position of the mouse on the X axis
@return void
Updates tooltip title content size and position @param { lineChartPointByDate } dataPoint Current datapoint to show info about @param { Number } xPosition Position of the mouse on the X axis @return void
function updateTooltip(dataPoint, xPosition) {
            var topics = dataPoint[topicLabel];
            if (forceOrder.length) {
                topics = _sortByForceOrder(topics);
            }
            cleanContent();
            resetSizeAndPositionPointers();
            updateTitle(dataPoint);
            topics.forEach(updateContent);
            updatePositionAndSize(dataPoint, xPosition);
        }
function updateTooltip ( dataPoint , xPosition ) { var topics = dataPoint [ topicLabel ] ; if ( forceOrder . length ) { topics = _sortByForceOrder ( topics ) ; } cleanContent ( ) ; resetSizeAndPositionPointers ( ) ; updateTitle ( dataPoint ) ; topics . forEach ( updateContent ) ; updatePositionAndSize ( dataPoint , xPosition ) ; }
Updates tooltip title, content, size and position
 @param  {lineChartPointByDate} dataPoint  Current datapoint to show info about
 @param  {Number} xPosition           Position of the mouse on the X axis
 @return void
Updates tooltip title content size and position @param { lineChartPointByDate } dataPoint Current datapoint to show info about @param { Number } xPosition Position of the mouse on the X axis @return void
// sort order by forceOrder array if passed