Adding elements to chart works fine