Create jsvascript logic to include Google chart