integrated groovy script with bar chart view