如何从jqplot图表中删除边框 [英] How to remove border from jqplot charts

查看:83
本文介绍了如何从jqplot图表中删除边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有人可以告诉我如何从jqplot图表中删除顶部和右侧边框,这将很有帮助.我已经尝试了网格属性,但是它是一个全或空选项,并且不能控制单个边框的值.是否还有其他属性可以设置单个边界线的值.

It would be helpful if someone could tell me how to remove the top and right border from jqplot charts. I have tried the grid properties but it is an all or null option and individual border value cant be controlled. Is there any other property which can set the value for individual border line.

推荐答案

对于条形图和折线图,请使用以下选项:

For bar charts and line charts, use the following options:

grid: {
   drawGridlines: false,       
   background: 'transparent',   
   borderColor: 'transparent',  
   shadow: false            
}

对于甜甜圈图,请使用:

For Donut charts, use :

grid: {
  borderWidth:0,
  shadow:false         
}

这篇关于如何从jqplot图表中删除边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆