src/charts/line.js
/**
         * This function creates the graph using the selection and data provided
         *
         * @param {D3Selection} _selection A d3 selection that represents
         *                                  the container(s) where the chart(s) will be rendered
         * @param {LineChartData} _data The data to attach and generate the chart
         */
This function creates the graph using the selection and data provided
@param {D3Selection} _selection A d3 selection that represents
the container(s) where the chart(s) will be rendered
@param {LineChartData} _data The data to attach and generate the chart
This function creates the graph using the selection and data provided @param { D3Selection } _selection A d3 selection that represents the container ( s ) where the chart ( s ) will be rendered @param { LineChartData } _data The data to attach and generate the chart
function exports(_selection) {
            _selection.each(function(_data) {
                ({
                    dataByTopic,
                    dataByDate
                } = cleanData(_data));
                chartWidth = width - margin.left - margin.right;
                chartHeight = height - margin.top - margin.bottom;
                buildScales();
                buildSVG(this);
                buildAxis();
                drawAxis();
                buildGradient();
                drawLines();
                if (shouldShowTooltip()) {
                    drawVerticalMarker();
                    drawHoverOverlay();
                    addMouseEvents();
                }
            });
        }
function exports ( _selection ) { _selection . each ( function ( _data ) { ( { dataByTopic , dataByDate } = cleanData ( _data ) ) ; chartWidth = width - margin . left - margin . right ; chartHeight = height - margin . top - margin . bottom ; buildScales ( ) ; buildSVG ( this ) ; buildAxis ( ) ; drawAxis ( ) ; buildGradient ( ) ; drawLines ( ) ; if ( shouldShowTooltip ( ) ) { drawVerticalMarker ( ) ; drawHoverOverlay ( ) ; addMouseEvents ( ) ; } } ) ; }
This function creates the graph using the selection and data provided
 @param {D3Selection} _selection A d3 selection that represents
                                  the container(s) where the chart(s) will be rendered
 @param {LineChartData} _data The data to attach and generate the chart
This function creates the graph using the selection and data provided @param { D3Selection } _selection A d3 selection that represents the container ( s ) where the chart ( s ) will be rendered @param { LineChartData } _data The data to attach and generate the chart