我正在使用jqplot。我正面臨傳說中的一些問題。 圖例重疊圖表的某個部分。圖例也延伸到圖表的整個寬度。jqplot圖例的問題
下面是它的外觀。
這使得它看起來很醜。 任何人都可以幫我解決這個問題嗎?
任何幫助將不勝感激。
我正在使用jqplot。我正面臨傳說中的一些問題。 圖例重疊圖表的某個部分。圖例也延伸到圖表的整個寬度。jqplot圖例的問題
下面是它的外觀。
這使得它看起來很醜。 任何人都可以幫我解決這個問題嗎?
任何幫助將不勝感激。
我試過這招從這個論壇
https://groups.google.com/forum/?fromgroups#!topic/jqplot-users/2ugbIYORAss
//Take out HTML content of entire legend
var text = jQuery("table[class='jqplot-table-legend']").html();
//Stick it to the Legend Div Tag - of page
//create a div tag with id='jqplotctrl_legend'
jQuery('#jqplotctrl_legend').html(text);
//Set original jQPlot legend to empty
jQuery("table[class='jqplot-table-legend']").html('');
謝謝你的回覆。將檢查了這一點。順便說一句,我修好了。 –
我的問題是在CSS。我已經宣佈
table { width: 100%; }
於是我說:
.jqplot-table-legend { width: auto; }
這固定它給我的!
這是一個CSS問題。只要刪除所有的自定義CSS(或JQPlot CSS修改),並一步一步地添加它,以找到有罪的 – sdespont
任何其他誰有類似的問題?解決了它? –