for type select javascript graph