return chart element and svg