Add legends to Chart.hpp