2016-07-04 2 views
0

아래 그림에서 빨간색 사이클이있는 섹션을 제거하는 방법을 알고 싶습니다.하이 차트 : yAxis의 경로를 제거하는 방법은 무엇입니까?

enter image description here

아래 차트의 코드, 난 그냥 한 줄 필요가 있다고 생각을 숨기거나 그것이 내가 다른 부분을 어떻게했는지와 같은 투명 색상의 변경합니다.

$(function() { 
    $('#testTOPBOX123').highcharts({ 
     chart: { 
      type: 'area', 
      width:300, 
      height:200 
     }, 
     title: { 
      text: false, 
     }, 
     subtitle: { 
      text: false, 
     }, 
     xAxis: { 
      gridLineColor: 'transparent', 
     labels: 
      { 
       enabled: false 
      }, 
      lineColor: 'transparent', 
     }, 
     yAxis: { 
      gridLineColor: 'transparent', 
      showEmpty: false, 
     labels: 
      { 
       enabled: false 
      }, 
     title: 
     { 
       enabled: false 
      }, 
      tickLength: 0, 
      minorTickLength: 0, 
       minorGridLineWidth: 0, 
      lineColor: 'transparent', 
     }, 

     plotOptions: { 
      area: { 
       pointStart: 0, 
       marker: { 
        enabled: false, 
        symbol: 'circle', 
        radius: 2, 
        states: { 
         hover: { 
          enabled: true 
         } 
        } 
       } 
      } 
     }, 
     legend: { 
      enabled:false, 
     }, 
     credits: { 
         enabled: false 
         }, 
     series: [{ 
      name: 'USA', 
      data: [null, null, null, null, null, 6, 11, 32, 110, 235, 369, 640, 
       1005, 1436, 2063, 3057, 4618, 6444, 9822, 15468, 20434, 24126, 
       27387, 29459, 31056, 31982, 32040, 31233, 29224, 27342, 26662, 
       26956, 27912, 28999, 28965, 27826, 25579, 25722, 24826, 24605, 
       24304, 23464, 23708, 24099, 24357, 24237, 24401, 24344, 23586, 
       22380, 21004, 17287, 14747, 13076, 12555, 12144, 11009, 10950, 
       10871, 10824, 10577, 10527, 10475, 10421, 10358, 10295, 10104] 
     },] 
    }); 
}); 

답변

1

틱을 숨기려면 xAxis.tickLength를 사용할 수 있습니다. 다음은이 매개 변수에 대한 정보를 찾을 수 있습니다 http://api.highcharts.com/highcharts#xAxis.tickLength

xAxis: { 
    gridLineColor: 'transparent', 
    tickLength:0, 
labels: 
    { 
     enabled: false 
    }, 
    lineColor: 'transparent', 
}, 

을 그리고 여기 당신이 그것을 작동하는 방법을 실제 예를 찾을 수 있습니다, http://jsfiddle.net/otrss2ou/

안부를

관련 문제