2014-07-10 3 views
0

This Demo과 같은 하이 차트 - 스파이더 웹을 만들려고하지만 yAxis 값을 업데이트/하드 코딩해야합니다. 또한 색상, 글꼴 및 크기를 스타일러스로 지정해야합니다. 어떻게 나에게 알려주시겠습니까? 기본 단위를 표시하지 않고 차트 만 표시하는 방법이 있습니까?하이 차트 단위 표시 비활성화 방법 없음

$(function() { 

    $('#container').highcharts({ 

     chart: { 
      polar: true, 
      type: 'line' 
     }, 

     title: { 
      text: 'Budget vs spending', 
      x: -80 
     }, 

     pane: { 
      size: '80%' 
     }, 

     xAxis: { 
      categories: ['Sales', 'Marketing', 'Development', 'Customer Support', 
        'Information Technology', 'Administration'], 
      tickmarkPlacement: 'on', 
      lineWidth: 0 
     }, 

     yAxis: { 
      gridLineInterpolation: 'polygon', 
      lineWidth: 0, 
      min: 0 
     }, 

     tooltip: { 
      shared: true, 
      pointFormat: '<span style="color:{series.color}">{series.name}: <b>${point.y:,.0f}</b><br/>' 
     }, 

     legend: { 
      align: 'right', 
      verticalAlign: 'top', 
      y: 70, 
      layout: 'vertical' 
     }, 

     series: [{ 
      name: 'Allocated Budget', 
      data: [43000, 19000, 60000, 35000, 17000, 10000], 
      pointPlacement: 'on' 
     }, { 
      name: 'Actual Spending', 
      data: [50000, 39000, 42000, 31000, 26000, 14000], 
      pointPlacement: 'on' 
     }] 

    }); 
}); 

감사

+0

에 오신 것을 환영합니다에 대한 http://www.highcharts.com/docs/chart-design-and-style/colors를 확인할 수 있습니다. [Stack Overflow : How to ask] (http://stackoverflow.com/questions/how-to-ask) 및 [Jon Skeet의 질문 체크리스트] (http://msmvps.com/blogs/jon_skeet/archive/2012)를 읽어보십시오. /11/24/stack-overflow-question-checklist.aspx) 유용한 유용한 답변을 얻을 수있는 좋은 질문을하는 방법을 찾으십시오. } –

답변

0
$(function() { 

$('#container').highcharts({ 

    chart: { 
     polar: true, 
     type: 'line' 
    }, 

    title: { 
     text: 'Budget vs spending', 
     x: -80 
    }, 

    pane: { 
     size: '80%' 
    }, 

    xAxis: { 
     categories: ['Sales', 'Marketing', 'Development', 'Customer Support', 
       'Information Technology', 'Administration'], 
     tickmarkPlacement: 'on', 
     lineWidth: 0 
    }, 

    yAxis: { 
     gridLineInterpolation: 'polygon', 
     lineWidth: 0, 
     min: 0, 
     labels: { 
      formatter: function() { 
      return null; 
      } 
     }, 
     title: { 
      text: '10' 
     },    
    }, 

    tooltip: { 
     shared: true, 
     pointFormat: '<span style="color:{series.color}">{series.name}: <b>${point.y:,.0f}</b><br/>' 
    }, 

    legend: { 
     align: 'right', 
     verticalAlign: 'top', 
     y: 70, 
     layout: 'vertical' 
    }, 

    series: [{ 
     name: 'Allocated Budget', 
     data: [43000, 19000, 60000, 35000, 17000, 10000], 
     pointPlacement: 'on' 
    }, { 
     name: 'Actual Spending', 
     data: [50000, 39000, 42000, 31000, 26000, 14000], 
     pointPlacement: 'on' 
    }] 

}); 
}); 

당신은 또한 스택 오버플로 색상과 스타일