如何自定义JQPlot周围的黑色边框 [英] How do I customize the black border around JQPlot
本文介绍了如何自定义JQPlot周围的黑色边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在JQPlot中自定义图表周围的黑色边框?
我广泛搜索CSS文件但找不到任何内容。
How do I customize the black border around the graphs in JQPlot? I searched the CSS file extensively and couldn't find anything.
[更新]
如果你不明白我的意思,请看这个图像:
http:// img339.imageshack.us/img339/5796/jqplot.png
Please see this image if you are not understanding what i mean: http://img339.imageshack.us/img339/5796/jqplot.png
谢谢
推荐答案
查看网格的jqplot选项 drawBorder , borderColor 和影子:
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>
这篇关于如何自定义JQPlot周围的黑色边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文