Improve API for defining chart "insert" method