2014-10-16 3 views
0

아래의 코드는 012F이며 아래 코드를 참조하십시오. x 축의 플래그가 표시되지 않는 이유는 누구나 알 수 있습니까? 이 문제는 이중 창이 있고 위쪽 창에 시리즈가없는 경우에만 발생합니다.듀얼 팬 차트의 x 축에 배치 플래그

$(function() { 
    $.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=usdeur.json&callback=?', function (data) { 

     // Create the chart 
     $('#container').highcharts('StockChart', { 

      rangeSelector: { 
       selected: 1 
      }, 

      title: { 
       text: 'USD to EUR exchange rate' 
      }, 

      yAxis: { 
       title: { 
        text: 'Exchange rate' 
       }, 
       top: '72%', 
       height: '28%', 
      }, 

      series: [{ 
       name: 'USD to EUR', 
       data: data, 
       id: 'dataseries', 
       tooltip: { 
        valueDecimals: 4 
       } 
      }, { 
       type: 'flags', 
       name: 'Flags on series', 
       data: [{ 
        x: Date.UTC(2011, 1, 22), 
        title: 'On series' 
       }, { 
        x: Date.UTC(2011, 3, 28), 
        title: 'On series' 
       }], 
       onSeries: 'dataseries', 
       shape: 'squarepin' 
      }, { 
       type: 'flags', 
       name: 'Flags on axis', 
       data: [{ 
        x: Date.UTC(2011, 2, 1), 
        title: 'On axis' 
       }, { 
        x: Date.UTC(2011, 3, 1), 
        title: 'On axis' 
       }], 
       shape: 'squarepin' 
      }] 
     }); 
    }); 
}); 

도움을 주시면 감사하겠습니다.

답변

1

당신이 작동 최고 매개 변수를 사용하지 않으면 here. 버그처럼 보입니다. here

0

제거 위로와 용기 내부의 Y 축 높이와가에 플래그를 배치 X 축

yAxis: { 
      title: { 
       text: 'Exchange rate' 
      }, 
    }, 

확인 바이올린

+0

아니요. 플래그십 배치가 xAxis에 있어야합니다. 시리즈에 없습니다. – Belvia

+0

업데이트 된 답변 확인 – Swetha

관련 문제