<verticalAxis> <LinearAxis id="hAxis" labelJsFunction="axisLabelFunc"/> </verticalAxis>
// 파라메터 설명 // id : 축의 ID // value : 현재 아이템에 맞는 축의 라벨 값 function axisLabelFunc(id, value){ var s = insertComma(value); return s + " 원"; } // 숫자에 천단위 콤마 찍어 반환하는 함수. function insertComma(n) { var reg = /(^[+-]?\d+)(\d{3})/; // 정규식 n += ""; while(reg.test(n)) n = n.replace(reg, '$1' + "," + '$2'); return n; }