调整实际图表高度而不是图表图像高度? [英] Adjusting actual chart height and not chart image height?

查看:68
本文介绍了调整实际图表高度而不是图表图像高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我试图压缩我的图表。我的标题停靠在图表的顶部和底部。我将它们的对接偏移分别设置为+/- 3,使它们更接近图表的中间位置。这样可以让他们更接近ChartAreas [0]
。我想减少剩下的空白。


看看我在说什么:  http://imgur.com/h1iJN


修改Chart1.height没有按照我的意愿行事 - 相反,它只是将中间折叠在一起并留下空白顶部/底部。关于如何实现这种效果的任何想法?


 


谢谢


 

解决方案

您好,


基于
此主题
(它已经过时了,但它们似乎并不相同从那以后我们就此做了一些事情),你必须明确设置Title.Position
(因此也就是Area.Position,因为标题不会影响自动调整大小该区域。)例如:

 
Chart1。标题(0).Position = ElementPosition(0,0,100,10)
Chart1.ChartAreas(0).Position = ElementPosition(5,10,90,80)
Chart1.Titles(1).Position = New ElementPosition(0,90,100,10)


Hi,

I am attempting to condense my chart a bit. I have titles docked to the top and bottom of the chart. I brought them closer to the middle of the chart by setting their docking offset to +/-3 respectively. This had the desired effect of bringing them closer to ChartAreas[0]. I would like to reduce the whitespace that is left, though.

To see what I'm talking about: http://imgur.com/h1iJN

Modifying Chart1.height does not do what I wish -- instead it just crumples the middle together and leaves the whitespace at the top/bottom. Any ideas on how I could achieve this effect?

 

Thanks

 

解决方案

Hello,

Based on this thread (it's old, but it doesn't seem that they've done anything about this since then) , you have to explicitly set the Title.Position (and, consequently the Area.Position, since the titles won't affect the automatic sizing of the area any more.) For example:

	Chart1.Titles(0).Position = New ElementPosition(0, 0, 100, 10)
	Chart1.ChartAreas(0).Position = New ElementPosition(5, 10, 90, 80)
	Chart1.Titles(1).Position = New ElementPosition(0, 90, 100, 10)


这篇关于调整实际图表高度而不是图表图像高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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