Web Hosting Talk







View Full Version : Inconsistent number size on charts - Help Please!


staffjam
08-21-2009, 01:57 PM
Hi,

My developer is building some charts, but we are having serious problems with the different sized numbers.
For example - if you have 88 and 11 - the 88 is taking up more space than the 11 and i want them to be uniform - so whatever the number is they will take up the same amount of space and not make the chart look scrappy.
A good example of how this works well is : 24hgold.com
we have done all of the obvious like changing fonts, etc... But still had no luck.

So basically i'm trying to get a fixed character width in PHP GD

Any advice would be greatly appreciated.

m_php
08-21-2009, 02:14 PM
Tried using a fixed width font?

dotflyer
08-21-2009, 04:35 PM
if you use smaller font for 88 then 11, it also looks not good, so I recommend you fix cell width in which max. digit width can adjust.

staffjam
08-22-2009, 01:15 PM
Yes we've tried fixed width font - not sure of any fonts like that which exist.
Have tried Arial, times new roman, tahoma.

Have you any suggestions?

dotflyer
08-22-2009, 01:24 PM
fix font size and also fix cell size.

Have you any suggestions?
suggestions for what?