1

I have 2 drill down charts on the same page inside 2 different div containers with different ids.

The parent level renders correctly but when i try to drill down the 2nd chart, the drill down operation takes place on the first chart. Can anyone decouple these 2 charts and tell me what am i doing wrong here. Thank you.

here is the jfiddle link: http://jsfiddle.net/ePg89/

Here are the 2 divs:

    <div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>
<div id="container1" style="min-width: 400px; height: 400px; margin: 0 auto"></div>
4

1 回答 1

2

因为您setChart()对两个图表都使用了函数并且不知道应该更改哪个图表。我建议将参数添加到chartID 之类的函数中,然后您可以控制更新哪个项目。

http://jsfiddle.net/ePg89/1/

于 2013-06-19T13:06:49.900 回答