我正在使用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
任何其他谁有类似的问题?解决了它? –