dynamic calculation of column width for chart view