Associated appropriate build function with appropriate chart generating function.