moving var chart outside if else statement
vendor compiled assets