2013-11-22 3 views
2

이 바이올린은 여러 시리즈를 사용하고 각각에 대해 축을 표시합니다. 단일 축을 사용하여 여러 축을 만들 수 있습니까? 당신은 단지 하나의 시리즈 두 번째 축 극단을 설정 한 바와 같이, y 축과 같은 동일한 http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/combo-multi-axes/하이 시리즈 다중 시리즈가없는 다중 축?

xAxis:[{ 
     categories:setup.x_mixed, 
     maxZoom:5, 
     minPadding: 0.2, 
     labels:{ 
      "enabled":setup.categories_label, 
      "y":1, 
      "style":{ 
      "fontSize":13, 
      "color":"#999", 
      fontFamily:"'helvetica neue',helvetica", 
      whiteSpace:"nowrap", 
      textOverflow:"clip", 
      width:"100%", 
      marginTop:legendSpacing 
      }, 
      formatter:function() { 
      return this.value.split("|")[0] 
      } 
     }, 
     lineColor:"rgba(255,255,255,0)", 
     tickWidth:0, 
     offset:0 
     }, { // Secondary yAxis 
     categories:setup.x_mixed, 
     maxZoom:5, 
     minPadding: 0.2, 
     labels:{ 
      "enabled":setup.categories_label, 
      "y":16, 
      "style":{ 
      "fontSize":13, 
      "color":"#999", 
      fontFamily:"'helvetica neue',helvetica", 
      whiteSpace:"nowrap", 
      textOverflow:"clip", 
      width:"100%", 
      marginTop:legendSpacing 
      }, 
      formatter:function() { 
      return this.value.split("|")[1] 
      } 
     }, 
     lineColor:"rgba(255,255,255,0)", 
     tickWidth:0, 
     offset:0 

     }], 

답변

2

은 아주 간단합니다,

선언이 x 축 당신은 opposite:true

로 중 하나의 예에서 언급 여기에이 피들에 표시된 것처럼 getExtremes() 및 setExtremes()를 사용하는 첫 번째 것과 동일 http://jsfiddle.net/W43Zb/

희망이 도움이 될

관련 문제