图表区域高度问题 [英] Chart Area Height problem

查看:122
本文介绍了图表区域高度问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我是Chart Control的新手.
我使用两个ChartArea成功构建了一个图表控件.

我的问题:
当我运行页面时,它将图表分为两个区域,每个区域占50%.
但是我想修复ChartAreas Height.
意思是:我想将第一个图表区域的高度固定为30%,将第二个图表区域的高度固定为70%.
默认情况下,图表区域1占用50%,图表区域2占用50%.

请帮助解决问题.

在此先感谢

Hi all

I am new to chart Control.
I build a chart control successfully with two ChartArea.

My Problem:
When i run the page it is dividing the charts into 2 areas each 50%.
But i want to fix that ChartAreas Height.
Means:I want to fix the height of the 1 Chart Area as 30% and 2nd Chart Area as 70%.
By default it is taking 50% for chart area 1 and 50% for Chart Area 2.

Please Help to Fix the Problem.

Thanks In Advance

推荐答案

图表控件可自行调整图表区域的高度. ChartArea不会使用Height属性来设置高度.
http://msdn.microsoft.com/en-us/library/dd456621.aspx
因此,另一种实现方法是拥有2个不同的Chart对象.
Chart Control adjusts the chart area heights itself. ChartArea does not posses Height property to set the height.
http://msdn.microsoft.com/en-us/library/dd456621.aspx
So alternate way to achieve it is to have 2 different Chart objects.


这篇关于图表区域高度问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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