How do I customize the black border around JQPlot

无人久伴 提交于 2019-12-10 15:26:39

问题


How do I customize the black border around the graphs in JQPlot? I searched the CSS file extensively and couldn't find anything.

[UPDATE]

Please see this image if you are not understanding what i mean: http://img339.imageshack.us/img339/5796/jqplot.png

Thanks


回答1:


Look at the jqplot options for grid drawBorder, borderColor and shadow:

var plot1 = $.jqplot ('container', [[3,7,9,1,4,6,8,2,5]], {grid:{borderColor:'transparent',shadow:false,drawBorder:false,shadowColor:'transparent'}});

$(document).ready(function(){
    var plot1 = $.jqplot ('container', [[3,7,9,1,4,6,8,2,5]], {grid:{borderColor:'transparent',shadow:false,drawBorder:false}});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqPlot/1.0.9/jquery.jqplot.js"></script>
      
<div id="container"></div>


来源:https://stackoverflow.com/questions/11516393/how-do-i-customize-the-black-border-around-jqplot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!