2012-10-30 1 views
0

저는 jqPlot을 처음 접해서 사용해보기로했습니다.jqPlot에서 x 축 틱을 축에 더 가깝게 가져 오는 방법?

해결할 수없는 문제가 있습니다.

enter image description here

너무 멀리 x 축 아래에있는 (등 '7월') 개월 틱. 진드기를 축에 더 가깝게 만드는 방법이 있습니까? 기본적

axesDefaults: { 
      labelRenderer: $.jqplot.CanvasAxisLabelRenderer 
     }, 
     axes: { 
      xaxis: { 
       renderer: $.jqplot.CategoryAxisRenderer, 
       rendererOptions: { 
        tickRenderer: $.jqplot.AxisTickRenderer, 
        tickOptions: { 
         size: 2 
        }}, 
       ticks: ticks, 
       label: xAxisTitle, 
       min: 0 
      }, 
      yaxis: { 
       label: yAxisTitle, 
       pad: 1.05 
      } 
     } 

답변

2

는 진드기 그래프에 가까운 다음과 같이 축의

옵션이다.

컨테이너 크기 문제 여야합니다. http://jsfiddle.net/WdLnm/135/ : (아마도 테이블 내부에 legend location 참조)

Tick documentation

+1

기본 바이올린 예 라벨을 이동, 그것을 줄이기 위해 시도 – sdespont