Break out code into functions
Break out code into functions

karlhorky/chartist-plugin-line-tooltip,naoisegolden/chartist-plugin-line-tooltip,karlhorky/chartist-plugin-line-tooltip,naoisegolden/chartist-plugin-line-tooltip