jQuery UI Tabs and Highcharts display/rendering issue

前端 未结 13 2347
长发绾君心
长发绾君心 2020-12-28 18:57

Anyone ever used the tabs (jquery-ui-1.8.9) and pie charts from Highcharts 2.1.4 together? To put it simply, I have multiple tabs, where each tab s

13条回答
  •  一向
    一向 (楼主)
    2020-12-28 19:32

    Modification needed in order to make Highcharts work in hidden jQuery tabs. By default, jQuery sets display: none to hidden tabs, but with this approach Highcharts is unable to get the true width and height of the element. So instead, we position it absolutely and move it away from the viewport.

     
    

    adding example: http://www.highcharts.com/studies/jquery-ui-tabs.htm

提交回复
热议问题