2
jqplot을 사용하고 있는데 X 축의 간격에 문제가 있습니다. 여기 jqplot x 축 간격
$(document).ready(function(){
var plot3 = $.jqplot('CogsLineGraph', [[1,2,3,4,5,6], [2,3,4,5,6,7], [3,4,5,6,7,8]],
{
title:'Cogs (Last 6 Months)',
seriesDefaults:
{
rendererOptions: {smooth: true}
},
series:[
{
lineWidth:1,
markerOptions: { size:7, style:'dimaond' }
},
{
lineWidth:1,
markerOptions: { size: 7, style:"dimaond" }
},
{
lineWidth:1,
markerOptions: { size:7, style:"filledSquare" }
}
]
}
);
});
웹 페이지에 표시되는 그래프의 이미지이다 : 여기서
내 코드 인 X 축 상
의 값은 다음
0, 0.5, 1, 1.5, 2, 2.5 등
전자 도움말은 다음과 같이 X 축에 대한 값은 같은 것을 내 코드를 수정하려면,
0, 1, 2, 3 등