123456에서 123,456까지 표시 할 데이터 값에 쉼표를 추가해야합니다. 수많은 포럼과 지원을 검색해 보았지만 지금해야 할 일을 이해하지 못했습니다.데이터 값에 쉼표를 추가하는 방법
이 현재 스크립트 코드 : I가 필요
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
$('#container').highcharts({
chart: {
type: 'line',
marginRight: 130,
marginBottom: 25
},
title: {
text: 'Graph Title',
x: -20 //center
},
subtitle: {
text: 'Source: Name and site www.url.com',
x: -20
},
xAxis: {
categories: ['Jul-12', 'Aug-12', 'Sep-12', 'Oct-12', 'Nov-12', 'Dec-12',
'Jan-13', 'Feb-13', 'Mar-13', 'Apr-13']
},
yAxis: {
title: {
text: 'Price'
},
plotLines: [{
value: 0,
width: 1,
color: '#7c1440'
}]
},
tooltip: {
valueSuffix: ''
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'top',
x: -10,
y: 100,
borderWidth: 0
},
series: [{
name: 'HERC Index Value',
data: [230570, 231055, 231055, 232325, 232914, 241636, 241748, 241748, 242330, 242633]
}]
});
});
</script>
'데이터'값으로 표시 할 : 데이터 : 230,570, 231,055, 231,055, 232,325, 232,914, 241,636, 241,748, 241,748, 242,330 , 242,633].
우수! 고맙습니다! – OtherDavid