dojox图表:删除图表周围的填充 [英] dojox charting: remove the padding around the chart

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

问题描述

如何在dojox图表周围移动填充?这是一个示例:

How can I move the padding around a dojox chart? Here is an example:

   var chart1 = new dojox.charting.Chart2D("simplechart", {fill:"#FFC0C0"});
   chart1.addPlot("default", {type:"Columns"});
   chart1.addAxis("y", {type:"Invisible", includeZero:true, vertical: true});
   chart1.addSeries("Series 1", [ 4,9,16,25,36,49,64,81,100 ]);
   chart1.render();

这是生成的图.

http://www.flickr.com/photos/8110919@N02/5634624479/

是否可以删除图表周围的粉红色区域?

Is there a way to remove the pink area around the chart?

谢谢.

推荐答案

感谢@loops!.但是负值对我来说是个例外.我通过调整保存图表的HTML元素中的CSS边距并将容器的父对象的溢出设置为隐藏来解决此问题.

Thanks @loops!. But the negative values throw an exception for me. I worked around that by adjusting the CSS margins in the HTML element holding the chart and settings the container's parent's overflow to hidden.

这篇关于dojox图表:删除图表周围的填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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