separate generate_bar_chart_url method