[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Bar Heights -  visual studio 2005

Posted on 2006-10-24
3
Medium Priority
?
207 Views
Last Modified: 2010-04-07
I'm creating my own version of a bar chart.  I am having difficulties with the height properties.... For example, if I use a textbox, panel, label, image, etc... I change the properties’ height based some math for this bar of the 'chart'...  the problem is... the height changes DOWNWARD... rather than the desired upward... in other words, I would like the object to grow up, rather than downward... this is a webform, so I can’t use an anchor property... is there a way to absolutely position an object by its bottom?

Thanks!
0
Comment
Question by:zebasdad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 11

Accepted Solution

by:
ethoths earned 500 total points
ID: 17834693
This really depends on how you are drawing the bars. If you are using a table and filling a cell with a coloured image you could simply fix the hieight of the row to the maximum bar height (say 300px) and then place the sized gif (say height=250px, width=20px) in to the cell with a valign=bottom attribute. (By the way, to generate the bar image simply create a 1px by 1px gif the the appropriate colour an dthen set the height and width in the html. The image will automatically be streatched to the specified diemnsions).

Prehaps a better way to do it is to use css positioning and simply specify a div to create the bars...
     <div height=250 width=20 left=10 bottom=300 color=red float=left />

You's need to refer to a css reference for all the options on how to do this but the web is full of these.


0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question