Code beautification in `ag_chart_create_svg()`