A google.visualization.BarChart不會在Firefox中爲我顯示工具提示,但會在Chrome中顯示它們。谷歌可視化API(圖表)工具提示在Firefox中不工作
我在Linux上使用Firefox 4.0.1。
A google.visualization.BarChart不會在Firefox中爲我顯示工具提示,但會在Chrome中顯示它們。谷歌可視化API(圖表)工具提示在Firefox中不工作
我在Linux上使用Firefox 4.0.1。
這可能與問題598「谷歌圖表工具:工具提示/線沒有顯示在Firefox上使用基本標籤」google-visualization-api-issues,當base tag與頁面位置不同時會再現。
一個可能的解決方案可能是使用jQuery來更改標籤的href屬性。
jQuery("base").attr('href', document.location);
chart.draw(data, options);
我認爲,這將是更好的補充基地標籤的框架圖,這樣
chart.draw(data, options);
jQuery(document).ready
(
function()
{
jQuery('iframe[name^=Drawing_Frame]').contents().find('head').append('<base href="'+document.location+'"></base>')
}
);
它爲我
從問題598:「現在繪圖基於內聯SVG並且不再是Drawing_Frame iframe元素。「 –
有提供解決方法這確實不是一個函數與現在問題上的基本標記混亂: http://code.google.com/p/google-visualization-api-issues/issues/detail?id=598#c7 –